@faicad/faijs 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -5
- package/NOTICE +5 -6
- package/dist/api/api-namespace.d.ts.map +1 -1
- package/dist/api/api-namespace.js +19 -1
- package/dist/api/api-namespace.js.map +1 -1
- package/dist/api/assembly/entities.d.ts +1 -1
- package/dist/api/assembly/entities.d.ts.map +1 -1
- package/dist/api/assembly/entities.js.map +1 -1
- package/dist/api/assembly/joints.d.ts +2 -2
- package/dist/api/assembly/joints.d.ts.map +1 -1
- package/dist/api/assembly/joints.js +2 -2
- package/dist/api/assembly/joints.js.map +1 -1
- package/dist/api/assembly/lower.d.ts +1 -1
- package/dist/api/assembly/lower.d.ts.map +1 -1
- package/dist/api/assembly/lower.js.map +1 -1
- package/dist/api/assembly/pose.d.ts +3 -3
- package/dist/api/assembly/pose.d.ts.map +1 -1
- package/dist/api/assembly/pose.js +1 -1
- package/dist/api/assembly/pose.js.map +1 -1
- package/dist/api/assembly/preview.d.ts +1 -1
- package/dist/api/assembly/preview.d.ts.map +1 -1
- package/dist/api/assembly/preview.js +1 -1
- package/dist/api/assembly/preview.js.map +1 -1
- package/dist/api/assembly/solve.d.ts.map +1 -1
- package/dist/api/assembly/solve.js +3 -3
- package/dist/api/assembly/solve.js.map +1 -1
- package/dist/api/assembly/solvers/assembly-tree.d.ts +98 -0
- package/dist/api/assembly/solvers/assembly-tree.d.ts.map +1 -0
- package/dist/api/assembly/solvers/assembly-tree.js +130 -0
- package/dist/api/assembly/solvers/assembly-tree.js.map +1 -0
- package/dist/api/assembly/solvers/chain-solver.d.ts +27 -0
- package/dist/api/assembly/solvers/chain-solver.d.ts.map +1 -0
- package/dist/api/assembly/solvers/chain-solver.js +330 -0
- package/dist/api/assembly/solvers/chain-solver.js.map +1 -0
- package/dist/api/assembly/solvers/global-solver.js +2 -2
- package/dist/api/assembly/solvers/global-solver.js.map +1 -1
- package/dist/api/assembly/solvers/joints-kinematics.d.ts +308 -0
- package/dist/api/assembly/solvers/joints-kinematics.d.ts.map +1 -0
- package/dist/api/assembly/solvers/joints-kinematics.js +643 -0
- package/dist/api/assembly/solvers/joints-kinematics.js.map +1 -0
- package/dist/api/assembly/solvers/quat.d.ts +35 -0
- package/dist/api/assembly/solvers/quat.d.ts.map +1 -0
- package/dist/api/assembly/solvers/quat.js +84 -0
- package/dist/api/assembly/solvers/quat.js.map +1 -0
- package/dist/api/assembly/solvers/types.d.ts +33 -0
- package/dist/api/assembly/solvers/types.d.ts.map +1 -1
- package/dist/api/assembly/solvers/types.js.map +1 -1
- package/dist/api/boolean.d.ts.map +1 -1
- package/dist/api/boolean.js +3 -4
- package/dist/api/boolean.js.map +1 -1
- package/dist/api/brep-mirror/booleanFns.d.ts +40 -0
- package/dist/api/brep-mirror/booleanFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/booleanFns.js +99 -0
- package/dist/api/brep-mirror/booleanFns.js.map +1 -0
- package/dist/api/brep-mirror/brepHelpers.d.ts +55 -0
- package/dist/api/brep-mirror/brepHelpers.d.ts.map +1 -0
- package/dist/api/brep-mirror/brepHelpers.js +131 -0
- package/dist/api/brep-mirror/brepHelpers.js.map +1 -0
- package/dist/api/brep-mirror/compoundFns.d.ts +47 -0
- package/dist/api/brep-mirror/compoundFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/compoundFns.js +300 -0
- package/dist/api/brep-mirror/compoundFns.js.map +1 -0
- package/dist/api/brep-mirror/healingFns.d.ts +78 -0
- package/dist/api/brep-mirror/healingFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/healingFns.js +294 -0
- package/dist/api/brep-mirror/healingFns.js.map +1 -0
- package/dist/api/brep-mirror/hullFns.d.ts +20 -0
- package/dist/api/brep-mirror/hullFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/hullFns.js +46 -0
- package/dist/api/brep-mirror/hullFns.js.map +1 -0
- package/dist/api/brep-mirror/patternFns.d.ts +43 -0
- package/dist/api/brep-mirror/patternFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/patternFns.js +178 -0
- package/dist/api/brep-mirror/patternFns.js.map +1 -0
- package/dist/api/brep-mirror/primitiveFns.d.ts +42 -0
- package/dist/api/brep-mirror/primitiveFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/primitiveFns.js +104 -0
- package/dist/api/brep-mirror/primitiveFns.js.map +1 -0
- package/dist/api/brep-mirror/roofFns.d.ts +24 -0
- package/dist/api/brep-mirror/roofFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/roofFns.js +229 -0
- package/dist/api/brep-mirror/roofFns.js.map +1 -0
- package/dist/api/brep-mirror/straightSkeleton.d.ts +36 -0
- package/dist/api/brep-mirror/straightSkeleton.d.ts.map +1 -0
- package/dist/api/brep-mirror/straightSkeleton.js +443 -0
- package/dist/api/brep-mirror/straightSkeleton.js.map +1 -0
- package/dist/api/brep-mirror/sweepFns.d.ts +55 -0
- package/dist/api/brep-mirror/sweepFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/sweepFns.js +200 -0
- package/dist/api/brep-mirror/sweepFns.js.map +1 -0
- package/dist/api/brep-mirror/threadFns.d.ts +15 -0
- package/dist/api/brep-mirror/threadFns.d.ts.map +1 -1
- package/dist/api/brep-mirror/threadFns.js +37 -2
- package/dist/api/brep-mirror/threadFns.js.map +1 -1
- package/dist/api/brep-mirror/topologyFns.d.ts +74 -0
- package/dist/api/brep-mirror/topologyFns.d.ts.map +1 -0
- package/dist/api/brep-mirror/topologyFns.js +273 -0
- package/dist/api/brep-mirror/topologyFns.js.map +1 -0
- package/dist/api/brep-topology.d.ts +190 -0
- package/dist/api/brep-topology.d.ts.map +1 -0
- package/dist/api/brep-topology.js +337 -0
- package/dist/api/brep-topology.js.map +1 -0
- package/dist/api/brepjs-compat/constants.d.ts +11 -0
- package/dist/api/brepjs-compat/constants.d.ts.map +1 -0
- package/dist/api/brepjs-compat/constants.js +11 -0
- package/dist/api/brepjs-compat/constants.js.map +1 -0
- package/dist/api/brepjs-compat/index.d.ts +19 -232
- package/dist/api/brepjs-compat/index.d.ts.map +1 -1
- package/dist/api/brepjs-compat/index.js +19 -286
- package/dist/api/brepjs-compat/index.js.map +1 -1
- package/dist/api/brepjs-compat/planeOps.d.ts +98 -0
- package/dist/api/brepjs-compat/planeOps.d.ts.map +1 -0
- package/dist/api/brepjs-compat/planeOps.js +170 -0
- package/dist/api/brepjs-compat/planeOps.js.map +1 -0
- package/dist/api/brepjs-compat/planeTypes.d.ts +24 -0
- package/dist/api/brepjs-compat/planeTypes.d.ts.map +1 -0
- package/dist/api/brepjs-compat/planeTypes.js +8 -0
- package/dist/api/brepjs-compat/planeTypes.js.map +1 -0
- package/dist/api/brepjs-compat/types.d.ts +64 -0
- package/dist/api/brepjs-compat/types.d.ts.map +1 -0
- package/dist/api/brepjs-compat/types.js +48 -0
- package/dist/api/brepjs-compat/types.js.map +1 -0
- package/dist/api/brepjs-compat/vecOps.d.ts +124 -0
- package/dist/api/brepjs-compat/vecOps.d.ts.map +1 -0
- package/dist/api/brepjs-compat/vecOps.js +202 -0
- package/dist/api/brepjs-compat/vecOps.js.map +1 -0
- package/dist/api/chamfer.d.ts +5 -0
- package/dist/api/chamfer.d.ts.map +1 -1
- package/dist/api/chamfer.js +13 -8
- package/dist/api/chamfer.js.map +1 -1
- package/dist/api/compound-geom.d.ts.map +1 -1
- package/dist/api/compound-geom.js +8 -2
- package/dist/api/compound-geom.js.map +1 -1
- package/dist/api/draft.d.ts +69 -0
- package/dist/api/draft.d.ts.map +1 -0
- package/dist/api/draft.js +109 -0
- package/dist/api/draft.js.map +1 -0
- package/dist/api/edge-ref.d.ts.map +1 -1
- package/dist/api/edge-ref.js +2 -2
- package/dist/api/edge-ref.js.map +1 -1
- package/dist/api/engrave.d.ts.map +1 -1
- package/dist/api/engrave.js +2 -3
- package/dist/api/engrave.js.map +1 -1
- package/dist/api/extrude.d.ts.map +1 -1
- package/dist/api/extrude.js +28 -13
- package/dist/api/extrude.js.map +1 -1
- package/dist/api/face-ref.d.ts.map +1 -1
- package/dist/api/face-ref.js +2 -2
- package/dist/api/face-ref.js.map +1 -1
- package/dist/api/feature-repair.d.ts +137 -0
- package/dist/api/feature-repair.d.ts.map +1 -0
- package/dist/api/feature-repair.js +221 -0
- package/dist/api/feature-repair.js.map +1 -0
- package/dist/api/fillet-variable.d.ts +35 -0
- package/dist/api/fillet-variable.d.ts.map +1 -0
- package/dist/api/fillet-variable.js +71 -0
- package/dist/api/fillet-variable.js.map +1 -0
- package/dist/api/fillet.d.ts +3 -0
- package/dist/api/fillet.d.ts.map +1 -1
- package/dist/api/fillet.js +7 -4
- package/dist/api/fillet.js.map +1 -1
- package/dist/api/generated/2d.d.ts +1 -13
- package/dist/api/generated/2d.d.ts.map +1 -1
- package/dist/api/generated/2d.js +6 -1
- package/dist/api/generated/2d.js.map +1 -1
- package/dist/api/generated/brepjs/index.d.ts +298 -298
- package/dist/api/generated/brepjs/index.d.ts.map +1 -1
- package/dist/api/generated/brepjs/index.js +183 -183
- package/dist/api/generated/brepjs/index.js.map +1 -1
- package/dist/api/generated/core.d.ts +3 -123
- package/dist/api/generated/core.d.ts.map +1 -1
- package/dist/api/generated/core.js +2 -81
- package/dist/api/generated/core.js.map +1 -1
- package/dist/api/generated/gear.d.ts +1 -15
- package/dist/api/generated/gear.d.ts.map +1 -1
- package/dist/api/generated/gear.js +6 -3
- package/dist/api/generated/gear.js.map +1 -1
- package/dist/api/generated/io.d.ts +1 -13
- package/dist/api/generated/io.d.ts.map +1 -1
- package/dist/api/generated/io.js +6 -1
- package/dist/api/generated/io.js.map +1 -1
- package/dist/api/generated/kernel.d.ts +1 -39
- package/dist/api/generated/kernel.d.ts.map +1 -1
- package/dist/api/generated/kernel.js +6 -4
- package/dist/api/generated/kernel.js.map +1 -1
- package/dist/api/generated/measurement.d.ts +53 -97
- package/dist/api/generated/measurement.d.ts.map +1 -1
- package/dist/api/generated/measurement.js +48 -143
- package/dist/api/generated/measurement.js.map +1 -1
- package/dist/api/generated/ns.d.ts +1 -10
- package/dist/api/generated/ns.d.ts.map +1 -1
- package/dist/api/generated/ns.js +2 -10
- package/dist/api/generated/ns.js.map +1 -1
- package/dist/api/generated/operations.d.ts +65 -110
- package/dist/api/generated/operations.d.ts.map +1 -1
- package/dist/api/generated/operations.js +132 -80
- package/dist/api/generated/operations.js.map +1 -1
- package/dist/api/generated/projection.d.ts +1 -8
- package/dist/api/generated/projection.d.ts.map +1 -1
- package/dist/api/generated/projection.js +6 -4
- package/dist/api/generated/projection.js.map +1 -1
- package/dist/api/generated/query.d.ts +1 -9
- package/dist/api/generated/query.d.ts.map +1 -1
- package/dist/api/generated/query.js +6 -1
- package/dist/api/generated/query.js.map +1 -1
- package/dist/api/generated/script-face-manifest.d.ts +2 -0
- package/dist/api/generated/script-face-manifest.d.ts.map +1 -1
- package/dist/api/generated/script-face-manifest.js +34 -22
- package/dist/api/generated/script-face-manifest.js.map +1 -1
- package/dist/api/generated/script-face.d.ts +52 -27
- package/dist/api/generated/script-face.d.ts.map +1 -1
- package/dist/api/generated/script-face.js +18 -4
- package/dist/api/generated/script-face.js.map +1 -1
- package/dist/api/generated/sketching.d.ts +4 -7
- package/dist/api/generated/sketching.d.ts.map +1 -1
- package/dist/api/generated/sketching.js +10 -8
- package/dist/api/generated/sketching.js.map +1 -1
- package/dist/api/generated/text.d.ts +1 -6
- package/dist/api/generated/text.d.ts.map +1 -1
- package/dist/api/generated/text.js +6 -3
- package/dist/api/generated/text.js.map +1 -1
- package/dist/api/generated/topology.d.ts +77 -175
- package/dist/api/generated/topology.d.ts.map +1 -1
- package/dist/api/generated/topology.js +172 -131
- package/dist/api/generated/topology.js.map +1 -1
- package/dist/api/geom.d.ts.map +1 -1
- package/dist/api/geom.js +2 -2
- package/dist/api/geom.js.map +1 -1
- package/dist/api/helix.d.ts +51 -0
- package/dist/api/helix.d.ts.map +1 -0
- package/dist/api/helix.js +63 -0
- package/dist/api/helix.js.map +1 -0
- package/dist/api/import-step.d.ts.map +1 -1
- package/dist/api/import-step.js +6 -2
- package/dist/api/import-step.js.map +1 -1
- package/dist/api/index.d.ts +18 -5
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +29 -12
- package/dist/api/index.js.map +1 -1
- package/dist/api/internal/compat-op.d.ts +10 -0
- package/dist/api/internal/compat-op.d.ts.map +1 -1
- package/dist/api/internal/compat-op.js +9 -3
- package/dist/api/internal/compat-op.js.map +1 -1
- package/dist/api/internal/compat-projection.d.ts +4 -4
- package/dist/api/internal/compat-projection.js +7 -7
- package/dist/api/internal/compat-projection.js.map +1 -1
- package/dist/api/internal/l3-bridge.d.ts +75 -42
- package/dist/api/internal/l3-bridge.d.ts.map +1 -1
- package/dist/api/internal/l3-bridge.js +105 -50
- package/dist/api/internal/l3-bridge.js.map +1 -1
- package/dist/api/internal/profile-wire.d.ts +31 -0
- package/dist/api/internal/profile-wire.d.ts.map +1 -0
- package/dist/api/internal/profile-wire.js +37 -0
- package/dist/api/internal/profile-wire.js.map +1 -0
- package/dist/api/internal/replica-role-table.js +2 -2
- package/dist/api/internal/replica-role-table.js.map +1 -1
- package/dist/api/loft.d.ts +66 -0
- package/dist/api/loft.d.ts.map +1 -0
- package/dist/api/loft.js +111 -0
- package/dist/api/loft.js.map +1 -0
- package/dist/api/measurement/index.d.ts +51 -0
- package/dist/api/measurement/index.d.ts.map +1 -0
- package/dist/api/measurement/index.js +71 -0
- package/dist/api/measurement/index.js.map +1 -0
- package/dist/api/occt-kernel-bridge.d.ts +5 -8
- package/dist/api/occt-kernel-bridge.d.ts.map +1 -1
- package/dist/api/occt-kernel-bridge.js +18 -14
- package/dist/api/occt-kernel-bridge.js.map +1 -1
- package/dist/api/pattern.d.ts.map +1 -1
- package/dist/api/pattern.js +3 -4
- package/dist/api/pattern.js.map +1 -1
- package/dist/api/place.d.ts.map +1 -1
- package/dist/api/place.js +2 -4
- package/dist/api/place.js.map +1 -1
- package/dist/api/primitives.d.ts.map +1 -1
- package/dist/api/primitives.js +3 -4
- package/dist/api/primitives.js.map +1 -1
- package/dist/api/replicate.d.ts +28 -1
- package/dist/api/replicate.d.ts.map +1 -1
- package/dist/api/replicate.js +29 -19
- package/dist/api/replicate.js.map +1 -1
- package/dist/api/result.d.ts +6 -11
- package/dist/api/result.d.ts.map +1 -1
- package/dist/api/result.js +6 -11
- package/dist/api/result.js.map +1 -1
- package/dist/api/revolve.d.ts.map +1 -1
- package/dist/api/revolve.js +15 -14
- package/dist/api/revolve.js.map +1 -1
- package/dist/api/screw.d.ts +3 -0
- package/dist/api/screw.d.ts.map +1 -1
- package/dist/api/screw.js +9 -4
- package/dist/api/screw.js.map +1 -1
- package/dist/api/sdf.d.ts +1 -1
- package/dist/api/section-by-plane.d.ts +42 -0
- package/dist/api/section-by-plane.d.ts.map +1 -0
- package/dist/api/section-by-plane.js +61 -0
- package/dist/api/section-by-plane.js.map +1 -0
- package/dist/api/shell.d.ts +45 -0
- package/dist/api/shell.d.ts.map +1 -0
- package/dist/api/shell.js +73 -0
- package/dist/api/shell.js.map +1 -0
- package/dist/api/sketch.d.ts +8 -1
- package/dist/api/sketch.d.ts.map +1 -1
- package/dist/api/sketch.js +12 -7
- package/dist/api/sketch.js.map +1 -1
- package/dist/api/split-by-plane.d.ts +41 -0
- package/dist/api/split-by-plane.d.ts.map +1 -0
- package/dist/api/split-by-plane.js +60 -0
- package/dist/api/split-by-plane.js.map +1 -0
- package/dist/api/split.d.ts +6 -1
- package/dist/api/split.d.ts.map +1 -1
- package/dist/api/split.js +23 -9
- package/dist/api/split.js.map +1 -1
- package/dist/api/surface/arg-spec.d.ts +22 -0
- package/dist/api/surface/arg-spec.d.ts.map +1 -1
- package/dist/api/surface/arg-spec.js +723 -476
- package/dist/api/surface/arg-spec.js.map +1 -1
- package/dist/api/sweep.d.ts +55 -0
- package/dist/api/sweep.d.ts.map +1 -0
- package/dist/api/sweep.js +86 -0
- package/dist/api/sweep.js.map +1 -0
- package/dist/api/thicken.d.ts +36 -0
- package/dist/api/thicken.d.ts.map +1 -0
- package/dist/api/thicken.js +55 -0
- package/dist/api/thicken.js.map +1 -0
- package/dist/api/transform.d.ts +8 -0
- package/dist/api/transform.d.ts.map +1 -1
- package/dist/api/transform.js +15 -4
- package/dist/api/transform.js.map +1 -1
- package/dist/api/view/cameraFns.d.ts +48 -0
- package/dist/api/view/cameraFns.d.ts.map +1 -0
- package/dist/api/view/cameraFns.js +75 -0
- package/dist/api/view/cameraFns.js.map +1 -0
- package/dist/api/view/projectionPlanes.d.ts +25 -0
- package/dist/api/view/projectionPlanes.d.ts.map +1 -0
- package/dist/api/view/projectionPlanes.js +30 -0
- package/dist/api/view/projectionPlanes.js.map +1 -0
- package/dist/api/view/view-camera.d.ts +2 -2
- package/dist/api/view/view-camera.d.ts.map +1 -1
- package/dist/api/view/view-camera.js +3 -3
- package/dist/api/view/view-camera.js.map +1 -1
- package/dist/api/view/view-projection.d.ts +9 -6
- package/dist/api/view/view-projection.d.ts.map +1 -1
- package/dist/api/view/view-projection.js +132 -65
- package/dist/api/view/view-projection.js.map +1 -1
- package/dist/api/wire.d.ts +45 -0
- package/dist/api/wire.d.ts.map +1 -0
- package/dist/api/wire.js +96 -0
- package/dist/api/wire.js.map +1 -0
- package/dist/boolean/creased-normals.d.ts +50 -0
- package/dist/boolean/creased-normals.d.ts.map +1 -0
- package/dist/boolean/creased-normals.js +114 -0
- package/dist/boolean/creased-normals.js.map +1 -0
- package/dist/boolean/deriveNormals.d.ts +4 -1
- package/dist/boolean/deriveNormals.d.ts.map +1 -1
- package/dist/boolean/deriveNormals.js +5 -2
- package/dist/boolean/deriveNormals.js.map +1 -1
- package/dist/brep/brep-ops.d.ts +6 -0
- package/dist/brep/brep-ops.d.ts.map +1 -1
- package/dist/brep/brep-ops.js +11 -2
- package/dist/brep/brep-ops.js.map +1 -1
- package/dist/brep/brep-topology.d.ts +4 -0
- package/dist/brep/brep-topology.d.ts.map +1 -1
- package/dist/brep/brep-topology.js +4 -0
- package/dist/brep/brep-topology.js.map +1 -1
- package/dist/brep/engine/adapters/brep-mock.d.ts.map +1 -1
- package/dist/brep/engine/adapters/brep-mock.js +79 -59
- package/dist/brep/engine/adapters/brep-mock.js.map +1 -1
- package/dist/brep/engine/adapters/brepkit.d.ts.map +1 -1
- package/dist/brep/engine/adapters/brepkit.js +7 -1
- package/dist/brep/engine/adapters/brepkit.js.map +1 -1
- package/dist/brep/engine/adapters/occt.d.ts +15 -7
- package/dist/brep/engine/adapters/occt.d.ts.map +1 -1
- package/dist/brep/engine/adapters/occt.js +52 -167
- package/dist/brep/engine/adapters/occt.js.map +1 -1
- package/dist/brep/engine/primitives.d.ts +93 -130
- package/dist/brep/engine/primitives.d.ts.map +1 -1
- package/dist/brep/engine/primitives.js +9 -7
- package/dist/brep/engine/primitives.js.map +1 -1
- package/dist/brep/engine/types.d.ts +14 -1
- package/dist/brep/engine/types.d.ts.map +1 -1
- package/dist/brep/engine/types.js +11 -1
- package/dist/brep/engine/types.js.map +1 -1
- package/dist/brep/export/step.d.ts +3 -0
- package/dist/brep/export/step.d.ts.map +1 -1
- package/dist/brep/export/step.js +7 -1
- package/dist/brep/export/step.js.map +1 -1
- package/dist/brep/face-evolution.d.ts +8 -0
- package/dist/brep/face-evolution.d.ts.map +1 -1
- package/dist/brep/face-evolution.js +15 -3
- package/dist/brep/face-evolution.js.map +1 -1
- package/dist/brep/handle-bridge.d.ts +20 -2
- package/dist/brep/handle-bridge.d.ts.map +1 -1
- package/dist/brep/handle-bridge.js +25 -2
- package/dist/brep/handle-bridge.js.map +1 -1
- package/dist/brepkit-kernel/brepkitKernel.d.ts +25 -5
- package/dist/brepkit-kernel/brepkitKernel.d.ts.map +1 -1
- package/dist/brepkit-kernel/brepkitKernel.js +336 -144
- package/dist/brepkit-kernel/brepkitKernel.js.map +1 -1
- package/dist/cad-runtime/admit-compat-lib.d.ts +6 -1
- package/dist/cad-runtime/admit-compat-lib.d.ts.map +1 -1
- package/dist/cad-runtime/admit-compat-lib.js +5 -1
- package/dist/cad-runtime/admit-compat-lib.js.map +1 -1
- package/dist/cad-runtime/backend-dispatch.d.ts +9 -3
- package/dist/cad-runtime/backend-dispatch.d.ts.map +1 -1
- package/dist/cad-runtime/backend-dispatch.js +32 -2
- package/dist/cad-runtime/backend-dispatch.js.map +1 -1
- package/dist/cad-runtime/direct-executor.d.ts.map +1 -1
- package/dist/cad-runtime/direct-executor.js +8 -2
- package/dist/cad-runtime/direct-executor.js.map +1 -1
- package/dist/cad-runtime/runtime.d.ts +3 -0
- package/dist/cad-runtime/runtime.d.ts.map +1 -1
- package/dist/cad-runtime/runtime.js +3 -1
- package/dist/cad-runtime/runtime.js.map +1 -1
- package/dist/define-op.d.ts +18 -2
- package/dist/define-op.d.ts.map +1 -1
- package/dist/define-op.js +29 -1
- package/dist/define-op.js.map +1 -1
- package/dist/env-agnostic.d.ts +3 -0
- package/dist/env-agnostic.d.ts.map +1 -1
- package/dist/env-agnostic.js +7 -0
- package/dist/env-agnostic.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/lang/symbol-table.generated.d.ts +28 -0
- package/dist/lang/symbol-table.generated.d.ts.map +1 -1
- package/dist/lang/symbol-table.generated.js +29 -1
- package/dist/lang/symbol-table.generated.js.map +1 -1
- package/dist/occt-kernel/highLevelApi.d.ts.map +1 -1
- package/dist/occt-kernel/highLevelApi.js +6 -3
- package/dist/occt-kernel/highLevelApi.js.map +1 -1
- package/dist/occt-kernel/hullGeometry.d.ts +31 -0
- package/dist/occt-kernel/hullGeometry.d.ts.map +1 -0
- package/dist/occt-kernel/hullGeometry.js +319 -0
- package/dist/occt-kernel/hullGeometry.js.map +1 -0
- package/dist/occt-kernel/hullOps.d.ts +24 -0
- package/dist/occt-kernel/hullOps.d.ts.map +1 -0
- package/dist/occt-kernel/hullOps.js +52 -0
- package/dist/occt-kernel/hullOps.js.map +1 -0
- package/dist/occt-kernel/occt-primitives.d.ts +14 -0
- package/dist/occt-kernel/occt-primitives.d.ts.map +1 -0
- package/dist/occt-kernel/occt-primitives.js +351 -0
- package/dist/occt-kernel/occt-primitives.js.map +1 -0
- package/dist/occt-kernel/occtKernel.d.ts +14 -6
- package/dist/occt-kernel/occtKernel.d.ts.map +1 -1
- package/dist/occt-kernel/occtKernel.js +11 -3
- package/dist/occt-kernel/occtKernel.js.map +1 -1
- package/dist/occt-kernel/topologyExt.js +2 -2
- package/dist/occt-kernel/topologyExt.js.map +1 -1
- package/dist/primitives/brep-primitives.d.ts +4 -0
- package/dist/primitives/brep-primitives.d.ts.map +1 -1
- package/dist/primitives/brep-primitives.js +4 -0
- package/dist/primitives/brep-primitives.js.map +1 -1
- package/dist/result/bug.d.ts +22 -0
- package/dist/result/bug.d.ts.map +1 -0
- package/dist/result/bug.js +28 -0
- package/dist/result/bug.js.map +1 -0
- package/dist/result/errors.d.ts +270 -0
- package/dist/result/errors.d.ts.map +1 -0
- package/dist/result/errors.js +317 -0
- package/dist/result/errors.js.map +1 -0
- package/dist/result/kernelErrorTranslation.d.ts +21 -0
- package/dist/result/kernelErrorTranslation.d.ts.map +1 -0
- package/dist/result/kernelErrorTranslation.js +102 -0
- package/dist/result/kernelErrorTranslation.js.map +1 -0
- package/dist/result/result.d.ts +213 -0
- package/dist/result/result.d.ts.map +1 -0
- package/dist/result/result.js +336 -0
- package/dist/result/result.js.map +1 -0
- package/dist/result/vec3.d.ts +12 -0
- package/dist/result/vec3.d.ts.map +1 -0
- package/dist/result/vec3.js +14 -0
- package/dist/result/vec3.js.map +1 -0
- package/dist/runtime-state.d.ts +9 -0
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js.map +1 -1
- package/dist/sdk.d.ts +3 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +2 -1
- package/dist/sdk.js.map +1 -1
- package/dist/shape.d.ts +43 -1
- package/dist/shape.d.ts.map +1 -1
- package/dist/shape.js +57 -1
- package/dist/shape.js.map +1 -1
- package/dist/topology/naming/geom-hint.js +1 -1
- package/dist/topology/naming/geom-hint.js.map +1 -1
- package/dist/topology/naming/score.js +1 -1
- package/dist/topology/naming/score.js.map +1 -1
- package/package.json +6 -16
|
@@ -1,204 +1,245 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* generated/topology.ts — 生成文件,勿手改。
|
|
3
3
|
* 由 packages/core/scripts/gen-l3-surface.ts 依据 api/surface/arg-spec.ts 生成(E5/P14 分片)。
|
|
4
|
-
* topology 模块:
|
|
5
|
-
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import { fixShape as __vendored_fixShape } from '../../vendored/brepjs/topology/healingFns.js';
|
|
30
|
-
import { healSolid as __vendored_healSolid } from '../../vendored/brepjs/topology/healingFns.js';
|
|
31
|
-
import { fixSelfIntersection as __vendored_fixSelfIntersection } from '../../vendored/brepjs/topology/healingFns.js';
|
|
32
|
-
/**
|
|
33
|
-
* torus — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
4
|
+
* topology 模块:21 个投影符号;另有 281 个 skip 登记。
|
|
5
|
+
*/
|
|
6
|
+
import { defineOp } from '../../define-op.js';
|
|
7
|
+
import { brepOf } from '../../shape.js';
|
|
8
|
+
import { getBrepApi } from '../../brep/handle-bridge.js';
|
|
9
|
+
import { torusBrep as __own_torusBrep } from '../brep-mirror/primitiveFns.js';
|
|
10
|
+
import { fuseBrep as __own_fuseBrep } from '../brep-mirror/booleanFns.js';
|
|
11
|
+
import { ellipsoidBrep as __own_ellipsoidBrep } from '../brep-mirror/primitiveFns.js';
|
|
12
|
+
import { rotateBrep as __own_rotateBrep } from '../brep-mirror/topologyFns.js';
|
|
13
|
+
import { mirrorBrep as __own_mirrorBrep } from '../brep-mirror/topologyFns.js';
|
|
14
|
+
import { cloneBrep as __own_cloneBrep } from '../brep-mirror/topologyFns.js';
|
|
15
|
+
import { applyMatrixBrep as __own_applyMatrixBrep } from '../brep-mirror/topologyFns.js';
|
|
16
|
+
import { locateBrep as __own_locateBrep } from '../brep-mirror/topologyFns.js';
|
|
17
|
+
import { sectionBrep as __own_sectionBrep } from '../brep-mirror/booleanFns.js';
|
|
18
|
+
import { splitBrep as __own_splitBrep } from '../brep-mirror/booleanFns.js';
|
|
19
|
+
import { shellBrep as __own_shellBrep } from '../brep-mirror/topologyFns.js';
|
|
20
|
+
import { offsetBrep as __own_offsetBrep } from '../brep-mirror/topologyFns.js';
|
|
21
|
+
import { healBrep as __own_healBrep } from '../brep-mirror/healingFns.js';
|
|
22
|
+
import { simplifyBrep as __own_simplifyBrep } from '../brep-mirror/healingFns.js';
|
|
23
|
+
import { autoHealBrep as __own_autoHealBrep } from '../brep-mirror/healingFns.js';
|
|
24
|
+
import { fixShapeBrep as __own_fixShapeBrep } from '../brep-mirror/healingFns.js';
|
|
25
|
+
import { healSolidBrep as __own_healSolidBrep } from '../brep-mirror/healingFns.js';
|
|
26
|
+
import { fixSelfIntersectionBrep as __own_fixSelfIntersectionBrep } from '../brep-mirror/healingFns.js';
|
|
27
|
+
/**
|
|
28
|
+
* torus — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
34
29
|
* (majorRadius: number, minorRadius: number, options?: TorusOptions)
|
|
35
|
-
* 桥接:
|
|
30
|
+
* 桥接:defineOp({ brep: __own_torusBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
31
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
36
32
|
*/
|
|
37
|
-
export const torus =
|
|
33
|
+
export const torus = defineOp({
|
|
34
|
+
brep: __own_torusBrep,
|
|
35
|
+
name: 'torus', naming: { "kind": "unmodeled", "reason": "construct vocabulary pending Phase 3" }, capabilities: ["dispose", "makeTorus"],
|
|
36
|
+
});
|
|
38
37
|
/**
|
|
39
|
-
* fuse —
|
|
38
|
+
* fuse — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
40
39
|
* (a: Shape3D, b: Shape3D, options?: BooleanOptions) -> Result<Shape3D>
|
|
41
|
-
* 桥接:
|
|
40
|
+
* 桥接:defineOp({ brep: __own_fuseBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
41
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
42
42
|
*/
|
|
43
|
-
export const fuse =
|
|
43
|
+
export const fuse = defineOp({
|
|
44
|
+
brep: __own_fuseBrep,
|
|
45
|
+
name: 'fuse', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
46
|
+
});
|
|
44
47
|
/**
|
|
45
|
-
* getBounds —
|
|
46
|
-
* (shape:
|
|
47
|
-
*
|
|
48
|
+
* getBounds — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。
|
|
49
|
+
* (shape: Shape) -> BrepBoundingBox(core selfhost)
|
|
50
|
+
* 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。
|
|
48
51
|
*
|
|
49
52
|
* @param shape - 可形状参数(原样透传)
|
|
50
|
-
* @returns
|
|
53
|
+
* @returns { xmin: number; ymin: number; zmin: number; xmax: number; ymax: number; zmax: number } — 纯数据结果(非 Shape)。
|
|
51
54
|
*/
|
|
52
55
|
export function getBounds(shape) {
|
|
53
|
-
|
|
56
|
+
const h0 = brepOf(shape);
|
|
57
|
+
return getBrepApi().getBoundingBox(h0);
|
|
54
58
|
}
|
|
55
59
|
/**
|
|
56
|
-
* ellipsoid —
|
|
60
|
+
* ellipsoid — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
57
61
|
* ellipsoid(rx: number, ry: number, rz: number, options?: EllipsoidOptions): Shape
|
|
58
|
-
* 桥接:
|
|
62
|
+
* 桥接:defineOp({ brep: __own_ellipsoidBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
63
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
59
64
|
*/
|
|
60
|
-
export const ellipsoid =
|
|
65
|
+
export const ellipsoid = defineOp({
|
|
66
|
+
brep: __own_ellipsoidBrep,
|
|
67
|
+
name: 'ellipsoid', naming: { "kind": "unmodeled", "reason": "construct vocabulary pending Phase 3" }, engines: ["occt"],
|
|
68
|
+
});
|
|
61
69
|
/**
|
|
62
|
-
* rotate —
|
|
70
|
+
* rotate — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
63
71
|
* rotate(shape: Shape, angle: number, options?: { at?, axis? }): Shape
|
|
64
|
-
* 桥接:
|
|
72
|
+
* 桥接:defineOp({ brep: __own_rotateBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
73
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
65
74
|
*/
|
|
66
|
-
export const rotate =
|
|
75
|
+
export const rotate = defineOp({
|
|
76
|
+
brep: __own_rotateBrep,
|
|
77
|
+
name: 'rotate', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
78
|
+
});
|
|
67
79
|
/**
|
|
68
|
-
* mirror —
|
|
80
|
+
* mirror — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
69
81
|
* mirror(shape: Shape, options?: MirrorOptions): Shape
|
|
70
|
-
* 桥接:
|
|
82
|
+
* 桥接:defineOp({ brep: __own_mirrorBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
83
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
71
84
|
*/
|
|
72
|
-
export const mirror =
|
|
85
|
+
export const mirror = defineOp({
|
|
86
|
+
brep: __own_mirrorBrep,
|
|
87
|
+
name: 'mirror', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
88
|
+
});
|
|
73
89
|
/**
|
|
74
|
-
* clone —
|
|
90
|
+
* clone — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
75
91
|
* clone(shape: Shape): Shape
|
|
76
|
-
* 桥接:
|
|
92
|
+
* 桥接:defineOp({ brep: __own_cloneBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
93
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
77
94
|
*/
|
|
78
|
-
export const clone =
|
|
95
|
+
export const clone = defineOp({
|
|
96
|
+
brep: __own_cloneBrep,
|
|
97
|
+
name: 'clone', naming: { "kind": "identity" }, engines: ["occt"],
|
|
98
|
+
});
|
|
79
99
|
/**
|
|
80
|
-
* applyMatrix —
|
|
100
|
+
* applyMatrix — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
81
101
|
* applyMatrix(shape: Shape, matrix: unknown): Shape
|
|
82
|
-
* 桥接:
|
|
102
|
+
* 桥接:defineOp({ brep: __own_applyMatrixBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
103
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
83
104
|
*/
|
|
84
|
-
export const applyMatrix =
|
|
105
|
+
export const applyMatrix = defineOp({
|
|
106
|
+
brep: __own_applyMatrixBrep,
|
|
107
|
+
name: 'applyMatrix', naming: { "kind": "identity" }, engines: ["occt"],
|
|
108
|
+
});
|
|
85
109
|
/**
|
|
86
|
-
* locate —
|
|
110
|
+
* locate — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
87
111
|
* locate(shape: Shape, placement: unknown): Shape
|
|
88
|
-
* 桥接:
|
|
112
|
+
* 桥接:defineOp({ brep: __own_locateBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
113
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
89
114
|
*/
|
|
90
|
-
export const locate =
|
|
91
|
-
|
|
115
|
+
export const locate = defineOp({
|
|
116
|
+
brep: __own_locateBrep,
|
|
117
|
+
name: 'locate', naming: { "kind": "identity" }, capabilities: ["composeTransform", "dispose", "hashCode", "locate"],
|
|
118
|
+
});
|
|
92
119
|
/**
|
|
93
|
-
* section —
|
|
120
|
+
* section — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
94
121
|
* section(shape: Shape, plane: PlaneInput): Shape
|
|
95
|
-
* 桥接:
|
|
122
|
+
* 桥接:defineOp({ brep: __own_sectionBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
123
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
96
124
|
*/
|
|
97
|
-
export const section =
|
|
125
|
+
export const section = defineOp({
|
|
126
|
+
brep: __own_sectionBrep,
|
|
127
|
+
name: 'section', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
128
|
+
});
|
|
98
129
|
/**
|
|
99
|
-
* split —
|
|
130
|
+
* split — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
100
131
|
* split(shape: Shape, tools: Shape[]): Shape
|
|
101
|
-
* 桥接:
|
|
132
|
+
* 桥接:defineOp({ brep: __own_splitBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
133
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
102
134
|
*/
|
|
103
|
-
export const split =
|
|
135
|
+
export const split = defineOp({
|
|
136
|
+
brep: __own_splitBrep,
|
|
137
|
+
name: 'split', naming: { "kind": "subdivide" }, engines: ["occt"],
|
|
138
|
+
});
|
|
104
139
|
/**
|
|
105
|
-
* shell —
|
|
140
|
+
* shell — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
106
141
|
* shell(shape: Shape, faces?: Shape[], thickness: number): Shape
|
|
107
|
-
* 桥接:
|
|
142
|
+
* 桥接:defineOp({ brep: __own_shellBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
143
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
108
144
|
*/
|
|
109
|
-
export const shell =
|
|
145
|
+
export const shell = defineOp({
|
|
146
|
+
brep: __own_shellBrep,
|
|
147
|
+
name: 'shell', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
148
|
+
});
|
|
110
149
|
/**
|
|
111
|
-
* offset —
|
|
150
|
+
* offset — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
112
151
|
* offset(shape: Shape, distance: number): Shape
|
|
113
|
-
* 桥接:
|
|
152
|
+
* 桥接:defineOp({ brep: __own_offsetBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
153
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
114
154
|
*/
|
|
115
|
-
export const offset =
|
|
155
|
+
export const offset = defineOp({
|
|
156
|
+
brep: __own_offsetBrep,
|
|
157
|
+
name: 'offset', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
158
|
+
});
|
|
116
159
|
/**
|
|
117
|
-
* heal —
|
|
160
|
+
* heal — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
118
161
|
* heal(shape: Shape): Shape
|
|
119
|
-
* 桥接:
|
|
162
|
+
* 桥接:defineOp({ brep: __own_healBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
163
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
120
164
|
*/
|
|
121
|
-
export const heal =
|
|
165
|
+
export const heal = defineOp({
|
|
166
|
+
brep: __own_healBrep,
|
|
167
|
+
name: 'heal', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
168
|
+
});
|
|
122
169
|
/**
|
|
123
|
-
* simplify —
|
|
170
|
+
* simplify — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
124
171
|
* simplify(shape: Shape): Shape
|
|
125
|
-
* 桥接:
|
|
172
|
+
* 桥接:defineOp({ brep: __own_simplifyBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
173
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
126
174
|
*/
|
|
127
|
-
export const simplify =
|
|
175
|
+
export const simplify = defineOp({
|
|
176
|
+
brep: __own_simplifyBrep,
|
|
177
|
+
name: 'simplify', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
178
|
+
});
|
|
128
179
|
/**
|
|
129
|
-
* isValid —
|
|
130
|
-
* isValid(shape: Shape): boolean
|
|
131
|
-
*
|
|
180
|
+
* isValid — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。
|
|
181
|
+
* isValid(shape: Shape): boolean(core selfhost)
|
|
182
|
+
* 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。
|
|
132
183
|
*
|
|
133
184
|
* @param shape - 可形状参数(原样透传)
|
|
134
185
|
* @returns boolean — 纯数据结果(非 Shape)。
|
|
135
186
|
*/
|
|
136
187
|
export function isValid(shape) {
|
|
137
|
-
|
|
188
|
+
const h0 = brepOf(shape);
|
|
189
|
+
return getBrepApi().isValid(h0);
|
|
138
190
|
}
|
|
139
191
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
192
|
+
* isSameShape — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。
|
|
193
|
+
* isSameShape(a: Shape, b: Shape): boolean(core selfhost)
|
|
194
|
+
* 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。
|
|
143
195
|
*
|
|
144
|
-
* @param
|
|
145
|
-
* @
|
|
146
|
-
*/
|
|
147
|
-
export function isEmpty(shape) {
|
|
148
|
-
return callBrepjs(__vendored_isEmpty, [borrowBrepjsShape(shape)]);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* isEqualShape — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。
|
|
152
|
-
* isEqualShape(a: Shape, b: Shape): boolean
|
|
153
|
-
* 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。
|
|
154
|
-
*
|
|
155
|
-
* @param shape - 可形状参数(原样透传)
|
|
196
|
+
* @param a - 可形状参数(第一个被比较形状)
|
|
197
|
+
* @param b - 可形状参数(第二个被比较形状)
|
|
156
198
|
* @returns boolean — 纯数据结果(非 Shape)。
|
|
157
199
|
*/
|
|
158
|
-
export function
|
|
159
|
-
|
|
200
|
+
export function isSameShape(a, b) {
|
|
201
|
+
const h0 = brepOf(a);
|
|
202
|
+
const h1 = brepOf(b);
|
|
203
|
+
return getBrepApi().isSame(h0, h1);
|
|
160
204
|
}
|
|
161
205
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* @param shape - 可形状参数(原样透传)
|
|
167
|
-
* @returns boolean — 纯数据结果(非 Shape)。
|
|
206
|
+
* autoHeal — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
207
|
+
* autoHeal(shape: Shape, options?: AutoHealOptions): { shape: Shape, report }
|
|
208
|
+
* 桥接:defineOp({ brep: __own_autoHealBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
209
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
168
210
|
*/
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
}
|
|
211
|
+
export const autoHeal = defineOp({
|
|
212
|
+
brep: __own_autoHealBrep,
|
|
213
|
+
name: 'autoHeal', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"], outputs: ["shape"],
|
|
214
|
+
});
|
|
172
215
|
/**
|
|
173
|
-
*
|
|
174
|
-
* autoHeal(shape: Shape, options?: AutoHealOptions): Shape
|
|
175
|
-
* 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。
|
|
176
|
-
*/
|
|
177
|
-
export const autoHeal = compatOp(projectBrepOp('autoHeal', ["shape", "options"], 'A', __vendored_autoHeal), { name: 'autoHeal', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, capabilities: ["dispose", "fixSelfIntersection", "healFace", "healSolid", "healWire", "isValid", "iterShapes", "sew", "shapeType"] });
|
|
178
|
-
/**
|
|
179
|
-
* fixShape — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
216
|
+
* fixShape — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
180
217
|
* fixShape(shape: Shape): Shape
|
|
181
|
-
* 桥接:
|
|
218
|
+
* 桥接:defineOp({ brep: __own_fixShapeBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
219
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
182
220
|
*/
|
|
183
|
-
export const fixShape =
|
|
221
|
+
export const fixShape = defineOp({
|
|
222
|
+
brep: __own_fixShapeBrep,
|
|
223
|
+
name: 'fixShape', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, capabilities: ["fixShape"],
|
|
224
|
+
});
|
|
184
225
|
/**
|
|
185
|
-
* healSolid —
|
|
226
|
+
* healSolid — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
186
227
|
* healSolid(solid: Shape): Shape
|
|
187
|
-
* 桥接:
|
|
228
|
+
* 桥接:defineOp({ brep: __own_healSolidBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
229
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
188
230
|
*/
|
|
189
|
-
export const healSolid =
|
|
231
|
+
export const healSolid = defineOp({
|
|
232
|
+
brep: __own_healSolidBrep,
|
|
233
|
+
name: 'healSolid', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
234
|
+
});
|
|
190
235
|
/**
|
|
191
|
-
* fixSelfIntersection —
|
|
236
|
+
* fixSelfIntersection — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。
|
|
192
237
|
* fixSelfIntersection(shape: Shape): Shape
|
|
193
|
-
* 桥接:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
export { isFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js';
|
|
201
|
-
export { isEdgeRef } from '../../vendored/brepjs/topology/shapeRef/index.js';
|
|
202
|
-
export { isVertexRef } from '../../vendored/brepjs/topology/shapeRef/index.js';
|
|
203
|
-
export { isDerivedFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js';
|
|
238
|
+
* 桥接:defineOp({ brep: __own_fixSelfIntersectionBrep })——core 直连 occt 引擎(§5.4 selfhost),
|
|
239
|
+
* D11 归一在自有实现内部完成(api/brep-mirror/)。
|
|
240
|
+
*/
|
|
241
|
+
export const fixSelfIntersection = defineOp({
|
|
242
|
+
brep: __own_fixSelfIntersectionBrep,
|
|
243
|
+
name: 'fixSelfIntersection', naming: { "kind": "kernel", "newFaces": { "via": "byAdjacency" } }, engines: ["occt"],
|
|
244
|
+
});
|
|
204
245
|
//# sourceMappingURL=topology.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topology.js","sourceRoot":"","sources":["../../../src/api/generated/topology.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAErE,OAAO,EAAE,KAAK,IAAI,gB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C,SAAS,EAAC,qBAAqB,EAAC,WAAW,CAAC,EAAE,CACzJ,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAExE,OAAO,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAA;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAA;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAA;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA","sourcesContent":["/**\n * generated/topology.ts — 生成文件,勿手改。\n * 由 packages/core/scripts/gen-l3-surface.ts 依据 api/surface/arg-spec.ts 生成(E5/P14 分片)。\n * topology 模块:128 个投影符号;另有 174 个 skip 登记。\n */\nimport { compatOp } from '../internal/compat-op'\nimport { projectBrepOp } from '../internal/compat-projection'\nimport { borrowBrepjsShape, callBrepjs } from '../internal/l3-bridge'\nimport type { Shape } from '../../mesh/types'\nimport { torus as __vendored_torus } from '../../vendored/brepjs/topology/primitiveFns.js'\nimport { fuse as __vendored_fuse } from '../../vendored/brepjs/topology/booleanFns.js'\nimport { getBounds as __vendored_getBounds } from '../../vendored/brepjs/topology/shapeFns.js'\nimport type { Bounds3D } from '../../vendored/brepjs/topology/shapeFns.js'\nimport { ellipsoid as __vendored_ellipsoid } from '../../vendored/brepjs/topology/primitiveFns.js'\nimport { rotate as __vendored_rotate } from '../../vendored/brepjs/topology/api.js'\nimport { mirror as __vendored_mirror } from '../../vendored/brepjs/topology/api.js'\nimport { clone as __vendored_clone } from '../../vendored/brepjs/topology/api.js'\nimport { applyMatrix as __vendored_applyMatrix } from '../../vendored/brepjs/topology/api.js'\nimport { locate as __vendored_locate } from '../../vendored/brepjs/topology/api.js'\nimport { section as __vendored_section } from '../../vendored/brepjs/topology/api.js'\nimport { split as __vendored_split } from '../../vendored/brepjs/topology/api.js'\nimport { shell as __vendored_shell } from '../../vendored/brepjs/topology/api.js'\nimport { offset as __vendored_offset } from '../../vendored/brepjs/topology/api.js'\nimport { heal as __vendored_heal } from '../../vendored/brepjs/topology/api.js'\nimport { simplify as __vendored_simplify } from '../../vendored/brepjs/topology/api.js'\nimport { isValid as __vendored_isValid } from '../../vendored/brepjs/topology/api.js'\nimport { isEmpty as __vendored_isEmpty } from '../../vendored/brepjs/topology/api.js'\nimport { isEqualShape as __vendored_isEqualShape } from '../../vendored/brepjs/topology/shapeFns.js'\nimport { isSameShape as __vendored_isSameShape } from '../../vendored/brepjs/topology/shapeFns.js'\nimport { autoHeal as __vendored_autoHeal } from '../../vendored/brepjs/topology/healingFns.js'\nimport { fixShape as __vendored_fixShape } from '../../vendored/brepjs/topology/healingFns.js'\nimport { healSolid as __vendored_healSolid } from '../../vendored/brepjs/topology/healingFns.js'\nimport { fixSelfIntersection as __vendored_fixSelfIntersection } from '../../vendored/brepjs/topology/healingFns.js'\n\nexport type { Bounds3D } from '../../vendored/brepjs/topology/shapeFns.js'\n\n/**\n * torus — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * (majorRadius: number, minorRadius: number, options?: TorusOptions)\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const torus = compatOp(\n projectBrepOp('torus', [\"majorRadius\",\"minorRadius\",\"options\"], 'A', __vendored_torus),\n { name: 'torus', naming: {\"kind\":\"unmodeled\",\"reason\":\"construct vocabulary pending Phase 3\"}, capabilities: [\"dispose\",\"makeTorus\"] },\n)\n\n/**\n * fuse — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * (a: Shape3D, b: Shape3D, options?: BooleanOptions) -> Result<Shape3D>\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const fuse = compatOp(\n projectBrepOp('fuse', [\"a\",\"b\",\"options\"], 'A', __vendored_fuse),\n { name: 'fuse', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"fuse\",\"fuseWithHistory\",\"isNull\"] },\n)\n\n/**\n * getBounds — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。\n * (shape: AnyShape) -> Bounds3D\n * 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns Bounds3D — 纯数据结果(非 Shape)。\n */\nexport function getBounds(shape: Shape): Bounds3D {\n return callBrepjs(__vendored_getBounds, [borrowBrepjsShape(shape as Shape)])\n}\n\nexport type { ComposedTransform } from '../../vendored/brepjs/topology/api.js'\n\nexport type { MirrorOptions } from '../../vendored/brepjs/topology/api.js'\n\nexport type { RotateOptions } from '../../vendored/brepjs/topology/api.js'\n\nexport type { ScaleOptions } from '../../vendored/brepjs/topology/api.js'\n\nexport type { TransformOp } from '../../vendored/brepjs/topology/api.js'\n\nexport type { BossOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { ChamferDistance } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { DraftAngle } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { DraftOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { DrawingLike } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { DrillOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { FilletRadius } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { FinderFn } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { MirrorJoinOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { PocketOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { RectangularPatternOptions } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { Shapeable } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { WrappedMarker } from '../../vendored/brepjs/topology/apiTypes.js'\n\nexport type { BatchBisectResult } from '../../vendored/brepjs/topology/booleanBatchFns.js'\n\nexport type { BatchBisectTelemetry } from '../../vendored/brepjs/topology/booleanBatchFns.js'\n\nexport type { BooleanOptions } from '../../vendored/brepjs/topology/booleanFns.js'\n\nexport type { BooleanPipelineStep } from '../../vendored/brepjs/topology/booleanFns.js'\n\nexport type { PipelineOp } from '../../vendored/brepjs/topology/booleanFns.js'\n\nexport type { ApproximateCurveOptions } from '../../vendored/brepjs/topology/curveFns.js'\n\nexport type { InterpolateCurveOptions } from '../../vendored/brepjs/topology/curveFns.js'\n\nexport type { EvolutionResult } from '../../vendored/brepjs/topology/evolutionFns.js'\n\nexport type { PointProjectionResult } from '../../vendored/brepjs/topology/faceFns.js'\n\nexport type { UVBounds } from '../../vendored/brepjs/topology/faceFns.js'\n\nexport type { AutoHealOptions } from '../../vendored/brepjs/topology/healingFns.js'\n\nexport type { HealingReport } from '../../vendored/brepjs/topology/healingFns.js'\n\nexport type { HealingStepDiagnostic } from '../../vendored/brepjs/topology/healingFns.js'\n\nexport type { HullOptions } from '../../vendored/brepjs/topology/hullFns.js'\n\nexport type { ChamferRadius } from '../../vendored/brepjs/topology/index.js'\n\nexport type { GenericTopo } from '../../vendored/brepjs/topology/index.js'\n\nexport type { RadiusOptions } from '../../vendored/brepjs/topology/index.js'\n\nexport type { TopoEntity } from '../../vendored/brepjs/topology/index.js'\n\nexport type { MeshCacheContext } from '../../vendored/brepjs/topology/meshCache.js'\n\nexport type { EdgeMesh } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { LODMesh } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { MeshLevelFn } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { MeshLODsOptions } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { MeshLODsProgressiveOptions } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { MeshOptions } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { MultiLODMesh } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { ShapeMesh } from '../../vendored/brepjs/topology/meshFns.js'\n\nexport type { Color } from '../../vendored/brepjs/topology/metadata/colorFns.js'\n\nexport type { ColorInput } from '../../vendored/brepjs/topology/metadata/colorFns.js'\n\nexport type { MinkowskiOptions } from '../../vendored/brepjs/topology/minkowskiFns.js'\n\nexport type { VariableFilletRadius } from '../../vendored/brepjs/topology/modifierFns.js'\n\nexport type { PolyhedronOptions } from '../../vendored/brepjs/topology/polyhedronFns.js'\n\nexport type { BoxOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { CircleOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { ConeOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { CylinderOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { EllipseArcOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { EllipseOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { EllipsoidOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { HelixOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { SphereOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { TorusOptions } from '../../vendored/brepjs/topology/primitiveFns.js'\n\nexport type { ShapeDescription } from '../../vendored/brepjs/topology/shapeFns.js'\n\nexport type { BrokenDerivedFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { BrokenEdgeRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { BrokenReason } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { BrokenRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { BrokenVertexRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { DerivedFaceHint } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { DerivedFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { EdgeHint } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { EdgeRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { FaceScorer } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { GeometricHint } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { LineageRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { LineageResolution } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ResolvedDerivedFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ResolvedEdgeRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ResolvedEntity } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ResolvedRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ResolvedVertexRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { RoleTable } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { ShapeRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { VertexHint } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { VertexRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport type { SurfaceFromGridOptions } from '../../vendored/brepjs/topology/surfaceFns.js'\n\nexport type { SurfaceFromImageOptions } from '../../vendored/brepjs/topology/surfaceFns.js'\n\nexport type { BufferGeometryData } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { BufferGeometryGroup } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { GroupedBufferGeometryData } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { LineGeometryData } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { LODGeometryData } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { LODGeometryLevel } from '../../vendored/brepjs/topology/threeHelpers.js'\n\nexport type { Wrapped } from '../../vendored/brepjs/topology/wrapperFns.js'\n\nexport type { Wrapped3D } from '../../vendored/brepjs/topology/wrapperFns.js'\n\nexport type { WrappedCurve } from '../../vendored/brepjs/topology/wrapperFns.js'\n\nexport type { WrappedFace } from '../../vendored/brepjs/topology/wrapperFns.js'\n\n/**\n * ellipsoid — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * ellipsoid(rx: number, ry: number, rz: number, options?: EllipsoidOptions): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const ellipsoid = compatOp(\n projectBrepOp('ellipsoid', [\"rx\",\"ry\",\"rz\",\"options\"], 'A', __vendored_ellipsoid),\n { name: 'ellipsoid', naming: {\"kind\":\"unmodeled\",\"reason\":\"construct vocabulary pending Phase 3\"}, capabilities: [\"dispose\",\"makeEllipsoid\",\"translateWithHistory\"] },\n)\n\n/**\n * rotate — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * rotate(shape: Shape, angle: number, options?: { at?, axis? }): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const rotate = compatOp(\n projectBrepOp('rotate', [\"shape\",\"angle\",\"options\"], 'A', __vendored_rotate),\n { name: 'rotate', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"rotateWithHistory\"] },\n)\n\n/**\n * mirror — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * mirror(shape: Shape, options?: MirrorOptions): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const mirror = compatOp(\n projectBrepOp('mirror', [\"shape\",\"options\"], 'A', __vendored_mirror),\n { name: 'mirror', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"mirrorWithHistory\"] },\n)\n\n/**\n * clone — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * clone(shape: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const clone = compatOp(\n projectBrepOp('clone', [\"shape\"], 'A', __vendored_clone),\n { name: 'clone', naming: {\"kind\":\"identity\"}, capabilities: [\"copyShape\",\"dispose\"] },\n)\n\n/**\n * applyMatrix — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * applyMatrix(shape: Shape, matrix: unknown): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const applyMatrix = compatOp(\n projectBrepOp('applyMatrix', [\"shape\",\"matrix\"], 'A', __vendored_applyMatrix),\n { name: 'applyMatrix', naming: {\"kind\":\"identity\"}, capabilities: [\"dispose\",\"generalTransformNonOrthogonal\",\"generalTransformWithHistory\",\"hashCode\",\"iterShapes\",\"surfaceCenterOfMass\",\"surfaceNormal\",\"surfaceType\",\"uvBounds\"] },\n)\n\n/**\n * locate — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * locate(shape: Shape, placement: unknown): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const locate = compatOp(\n projectBrepOp('locate', [\"shape\",\"placement\"], 'A', __vendored_locate),\n { name: 'locate', naming: {\"kind\":\"identity\"}, capabilities: [\"composeTransform\",\"dispose\",\"hashCode\",\"locate\"] },\n)\n\nexport { composeTransforms } from '../../vendored/brepjs/topology/api.js'\n\n/**\n * section — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * section(shape: Shape, plane: PlaneInput): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const section = compatOp(\n projectBrepOp('section', [\"shape\",\"plane\"], 'A', __vendored_section),\n { name: 'section', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"isNull\",\"section\"] },\n)\n\n/**\n * split — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * split(shape: Shape, tools: Shape[]): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const split = compatOp(\n projectBrepOp('split', [\"shape\",\"tools\"], 'A', __vendored_split),\n { name: 'split', naming: {\"kind\":\"subdivide\"}, capabilities: [\"dispose\",\"isNull\",\"split\"] },\n)\n\n/**\n * shell — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * shell(shape: Shape, faces?: Shape[], thickness: number): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const shell = compatOp(\n projectBrepOp('shell', [\"shape\",\"faces\",\"thickness\"], 'A', __vendored_shell),\n { name: 'shell', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"shapeType\",\"shell\",\"shellWithHistory\"] },\n)\n\n/**\n * offset — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * offset(shape: Shape, distance: number): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const offset = compatOp(\n projectBrepOp('offset', [\"shape\",\"distance\"], 'A', __vendored_offset),\n { name: 'offset', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"offsetWithHistory\",\"shapeType\"] },\n)\n\n/**\n * heal — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * heal(shape: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const heal = compatOp(\n projectBrepOp('heal', [\"shape\"], 'A', __vendored_heal),\n { name: 'heal', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"healFace\",\"healSolid\",\"healWire\",\"isValid\",\"shapeType\"] },\n)\n\n/**\n * simplify — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * simplify(shape: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const simplify = compatOp(\n projectBrepOp('simplify', [\"shape\"], 'A', __vendored_simplify),\n { name: 'simplify', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"simplify\"] },\n)\n\n/**\n * isValid — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。\n * isValid(shape: Shape): boolean\n * 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isValid(shape: Shape): boolean {\n return callBrepjs(__vendored_isValid, [borrowBrepjsShape(shape as Shape)])\n}\n\n/**\n * isEmpty — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。\n * isEmpty(shape: Shape): boolean\n * 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isEmpty(shape: Shape): boolean {\n return callBrepjs(__vendored_isEmpty, [borrowBrepjsShape(shape as Shape)])\n}\n\n/**\n * isEqualShape — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。\n * isEqualShape(a: Shape, b: Shape): boolean\n * 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isEqualShape(shape: Shape): boolean {\n return callBrepjs(__vendored_isEqualShape, [borrowBrepjsShape(shape as Shape)])\n}\n\n/**\n * isSameShape — 查询(返回纯数据,非 Shape)生成文件,勿手改;来源 api/surface/arg-spec.ts。\n * isSameShape(a: Shape, b: Shape): boolean\n * 输入 faijs Shape 借入 brepjs handle → 调 vendored → 返回纯数据(查询表达式承载)。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isSameShape(shape: Shape): boolean {\n return callBrepjs(__vendored_isSameShape, [borrowBrepjsShape(shape as Shape)])\n}\n\n/**\n * autoHeal — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * autoHeal(shape: Shape, options?: AutoHealOptions): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const autoHeal = compatOp(\n projectBrepOp('autoHeal', [\"shape\",\"options\"], 'A', __vendored_autoHeal),\n { name: 'autoHeal', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"fixSelfIntersection\",\"healFace\",\"healSolid\",\"healWire\",\"isValid\",\"iterShapes\",\"sew\",\"shapeType\"] },\n)\n\n/**\n * fixShape — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * fixShape(shape: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const fixShape = compatOp(\n projectBrepOp('fixShape', [\"shape\"], 'A', __vendored_fixShape),\n { name: 'fixShape', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"fixShape\"] },\n)\n\n/**\n * healSolid — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * healSolid(solid: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const healSolid = compatOp(\n projectBrepOp('healSolid', [\"solid\"], 'A', __vendored_healSolid),\n { name: 'healSolid', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"healSolid\",\"isValid\",\"shapeType\"] },\n)\n\n/**\n * fixSelfIntersection — brepjs 投影(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * fixSelfIntersection(shape: Shape): Shape\n * 桥接:compatOp(projectBrepOp(…))——单内核断言 + D11 归一 + 语句边界六步契约(§4.3.2)。\n */\nexport const fixSelfIntersection = compatOp(\n projectBrepOp('fixSelfIntersection', [\"shape\"], 'A', __vendored_fixSelfIntersection),\n { name: 'fixSelfIntersection', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"dispose\",\"fixSelfIntersection\",\"shapeType\"] },\n)\n\nexport { isNumber } from '../../vendored/brepjs/topology/index.js'\n\nexport { isChamferRadius } from '../../vendored/brepjs/topology/index.js'\n\nexport { isFilletRadius } from '../../vendored/brepjs/topology/index.js'\n\nexport { isLineageRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport { isFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport { isEdgeRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport { isVertexRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n\nexport { isDerivedFaceRef } from '../../vendored/brepjs/topology/shapeRef/index.js'\n"]}
|
|
1
|
+
{"version":3,"file":"topology.js","sourceRoot":"","sources":["../../../src/api/generated/topology.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE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AAC,MAAM,EAAC,QAAQ,EAAC,UAAU,EAAC,EAAC,KAAK,EAAC,aAAa,EAAC,EAAC,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC;CACjG,CAAC,CAAA;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IAC1C,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,EAAC,MAAM,EAAC,QAAQ,EAAC,UAAU,EAAC,EAAC,KAAK,EAAC,aAAa,EAAC,EAAC,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC;CAC3G,CAAC,CAAA","sourcesContent":["/**\n * generated/topology.ts — 生成文件,勿手改。\n * 由 packages/core/scripts/gen-l3-surface.ts 依据 api/surface/arg-spec.ts 生成(E5/P14 分片)。\n * topology 模块:21 个投影符号;另有 281 个 skip 登记。\n */\nimport { defineOp } from '../../define-op'\nimport { brepOf } from '../../shape'\nimport { getBrepApi } from '../../brep/handle-bridge'\nimport type { BrepHandle } from '../../brep/engine/types'\nimport type { Shape } from '../../mesh/types'\nimport { torusBrep as __own_torusBrep } from '../brep-mirror/primitiveFns'\nimport { fuseBrep as __own_fuseBrep } from '../brep-mirror/booleanFns'\nimport { ellipsoidBrep as __own_ellipsoidBrep } from '../brep-mirror/primitiveFns'\nimport { rotateBrep as __own_rotateBrep } from '../brep-mirror/topologyFns'\nimport { mirrorBrep as __own_mirrorBrep } from '../brep-mirror/topologyFns'\nimport { cloneBrep as __own_cloneBrep } from '../brep-mirror/topologyFns'\nimport { applyMatrixBrep as __own_applyMatrixBrep } from '../brep-mirror/topologyFns'\nimport { locateBrep as __own_locateBrep } from '../brep-mirror/topologyFns'\nimport { sectionBrep as __own_sectionBrep } from '../brep-mirror/booleanFns'\nimport { splitBrep as __own_splitBrep } from '../brep-mirror/booleanFns'\nimport { shellBrep as __own_shellBrep } from '../brep-mirror/topologyFns'\nimport { offsetBrep as __own_offsetBrep } from '../brep-mirror/topologyFns'\nimport { healBrep as __own_healBrep } from '../brep-mirror/healingFns'\nimport { simplifyBrep as __own_simplifyBrep } from '../brep-mirror/healingFns'\nimport { autoHealBrep as __own_autoHealBrep } from '../brep-mirror/healingFns'\nimport { fixShapeBrep as __own_fixShapeBrep } from '../brep-mirror/healingFns'\nimport { healSolidBrep as __own_healSolidBrep } from '../brep-mirror/healingFns'\nimport { fixSelfIntersectionBrep as __own_fixSelfIntersectionBrep } from '../brep-mirror/healingFns'\n\n/**\n * torus — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * (majorRadius: number, minorRadius: number, options?: TorusOptions)\n * 桥接:defineOp({ brep: __own_torusBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const torus = defineOp({\n brep: __own_torusBrep,\n name: 'torus', naming: {\"kind\":\"unmodeled\",\"reason\":\"construct vocabulary pending Phase 3\"}, capabilities: [\"dispose\",\"makeTorus\"],\n})\n\n/**\n * fuse — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * (a: Shape3D, b: Shape3D, options?: BooleanOptions) -> Result<Shape3D>\n * 桥接:defineOp({ brep: __own_fuseBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const fuse = defineOp({\n brep: __own_fuseBrep,\n name: 'fuse', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * getBounds — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。\n * (shape: Shape) -> BrepBoundingBox(core selfhost)\n * 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns { xmin: number; ymin: number; zmin: number; xmax: number; ymax: number; zmax: number } — 纯数据结果(非 Shape)。\n */\nexport function getBounds(shape: Shape): { xmin: number; ymin: number; zmin: number; xmax: number; ymax: number; zmax: number } {\n const h0 = brepOf(shape as Shape) as BrepHandle\n return getBrepApi().getBoundingBox(h0)\n}\n\n/**\n * ellipsoid — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * ellipsoid(rx: number, ry: number, rz: number, options?: EllipsoidOptions): Shape\n * 桥接:defineOp({ brep: __own_ellipsoidBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const ellipsoid = defineOp({\n brep: __own_ellipsoidBrep,\n name: 'ellipsoid', naming: {\"kind\":\"unmodeled\",\"reason\":\"construct vocabulary pending Phase 3\"}, engines: [\"occt\"],\n})\n\n/**\n * rotate — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * rotate(shape: Shape, angle: number, options?: { at?, axis? }): Shape\n * 桥接:defineOp({ brep: __own_rotateBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const rotate = defineOp({\n brep: __own_rotateBrep,\n name: 'rotate', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * mirror — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * mirror(shape: Shape, options?: MirrorOptions): Shape\n * 桥接:defineOp({ brep: __own_mirrorBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const mirror = defineOp({\n brep: __own_mirrorBrep,\n name: 'mirror', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * clone — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * clone(shape: Shape): Shape\n * 桥接:defineOp({ brep: __own_cloneBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const clone = defineOp({\n brep: __own_cloneBrep,\n name: 'clone', naming: {\"kind\":\"identity\"}, engines: [\"occt\"],\n})\n\n/**\n * applyMatrix — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * applyMatrix(shape: Shape, matrix: unknown): Shape\n * 桥接:defineOp({ brep: __own_applyMatrixBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const applyMatrix = defineOp({\n brep: __own_applyMatrixBrep,\n name: 'applyMatrix', naming: {\"kind\":\"identity\"}, engines: [\"occt\"],\n})\n\n/**\n * locate — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * locate(shape: Shape, placement: unknown): Shape\n * 桥接:defineOp({ brep: __own_locateBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const locate = defineOp({\n brep: __own_locateBrep,\n name: 'locate', naming: {\"kind\":\"identity\"}, capabilities: [\"composeTransform\",\"dispose\",\"hashCode\",\"locate\"],\n})\n\n/**\n * section — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * section(shape: Shape, plane: PlaneInput): Shape\n * 桥接:defineOp({ brep: __own_sectionBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const section = defineOp({\n brep: __own_sectionBrep,\n name: 'section', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * split — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * split(shape: Shape, tools: Shape[]): Shape\n * 桥接:defineOp({ brep: __own_splitBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const split = defineOp({\n brep: __own_splitBrep,\n name: 'split', naming: {\"kind\":\"subdivide\"}, engines: [\"occt\"],\n})\n\n/**\n * shell — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * shell(shape: Shape, faces?: Shape[], thickness: number): Shape\n * 桥接:defineOp({ brep: __own_shellBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const shell = defineOp({\n brep: __own_shellBrep,\n name: 'shell', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * offset — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * offset(shape: Shape, distance: number): Shape\n * 桥接:defineOp({ brep: __own_offsetBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const offset = defineOp({\n brep: __own_offsetBrep,\n name: 'offset', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * heal — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * heal(shape: Shape): Shape\n * 桥接:defineOp({ brep: __own_healBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const heal = defineOp({\n brep: __own_healBrep,\n name: 'heal', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * simplify — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * simplify(shape: Shape): Shape\n * 桥接:defineOp({ brep: __own_simplifyBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const simplify = defineOp({\n brep: __own_simplifyBrep,\n name: 'simplify', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * isValid — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。\n * isValid(shape: Shape): boolean(core selfhost)\n * 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。\n *\n * @param shape - 可形状参数(原样透传)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isValid(shape: Shape): boolean {\n const h0 = brepOf(shape as Shape) as BrepHandle\n return getBrepApi().isValid(h0)\n}\n\n/**\n * isSameShape — 查询(core selfhost,生成文件,勿手改;来源 api/surface/arg-spec.ts)。\n * isSameShape(a: Shape, b: Shape): boolean(core selfhost)\n * 桥接:getBrepApi().* 直连 occt 引擎(§5.5 第 2 条)——无 vendored 借入/调用。\n *\n * @param a - 可形状参数(第一个被比较形状)\n * @param b - 可形状参数(第二个被比较形状)\n * @returns boolean — 纯数据结果(非 Shape)。\n */\nexport function isSameShape(a: Shape, b: Shape): boolean {\n const h0 = brepOf(a as Shape) as BrepHandle\n const h1 = brepOf(b as Shape) as BrepHandle\n return getBrepApi().isSame(h0, h1)\n}\n\n/**\n * autoHeal — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * autoHeal(shape: Shape, options?: AutoHealOptions): { shape: Shape, report }\n * 桥接:defineOp({ brep: __own_autoHealBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const autoHeal = defineOp({\n brep: __own_autoHealBrep,\n name: 'autoHeal', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"], outputs: [\"shape\"],\n})\n\n/**\n * fixShape — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * fixShape(shape: Shape): Shape\n * 桥接:defineOp({ brep: __own_fixShapeBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const fixShape = defineOp({\n brep: __own_fixShapeBrep,\n name: 'fixShape', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, capabilities: [\"fixShape\"],\n})\n\n/**\n * healSolid — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * healSolid(solid: Shape): Shape\n * 桥接:defineOp({ brep: __own_healSolidBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const healSolid = defineOp({\n brep: __own_healSolidBrep,\n name: 'healSolid', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n\n/**\n * fixSelfIntersection — core 自有实现(生成文件,禁手改;来源 api/surface/arg-spec.ts)。\n * fixSelfIntersection(shape: Shape): Shape\n * 桥接:defineOp({ brep: __own_fixSelfIntersectionBrep })——core 直连 occt 引擎(§5.4 selfhost),\n * D11 归一在自有实现内部完成(api/brep-mirror/)。\n */\nexport const fixSelfIntersection = defineOp({\n brep: __own_fixSelfIntersectionBrep,\n name: 'fixSelfIntersection', naming: {\"kind\":\"kernel\",\"newFaces\":{\"via\":\"byAdjacency\"}}, engines: [\"occt\"],\n})\n"]}
|
package/dist/api/geom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geom.d.ts","sourceRoot":"","sources":["../../src/api/geom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"geom.d.ts","sourceRoot":"","sources":["../../src/api/geom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAsDhD;;;;;;;;;;;;;IAaI;AACJ,wBAAgB,UAAU,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAE3E;AAED;;;;;;;;;;;IAWI;AACJ,wBAAgB,UAAU,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAE1C;AAED;;;;;;;;;;;IAWI;AACJ,wBAAgB,OAAO,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAEvC;AAED;;;;;;;;;;;IAWI;AACJ,wBAAgB,OAAO,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAEvC"}
|
package/dist/api/geom.js
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* - bboxCenter/bboxMin/bboxMax:mesh 包围盒查询
|
|
10
10
|
*/
|
|
11
11
|
import { cad } from '../mesh/index.js';
|
|
12
|
-
import {
|
|
12
|
+
import { getBrepApi } from '../brep/handle-bridge.js';
|
|
13
13
|
import { brepOf } from '../shape.js';
|
|
14
14
|
/** 内部实现:faceNormal 专用——faceOrdinal+BREP 优先 → anchor 反查 → 报错(逻辑迁移自 resolveGeomRef)。 */
|
|
15
15
|
function geomQuery(of, anchor, faceOrdinal) {
|
|
16
16
|
// 优先路径:faceOrdinal 拓扑引用(BREP 路径)
|
|
17
17
|
if (faceOrdinal !== undefined) {
|
|
18
18
|
const solid = brepOf(of);
|
|
19
|
-
const kernel =
|
|
19
|
+
const kernel = getBrepApi();
|
|
20
20
|
if (solid && kernel) {
|
|
21
21
|
try {
|
|
22
22
|
const faces = kernel.getSubShapes(solid, 'face');
|
package/dist/api/geom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geom.js","sourceRoot":"","sources":["../../src/api/geom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"geom.js","sourceRoot":"","sources":["../../src/api/geom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,UAAU,EAA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BAC7B,KAAK,MAAM,CAAC,IAAI,KAAK;oBAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;YAC1C,CAAC;YAAC,MAAM,CAAC;gBACP,yBAAyB;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;IAED,mBAAmB;IACnB,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;IACxE,CAAC;IACD,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IAC9C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,yCAAyC,MAAM,EAAE,CAAC,CAAA;IACpE,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAA;AACpB,CAAC;AAED;;;;;;;;;;;;;IAaI;AACJ,MAAM,UAAU,UAAU,CAAC,EAAS,EAAE,MAAa,EAAE,OAAgB;IACnE,OAAO,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AACvC,CAAC;AAED;;;;;;;;;;;IAWI;AACJ,MAAM,UAAU,UAAU,CAAC,EAAS;IAClC,OAAO,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;AAC3B,CAAC;AAED;;;;;;;;;;;IAWI;AACJ,MAAM,UAAU,OAAO,CAAC,EAAS;IAC/B,OAAO,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,CAAA;AAChC,CAAC;AAED;;;;;;;;;;;IAWI;AACJ,MAAM,UAAU,OAAO,CAAC,EAAS;IAC/B,OAAO,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,CAAA;AAChC,CAAC","sourcesContent":["/**\n * stdlib geom — $geom 查询函数族(有形签名)\n *\n *\n * `cad.<feature>(of, anchor?, ordinal?)`:\n * - of 是 Shape(编译产物 `ctx.<var>` 引用),非变量名\n * - faceNormal:faceOrdinal + brepOf(of) + kernel(拓扑引用)\n * 优先 → anchor 几何反查(兜底)→ 报错\n * - bboxCenter/bboxMin/bboxMax:mesh 包围盒查询\n */\n\nimport type { Shape, Vec3 } from '../mesh/types'\nimport { cad } from '../mesh'\nimport { getBrepApi } from '../brep/handle-bridge'\nimport { brepOf } from '../shape'\nimport type { BrepHandle } from '../brep/engine/types'\n\n/** 内部实现:faceNormal 专用——faceOrdinal+BREP 优先 → anchor 反查 → 报错(逻辑迁移自 resolveGeomRef)。 */\nfunction geomQuery(\n of: Shape,\n anchor: Vec3 | undefined,\n faceOrdinal: number | undefined,\n): Vec3 {\n // 优先路径:faceOrdinal 拓扑引用(BREP 路径)\n if (faceOrdinal !== undefined) {\n const solid = brepOf(of) as BrepHandle | undefined\n const kernel = getBrepApi()\n if (solid && kernel) {\n try {\n const faces = kernel.getSubShapes(solid, 'face')\n if (faceOrdinal < faces.length) {\n const face = faces[faceOrdinal]\n // 面法向:用 surfaceNormal 在 (0.5, 0.5) 处取\n let normal: Vec3 = [0, 0, 1]\n try {\n const n = kernel.surfaceNormal(face, 0.5, 0.5)\n normal = [n.x, n.y, n.z]\n } catch {\n // surfaceNormal 可能对某些面失败,用默认法向\n }\n kernel.release(face)\n for (let i = 0; i < faces.length; i++) {\n if (i !== faceOrdinal) kernel.release(faces[i])\n }\n return normal\n }\n // ordinal 越界 → 释放并降级到 anchor\n for (const f of faces) kernel.release(f)\n } catch {\n // BREP 取面失败 → 降级到 anchor\n }\n }\n }\n\n // 兜底路径:anchor 几何反查\n if (!anchor) {\n throw new Error('[GeomRef] faceNormal requires anchor or faceOrdinal')\n }\n const face = cad.faceAt(of, { point: anchor })\n if (!face) {\n throw new Error(`[GeomRef] faceAt failed for anchor at ${anchor}`)\n }\n return face.normal\n}\n\n/**\n * 查询面上某点(锚点)的法向。\n * @group 查询\n * @inputs 1\n * @async false\n * @qual ok\n * @name faceNormal\n * @returns Vec3 面上锚点处的法向 [x,y,z]。\n * @param of - 目标几何(编译产物 ctx.<var> 引用)。type:Shape required:true\n * @param anchor - 锚点(几何反查兜底)。type:[x,y,z]\n * @param ordinal - 面序号(BREP 拓扑引用优先)。type:number\n * @example\n * const n = cad.faceNormal(part0, [0, 0, 5])\n */\nexport function faceNormal(of: Shape, anchor?: Vec3, ordinal?: number): Vec3 {\n return geomQuery(of, anchor, ordinal)\n}\n\n/**\n * 查询几何包围盒中心。\n * @group 查询\n * @inputs 1\n * @async false\n * @qual ok\n * @name bboxCenter\n * @returns Vec3 包围盒中心 [x,y,z]。交互式可编辑(参数量引用)。\n * @param of - 目标几何。type:Shape required:true\n * @example\n * const c = cad.bboxCenter(part0)\n */\nexport function bboxCenter(of: Shape): Vec3 {\n return cad.bboxCenter(of)\n}\n\n/**\n * 查询几何包围盒最小角点。\n * @group 查询\n * @inputs 1\n * @async false\n * @qual ok\n * @name bboxMin\n * @returns Vec3 包围盒最小角点 [x,y,z]。\n * @param of - 目标几何。type:Shape required:true\n * @example\n * const mn = cad.bboxMin(part0)\n */\nexport function bboxMin(of: Shape): Vec3 {\n return cad.boundingBox(of).min\n}\n\n/**\n * 查询几何包围盒最大角点。\n * @group 查询\n * @inputs 1\n * @async false\n * @qual ok\n * @name bboxMax\n * @returns Vec3 包围盒最大角点 [x,y,z]。\n * @param of - 目标几何。type:Shape required:true\n * @example\n * const mx = cad.bboxMax(part0)\n */\nexport function bboxMax(of: Shape): Vec3 {\n return cad.boundingBox(of).max\n}\n"]}
|