feat(文件拆分): 拆分几何三维基础能力
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:44:44 +08:00
1 parent 64f9ec4241
commit 0be872691d
76 files changed
+1926 -1307

No files matched your search

+3 -2
View File
@@ -16,6 +16,7 @@ package ofdgo
import (
"fmt"
basegeom "github.com/xiaoqidun/ofdgo/internal/base/geom"
"math"
"strconv"
)
@@ -127,7 +128,7 @@ func (c *semanticCompiler) addBounds(path GeometryPath, evenOdd bool) error {
}
c.measurement.Bounds = unionTextBox(c.measurement.Bounds, box)
if c.contours {
svg, err := closedGeometry(path).SVG()
svg, err := GeometryPath(basegeom.Close(basegeom.Path(path))).SVG()
if err != nil {
return err
}
@@ -143,7 +144,7 @@ func (c *semanticCompiler) fill(path GeometryPath, paint Paint, evenOdd bool, cl
if len(path) == 0 || paint.Kind == PaintNone || paint.Kind == PaintSolid && paint.Color.A == 0 {
return nil
}
path = closedGeometry(path)
path = GeometryPath(basegeom.Close(basegeom.Path(path)))
if !c.measure && paint.Kind != PaintPattern {
return c.command(path, paint, evenOdd, clip, shadingMatrix, nil)
}