Skip to content

Loader limits and errors ​

Source and display profiles ​

ResourceBound
Native dialectExplicit sourceVersion0 only on the direct source loader
Source bytes262144 UTF-8 bytes
Default Curve display1..4 total native objects
Default Surface-only display1..4 Surfaces; unrendered Curves retained
Complete native profileExactly {version:1,maximumObjects:16}; 1..16 total objects
Surface gridInteger2..17 per axis
Complete Surface envelope4624 vertices,8192 triangles,24576 indices
Curve display aggregate4096 points and4092 segments
Adaptive Curve tolerance1e-7..1000 mm
Curve maxSegmentsv0:1..1024; explicit v1:1..4092
Curve maxDepthInteger0..16
Uniform original CurveDegree1..5; count2..129
Native source-to-GLBAt most4 total native objects

The complete profile is a fixed versioned admission mode, not an arbitrary configurable object budget. Per-Curve and aggregate limits still apply. Curve-only display requires an explicit Curve profile; Pixi requires adaptive v1. Other specialized entries have their own input domains.

Independent composition and transport budgets ​

Document selection admits at most four bodies. Model-set loading admits at most four source entries; primitive projection admits at most four total objects. Assembly validation has four parts and32 instances. None of these follows automatically from the native16 display profile. Listing32 as a native assembly bound does not claim execution of every adapter at that maximum.

Bounded URL transport uses262144 source bytes,2097152 document bytes or1048576 feature-graph bytes for its respective path, plus4096 body chunks. It rejects HTTP/transport/UTF-8 failures and supports AbortSignal or progress-callback cancellation. loadAsync on an engine loader retains its own older transport behavior. Use the explicitly bounded method when that guarantee is required.

Error map ​

FailurePublic signalHost response
Invalid option shapeTypeError or RangeErrorSupply exact own plain-data fields; do not use getters
CAD compiler refusalBaroCadSourceError.diagnosticsShow actual code/range; retain accepted source
Sampling/conversion refusalRangeError or entry-specific errorKeep native authority; revise the admitted profile
CancellationBaroCadLoadAbortError, nameAbortError, codeABORT_ERRLeave accepted result; dispose any stale candidate
Uniform Curve refusalBaroCadUniformCurveSourceErrorInspect code, diagnostics and actual cause
HTTP/UTF-8/progress exceptionActual transport exceptionReport the failure without adopting partial state

Uniform Curve codes are OPTIONS, SOURCE, PROFILE, SAMPLING, PARAMETERS, POSITIONS and SEGMENTS. They distinguish invalid configuration, original compiler refusal, wrong native family, sampling/domain issues, unsafe conversion and collapsed segments.

Options reject extra/symbol/accessor/inherited fields and unsupported versions. Native parameters/IDs and source bytes stay authoritative. Conversion applies scale once and can refuse binary64/Float32 nonzero-to-zero loss or collapsed segments/triangles. No silent clamping or geometry substitution guarantees acceptance.

Peer and ownership boundary ​

Actual repository peer checkpoints use Three0.186.1 (^0.186.1 declaration), Babylon9.29.0, PixiJS7.2.4 and Pixi3D2.5.0. Import only the optional target entry your host uses. The neutral root/native path does not create a renderer.

Caller owns host Scene/Stage, renderer/engine, camera, canvas, lights and unrelated objects. Adapter result owns its generated display resources, including prepared resources for unselected objects. Disposal is idempotent. Native Model/source remains a separate CPU record.

Historical source-browser, compiled-JS/declaration, native-built, locally merged and current-consumer receipts have different scope. #1017 now records an additive-entry CPU checkpoint, not all-entry runtime or full peer declaration certification. Packed installation remains #801; npm publication, broad CAD quality and universal exchange parsing remain unclaimed.


Source snapshot: local Git 5f5ad866205a21510ac69552e704cc162fa253b5. packages/barocss-cad-interop/package.json (Manifest; local source), packages/barocss-cad-interop/src/index.ts, packages/barocss-cad-interop/README.md (package README; local source). Source references identify that fixed snapshot. This native source commit is local-only. Local source is the authority for this manual.

Overview · Quickstart · Guides · API · Examples · Limits

Local manual snapshot. Availability is stated on each package page.