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

+2 -1
View File
@@ -19,6 +19,7 @@ import (
"fmt"
"math"
basethreed "github.com/xiaoqidun/ofdgo/internal/base/threed"
"github.com/xiaoqidun/pdfgo"
)
@@ -31,7 +32,7 @@ func pdfThreeDSections(ctx context.Context, sections []pdfgo.ThreeDCrossSection,
}
limit := options.MaxMemoryBytes
if limit == 0 {
limit = u3dDefaultBytes
limit = basethreed.DefaultBytes
}
if limit <= 0 || uint64(len(sections)) >= uint64(limit)/136 {
return fmt.Errorf("PDF 3D section memory exceeds limit")