brepjs 20.12.7 → 20.12.9
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/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-hMihivxC.js → adjacencyFns-1Cmjb2ot.js} +3 -3
- package/dist/{adjacencyFns-mMmTBUBY.cjs → adjacencyFns-CfhGIMeR.cjs} +3 -3
- package/dist/{blueprint-BS50D3J_.js → blueprint-BVcuEefs.js} +5 -5
- package/dist/{blueprint-17RUHsoP.cjs → blueprint-DbJVzU9F.cjs} +5 -5
- package/dist/{blueprintFns-Dw5_4_Bk.cjs → blueprintFns-DePTHG1I.cjs} +2 -2
- package/dist/{blueprintFns-zy5lo2IF.js → blueprintFns-mD4pDyFP.js} +2 -2
- package/dist/{blueprintSketcher-BG--DxWB.cjs → blueprintSketcher-B5CFmhjg.cjs} +3 -3
- package/dist/{blueprintSketcher-C1WCI6E0.js → blueprintSketcher-BrGmq-65.js} +3 -3
- package/dist/{boolean2D-CsdyfjFE.js → boolean2D-BrHrY60M.js} +4 -4
- package/dist/{boolean2D-7SQ3B0pC.cjs → boolean2D-CFKg1FJ_.cjs} +4 -4
- package/dist/{solidBuilders-DdG4NPHM.cjs → booleanFns-C640CeaY.cjs} +11 -217
- package/dist/{solidBuilders-Bmr59cGp.js → booleanFns-CKDyqKz0.js} +10 -156
- package/dist/brepjs.cjs +325 -168
- package/dist/brepjs.js +282 -125
- package/dist/{cameraFns-BVWyAscu.js → cameraFns-DIbua1lC.js} +3 -3
- package/dist/{cameraFns-BAtzhCYM.cjs → cameraFns-hXUKJkLg.cjs} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-Dv_2rmaY.js → cornerFinder-BYDkloVc.js} +1 -1
- package/dist/{cornerFinder-e4Wc7_yp.cjs → cornerFinder-ByBGU0r7.cjs} +1 -1
- package/dist/{curveFns-BAM7QHrP.cjs → curveFns-Cqgtmhr0.cjs} +1 -1
- package/dist/{curveFns-CEI-rouh.js → curveFns-DphpaoQ4.js} +1 -1
- package/dist/{drawFns-Cl1i8B_B.js → drawFns-Ch3ah8K9.js} +12 -12
- package/dist/{drawFns-d-RvC6u6.cjs → drawFns-GwVZX47o.cjs} +12 -12
- package/dist/{faceFns-C-2ttg8X.cjs → faceFns-BDqVGEoB.cjs} +2 -2
- package/dist/{faceFns-Q87HCJrp.js → faceFns-D4cDeMRf.js} +2 -2
- package/dist/{healingFns-Cm4NkKD8.js → healingFns--vBKh5pa.js} +5 -5
- package/dist/{healingFns-DZkO5okn.cjs → healingFns-Fu7Xl8fu.cjs} +29 -29
- package/dist/{helpers-DpGcM2qZ.js → helpers-CroIo2SI.js} +6 -6
- package/dist/{helpers-BdGGaLhF.cjs → helpers-Wnq-YPWv.cjs} +6 -6
- package/dist/{importFns-Bp-p0jiP.js → importFns-D5Bt_44J.js} +314 -15
- package/dist/{importFns-DLiP26NW.cjs → importFns-tHr15Lhm.cjs} +319 -14
- package/dist/io/igesSupport.d.ts +6 -0
- package/dist/io/importFns.d.ts +15 -5
- package/dist/io/ioUtils.d.ts +15 -3
- package/dist/io/meshNesting.d.ts +11 -0
- package/dist/io/threemfImportFns.d.ts +6 -3
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occtWasm/evolutionOps.d.ts +4 -3
- package/dist/kernel/occtWasm/helpers.d.ts +14 -3
- package/dist/kernel/occtWasm/ioOps.d.ts +13 -13
- package/dist/kernel/occtWasm/modifierOps.d.ts +5 -3
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +37 -2
- package/dist/{loftFns-DQ7Z29n3.js → loftFns-Bh_RuF7a.js} +1 -1
- package/dist/{loftFns-DGV1z2NJ.cjs → loftFns-T0GxcPlB.cjs} +1 -1
- package/dist/{measureFns-BrdCH4cH.js → measureFns-C3TZ5Fj9.js} +3 -3
- package/dist/{measureFns-BdSjw5fr.cjs → measureFns-DGm6ndQY.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-BeubBqEI.cjs → meshFns-DDgZ3vpr.cjs} +25 -5
- package/dist/{meshFns-UE8tByyw.js → meshFns-Go1XSyUh.js} +20 -6
- package/dist/{occtWasmAdapter-D3qerQTq.cjs → occtWasmAdapter-CZPZnpCe.cjs} +297 -85
- package/dist/{occtWasmAdapter-DA7oMgcQ.js → occtWasmAdapter-EM3EhKwk.js} +297 -85
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-3-gs-FUX.js → primitiveFns-CeRc4Sls.js} +5 -4
- package/dist/{primitiveFns-CLGVLwG8.cjs → primitiveFns-Dg_XWYtp.cjs} +19 -18
- package/dist/{principalBoxFns-CiXzjOkr.cjs → principalBoxFns-B5zdek3y.cjs} +3 -3
- package/dist/{principalBoxFns-RMZItjfR.js → principalBoxFns-BuK-ueAB.js} +3 -3
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-DNX0bCrP.cjs → refResolveFns-CFwsYCKA.cjs} +6 -6
- package/dist/{refResolveFns-kJg2iCad.js → refResolveFns-WRcvVhV-.js} +6 -6
- package/dist/{shapeFns-CZ6VF1yd.js → shapeFns-CYjU8PsF.js} +2 -2
- package/dist/{shapeFns-SgIrOjN4.cjs → shapeFns-DuxfaqTw.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-MUEH4XuH.cjs → shapeTypes--7XBFlOD.cjs} +1 -1
- package/dist/{shapeTypes-BNGu103j.js → shapeTypes-DvzbSivn.js} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{originTrackingFns-c2qgRZ_9.js → solidBuilders-BqSVC4cB.js} +150 -3
- package/dist/{originTrackingFns-rEKOAP65.cjs → solidBuilders-D0bIZX9K.cjs} +209 -2
- package/dist/{surfaceBuilders-DI376ai0.js → surfaceBuilders--HOoTQad.js} +3 -3
- package/dist/{surfaceBuilders-DOmDVuMs.cjs → surfaceBuilders-CPQHyL_5.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-B7Vhr0xu.cjs → textBlueprints-B4HzJzZM.cjs} +9 -8
- package/dist/{textBlueprints-CE0oxB43.js → textBlueprints-plsbHqiI.js} +8 -7
- package/dist/{textMetrics-C6_kSht6.cjs → textMetrics-CBwUIDI7.cjs} +1 -1
- package/dist/{textMetrics-_VGqdewQ.js → textMetrics-IIS6DUTr.js} +1 -1
- package/dist/{threadFns-CHdY-4Cz.js → threadFns-CmZFykpi.js} +7 -7
- package/dist/{threadFns-1H60LrFX.cjs → threadFns-e8_26ZYw.cjs} +9 -9
- package/dist/topology/meshFns.d.ts +3 -0
- package/dist/topology.cjs +11 -11
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-CltEv7Pi.js → topologyQueryFns-BUzMuIs5.js} +1 -1
- package/dist/{topologyQueryFns-C_fXO6xL.cjs → topologyQueryFns-NszVx8a0.cjs} +1 -1
- package/dist/{validityTypes-GanLrmvY.js → validityTypes-CdY06B8c.js} +1 -1
- package/dist/{validityTypes-CGX2ES81.cjs → validityTypes-Ds4zNICF.cjs} +1 -1
- package/package.json +2 -2
package/dist/2d.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
5
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
6
|
-
const require_blueprint = require("./blueprint-
|
|
7
|
-
const require_boolean2D = require("./boolean2D-
|
|
8
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
|
|
5
|
+
const require_blueprintSketcher = require("./blueprintSketcher-B5CFmhjg.cjs");
|
|
6
|
+
const require_blueprint = require("./blueprint-DbJVzU9F.cjs");
|
|
7
|
+
const require_boolean2D = require("./boolean2D-CFKg1FJ_.cjs");
|
|
8
|
+
const require_blueprintFns = require("./blueprintFns-DePTHG1I.cjs");
|
|
9
9
|
// src/core/curve2dHandle.ts
|
|
10
10
|
/**
|
|
11
11
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
package/dist/2d.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as createKernelHandle, J as getKernel2D, c as createEdge } from "./shapeTypes-
|
|
1
|
+
import { F as createKernelHandle, J as getKernel2D, c as createEdge } from "./shapeTypes-DvzbSivn.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-
|
|
5
|
-
import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-
|
|
6
|
-
import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
7
|
-
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-
|
|
3
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-BUzMuIs5.js";
|
|
4
|
+
import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-BrGmq-65.js";
|
|
5
|
+
import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-BVcuEefs.js";
|
|
6
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BrHrY60M.js";
|
|
7
|
+
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-mD4pDyFP.js";
|
|
8
8
|
// src/core/curve2dHandle.ts
|
|
9
9
|
/**
|
|
10
10
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as GeometryCleanupError, K as getActiveKernelId, q as getKernel, r as castResultShapeWithKnownType, t as borrowShapeWithKnownType } from "./shapeTypes-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-
|
|
3
|
-
import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-
|
|
1
|
+
import { E as GeometryCleanupError, K as getActiveKernelId, q as getKernel, r as castResultShapeWithKnownType, t as borrowShapeWithKnownType } from "./shapeTypes-DvzbSivn.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-EM3EhKwk.js";
|
|
3
|
+
import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-BUzMuIs5.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
5
|
// src/topology/adjacencyFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-CZPZnpCe.cjs");
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
// src/topology/adjacencyFns.ts
|
|
6
6
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { B as unregisterFromCleanup, J as getKernel2D, R as registerForCleanup, c as createEdge, p as createWire, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { B as unregisterFromCleanup, J as getKernel2D, R as registerForCleanup, c as createEdge, p as createWire, q as getKernel } from "./shapeTypes-DvzbSivn.js";
|
|
2
2
|
import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, P as unwrap, d as validationError, g as err, n as computationError } from "./errors-BTccWbtE.js";
|
|
4
4
|
import { r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
6
6
|
import { r as makePlane } from "./planeOps-D3yDuMux.js";
|
|
7
|
-
import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-
|
|
8
|
-
import { p as getOrientation } from "./curveFns-
|
|
7
|
+
import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-D4cDeMRf.js";
|
|
8
|
+
import { p as getOrientation } from "./curveFns-DphpaoQ4.js";
|
|
9
9
|
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders
|
|
11
|
-
import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders--HOoTQad.js";
|
|
11
|
+
import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-CroIo2SI.js";
|
|
12
12
|
// src/2d/lib/definitions.ts
|
|
13
13
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
14
14
|
function isPoint2D(point) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-Cqgtmhr0.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
11
|
-
const require_helpers = require("./helpers-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CPQHyL_5.cjs");
|
|
11
|
+
const require_helpers = require("./helpers-Wnq-YPWv.cjs");
|
|
12
12
|
// src/2d/lib/definitions.ts
|
|
13
13
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
14
14
|
function isPoint2D(point) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_blueprint = require("./blueprint-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-B5CFmhjg.cjs");
|
|
3
|
+
const require_blueprint = require("./blueprint-DbJVzU9F.cjs");
|
|
4
4
|
// src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
2
|
-
import { i as CompoundBlueprint } from "./blueprintSketcher-
|
|
3
|
-
import { t as Blueprint } from "./blueprint-
|
|
2
|
+
import { i as CompoundBlueprint } from "./blueprintSketcher-BrGmq-65.js";
|
|
3
|
+
import { t as Blueprint } from "./blueprint-BVcuEefs.js";
|
|
4
4
|
// src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
6
|
-
const require_helpers = require("./helpers-
|
|
7
|
-
const require_blueprint = require("./blueprint-
|
|
6
|
+
const require_helpers = require("./helpers-Wnq-YPWv.cjs");
|
|
7
|
+
const require_blueprint = require("./blueprint-DbJVzU9F.cjs");
|
|
8
8
|
// node_modules/flatqueue/index.js
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as getKernel2D, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { J as getKernel2D, q as getKernel } from "./shapeTypes-DvzbSivn.js";
|
|
2
2
|
import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, P as unwrap, g as err, n as computationError, s as safeIndex, x as isOk } from "./errors-BTccWbtE.js";
|
|
4
4
|
import { r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
6
|
-
import { _ as rotate2d, b as squareDistance2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-
|
|
7
|
-
import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-
|
|
6
|
+
import { _ as rotate2d, b as squareDistance2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-CroIo2SI.js";
|
|
7
|
+
import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-BVcuEefs.js";
|
|
8
8
|
// node_modules/flatqueue/index.js
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
|
|
2
2
|
import { P as unwrap, s as safeIndex } from "./errors-BTccWbtE.js";
|
|
3
3
|
import { r as lastOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
4
|
-
import { v as zip } from "./surfaceBuilders
|
|
5
|
-
import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-
|
|
6
|
-
import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-
|
|
7
|
-
import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-
|
|
4
|
+
import { v as zip } from "./surfaceBuilders--HOoTQad.js";
|
|
5
|
+
import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-BrGmq-65.js";
|
|
6
|
+
import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-CroIo2SI.js";
|
|
7
|
+
import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-BVcuEefs.js";
|
|
8
8
|
// src/2d/blueprints/cannedBlueprints.ts
|
|
9
9
|
/**
|
|
10
10
|
* Create a regular polygon blueprint inscribed in a circle of the given radius.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
3
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
4
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
5
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
6
|
-
const require_helpers = require("./helpers-
|
|
7
|
-
const require_blueprint = require("./blueprint-
|
|
4
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CPQHyL_5.cjs");
|
|
5
|
+
const require_blueprintSketcher = require("./blueprintSketcher-B5CFmhjg.cjs");
|
|
6
|
+
const require_helpers = require("./helpers-Wnq-YPWv.cjs");
|
|
7
|
+
const require_blueprint = require("./blueprint-DbJVzU9F.cjs");
|
|
8
8
|
// src/2d/blueprints/cannedBlueprints.ts
|
|
9
9
|
/**
|
|
10
10
|
* Create a regular polygon blueprint inscribed in a circle of the given radius.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
|
|
7
|
-
const
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-rEKOAP65.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-D0bIZX9K.cjs");
|
|
9
8
|
const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
|
|
10
9
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
11
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CPQHyL_5.cjs");
|
|
12
11
|
// src/topology/metadata/faceTagFns.ts
|
|
13
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
14
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -242,7 +241,7 @@ function propagateColorsFromEvolution(evolution, inputs, result) {
|
|
|
242
241
|
* metadata-preserving slow paths when there's nothing to preserve.
|
|
243
242
|
*/
|
|
244
243
|
function hasAnyMetadata(shape) {
|
|
245
|
-
return
|
|
244
|
+
return require_solidBuilders.getFaceOrigins(shape) !== void 0 || hasFaceTags(shape) || hasColorMetadata(shape) || require_faceRoleFns.hasFaceRoles(shape);
|
|
246
245
|
}
|
|
247
246
|
function collectInputFaceHashes(inputs) {
|
|
248
247
|
if (!inputs.some(hasAnyMetadata)) return [];
|
|
@@ -258,7 +257,7 @@ function collectInputFaceHashes(inputs) {
|
|
|
258
257
|
* `{ shape, evolution }` from a WithHistory kernel method.
|
|
259
258
|
*/
|
|
260
259
|
function propagateAllMetadata(evolution, inputs, result) {
|
|
261
|
-
|
|
260
|
+
require_solidBuilders.propagateOriginsFromEvolution(evolution, inputs, result);
|
|
262
261
|
propagateFaceTagsFromEvolution(evolution, inputs, result);
|
|
263
262
|
propagateColorsFromEvolution(evolution, inputs, result);
|
|
264
263
|
require_faceRoleFns.propagateFaceRolesFromEvolution(evolution, inputs, result);
|
|
@@ -275,7 +274,7 @@ function propagateAllMetadata(evolution, inputs, result) {
|
|
|
275
274
|
* have weaker metadata guarantees than pairwise booleans (`fuse`, `cut`).
|
|
276
275
|
*/
|
|
277
276
|
function propagateMetadataByHash(inputs, result) {
|
|
278
|
-
|
|
277
|
+
require_solidBuilders.propagateOriginsByHash(inputs, result);
|
|
279
278
|
}
|
|
280
279
|
/**
|
|
281
280
|
* Propagate all metadata through a *rigid relocation* (a `locate` re-tag).
|
|
@@ -293,10 +292,10 @@ function propagateMetadataByHash(inputs, result) {
|
|
|
293
292
|
*/
|
|
294
293
|
function propagateMetadataThroughRelocation(source, moved) {
|
|
295
294
|
try {
|
|
296
|
-
var _usingCtx$
|
|
295
|
+
var _usingCtx$1 = require_shapeTypes._usingCtx();
|
|
297
296
|
const kernel = require_shapeTypes.getKernel();
|
|
298
297
|
const faces = [];
|
|
299
|
-
_usingCtx$
|
|
298
|
+
_usingCtx$1.u({ [Symbol.dispose]() {
|
|
300
299
|
const failures = [];
|
|
301
300
|
for (const face of faces) try {
|
|
302
301
|
kernel.dispose(face);
|
|
@@ -333,9 +332,9 @@ function propagateMetadataThroughRelocation(source, moved) {
|
|
|
333
332
|
deleted: /* @__PURE__ */ new Set()
|
|
334
333
|
}, [source], moved);
|
|
335
334
|
} catch (_) {
|
|
336
|
-
_usingCtx$
|
|
335
|
+
_usingCtx$1.e = _;
|
|
337
336
|
} finally {
|
|
338
|
-
_usingCtx$
|
|
337
|
+
_usingCtx$1.d();
|
|
339
338
|
}
|
|
340
339
|
}
|
|
341
340
|
// src/topology/booleanFns.ts
|
|
@@ -863,151 +862,6 @@ function booleanPipelineFallback(base, steps, options) {
|
|
|
863
862
|
}
|
|
864
863
|
return require_errors.ok(current);
|
|
865
864
|
}
|
|
866
|
-
// src/topology/shapeUtils.ts
|
|
867
|
-
/**
|
|
868
|
-
* Shape assembly utilities — welding and sewing operations.
|
|
869
|
-
*/
|
|
870
|
-
/** Sew faces/shells into a single shape using the kernel's sewing algorithm. */
|
|
871
|
-
function weldShapes(facesOrShells) {
|
|
872
|
-
const sewn = require_shapeTypes.getKernel().sew(facesOrShells.map((s) => s.wrapped));
|
|
873
|
-
return require_shapeTypes.castResultShape(sewn);
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* Welds faces and shells into a single shell.
|
|
877
|
-
*
|
|
878
|
-
* @param facesOrShells - An array of faces and shells to be welded.
|
|
879
|
-
* @param ignoreType - If true, the function will not check if the result is a shell.
|
|
880
|
-
* @returns A shell that contains all the faces and shells.
|
|
881
|
-
*/
|
|
882
|
-
function weldShellsAndFaces(facesOrShells, ignoreType = false) {
|
|
883
|
-
const shell = weldShapes(facesOrShells);
|
|
884
|
-
if (!ignoreType && !require_shapeTypes.isShell(shell)) return require_errors.err(require_errors.typeCastError("WELD_NOT_SHELL", "Could not make a shell from faces and shells"));
|
|
885
|
-
return require_errors.ok(shell);
|
|
886
|
-
}
|
|
887
|
-
// src/topology/solidBuilders.ts
|
|
888
|
-
/**
|
|
889
|
-
* Solid and primitive construction helpers — boxes, cylinders, spheres, cones,
|
|
890
|
-
* tori, ellipsoids, vertices, compounds, and offsets.
|
|
891
|
-
*/
|
|
892
|
-
/**
|
|
893
|
-
* Creates a cylinder with the given radius and height.
|
|
894
|
-
*
|
|
895
|
-
* @category Solids
|
|
896
|
-
*/
|
|
897
|
-
function makeCylinder(radius, height, location = [
|
|
898
|
-
0,
|
|
899
|
-
0,
|
|
900
|
-
0
|
|
901
|
-
], direction = [
|
|
902
|
-
0,
|
|
903
|
-
0,
|
|
904
|
-
1
|
|
905
|
-
]) {
|
|
906
|
-
return require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeCylinder(radius, height, [...location], [...direction]));
|
|
907
|
-
}
|
|
908
|
-
/**
|
|
909
|
-
* Creates a sphere with the given radius.
|
|
910
|
-
*
|
|
911
|
-
* @category Solids
|
|
912
|
-
*/
|
|
913
|
-
function makeSphere(radius) {
|
|
914
|
-
return require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeSphere(radius));
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* Creates a cone (or frustum) with the given radii and height.
|
|
918
|
-
*
|
|
919
|
-
* @category Solids
|
|
920
|
-
*/
|
|
921
|
-
function makeCone(radius1, radius2, height, location = [
|
|
922
|
-
0,
|
|
923
|
-
0,
|
|
924
|
-
0
|
|
925
|
-
], direction = [
|
|
926
|
-
0,
|
|
927
|
-
0,
|
|
928
|
-
1
|
|
929
|
-
]) {
|
|
930
|
-
return require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeCone(radius1, radius2, height, [...location], [...direction]));
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
* Creates a torus with the given major and minor radii.
|
|
934
|
-
*
|
|
935
|
-
* @category Solids
|
|
936
|
-
*/
|
|
937
|
-
function makeTorus(majorRadius, minorRadius, location = [
|
|
938
|
-
0,
|
|
939
|
-
0,
|
|
940
|
-
0
|
|
941
|
-
], direction = [
|
|
942
|
-
0,
|
|
943
|
-
0,
|
|
944
|
-
1
|
|
945
|
-
]) {
|
|
946
|
-
return require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeTorus(majorRadius, minorRadius, [...location], [...direction]));
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* Creates an ellipsoid with the given axis lengths.
|
|
950
|
-
*
|
|
951
|
-
* The algorithm creates a unit BSpline sphere surface, transforms its
|
|
952
|
-
* control-point poles with an affinity matrix to match the requested
|
|
953
|
-
* axis half-lengths, then sews the result into a solid.
|
|
954
|
-
*
|
|
955
|
-
* @category Solids
|
|
956
|
-
*/
|
|
957
|
-
function makeEllipsoid(aLength, bLength, cLength) {
|
|
958
|
-
return require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeEllipsoid(aLength, bLength, cLength));
|
|
959
|
-
}
|
|
960
|
-
/** Create a vertex at a 3D point. */
|
|
961
|
-
function makeVertex(point) {
|
|
962
|
-
return require_shapeTypes.createVertex(require_shapeTypes.getKernel().makeVertex(point[0], point[1], point[2]));
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* Create an offset shape from a face.
|
|
966
|
-
*
|
|
967
|
-
* @param offset - Signed offset distance (positive = outward).
|
|
968
|
-
* @param tolerance - Geometric tolerance for the offset algorithm.
|
|
969
|
-
* @returns An error if the result is not a valid 3D shape.
|
|
970
|
-
*/
|
|
971
|
-
function makeOffset(face, offset, tolerance = 1e-6) {
|
|
972
|
-
const resultShape = require_shapeTypes.getKernel().offset(face.wrapped, offset, tolerance);
|
|
973
|
-
return require_errors.andThen(require_faceFns.downcast(resultShape), (downcasted) => require_errors.andThen(require_faceFns.cast(downcasted), (newShape) => {
|
|
974
|
-
if (!require_shapeTypes.isShape3D(newShape)) return require_errors.err(require_errors.typeCastError("OFFSET_NOT_3D", "Could not offset to a 3d shape"));
|
|
975
|
-
return require_errors.ok(newShape);
|
|
976
|
-
}));
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* Build a compound from multiple shapes.
|
|
980
|
-
*
|
|
981
|
-
* @param shapeArray - Shapes to group into a single compound.
|
|
982
|
-
* @returns A new Compound containing all input shapes.
|
|
983
|
-
*/
|
|
984
|
-
function makeCompound(shapeArray) {
|
|
985
|
-
return require_shapeTypes.createCompound(require_shapeTypes.getKernel().makeCompound(shapeArray.map((s) => s.wrapped)));
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Welds faces and shells into a single shell and then makes a solid.
|
|
989
|
-
*
|
|
990
|
-
* @param facesOrShells - An array of faces and shells to be welded.
|
|
991
|
-
* @returns A solid that contains all the faces and shells.
|
|
992
|
-
*
|
|
993
|
-
* @category Solids
|
|
994
|
-
*/
|
|
995
|
-
function makeSolid(facesOrShells) {
|
|
996
|
-
try {
|
|
997
|
-
var _usingCtx$1 = require_shapeTypes._usingCtx();
|
|
998
|
-
const shell = _usingCtx$1.u(weldShapes(facesOrShells));
|
|
999
|
-
const solid = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().solidFromShell(shell.wrapped));
|
|
1000
|
-
if (!require_shapeTypes.isSolid(solid)) {
|
|
1001
|
-
require_shapeTypes.disposeResultShape(solid);
|
|
1002
|
-
return require_errors.err(require_errors.typeCastError("SOLID_BUILD_FAILED", "Could not make a solid of faces and shells"));
|
|
1003
|
-
}
|
|
1004
|
-
return require_errors.ok(solid);
|
|
1005
|
-
} catch (_) {
|
|
1006
|
-
_usingCtx$1.e = _;
|
|
1007
|
-
} finally {
|
|
1008
|
-
_usingCtx$1.d();
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
865
|
Object.defineProperty(exports, "booleanPipeline", {
|
|
1012
866
|
enumerable: true,
|
|
1013
867
|
get: function() {
|
|
@@ -1098,60 +952,6 @@ Object.defineProperty(exports, "intersect", {
|
|
|
1098
952
|
return intersect;
|
|
1099
953
|
}
|
|
1100
954
|
});
|
|
1101
|
-
Object.defineProperty(exports, "makeCompound", {
|
|
1102
|
-
enumerable: true,
|
|
1103
|
-
get: function() {
|
|
1104
|
-
return makeCompound;
|
|
1105
|
-
}
|
|
1106
|
-
});
|
|
1107
|
-
Object.defineProperty(exports, "makeCone", {
|
|
1108
|
-
enumerable: true,
|
|
1109
|
-
get: function() {
|
|
1110
|
-
return makeCone;
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
Object.defineProperty(exports, "makeCylinder", {
|
|
1114
|
-
enumerable: true,
|
|
1115
|
-
get: function() {
|
|
1116
|
-
return makeCylinder;
|
|
1117
|
-
}
|
|
1118
|
-
});
|
|
1119
|
-
Object.defineProperty(exports, "makeEllipsoid", {
|
|
1120
|
-
enumerable: true,
|
|
1121
|
-
get: function() {
|
|
1122
|
-
return makeEllipsoid;
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
Object.defineProperty(exports, "makeOffset", {
|
|
1126
|
-
enumerable: true,
|
|
1127
|
-
get: function() {
|
|
1128
|
-
return makeOffset;
|
|
1129
|
-
}
|
|
1130
|
-
});
|
|
1131
|
-
Object.defineProperty(exports, "makeSolid", {
|
|
1132
|
-
enumerable: true,
|
|
1133
|
-
get: function() {
|
|
1134
|
-
return makeSolid;
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
Object.defineProperty(exports, "makeSphere", {
|
|
1138
|
-
enumerable: true,
|
|
1139
|
-
get: function() {
|
|
1140
|
-
return makeSphere;
|
|
1141
|
-
}
|
|
1142
|
-
});
|
|
1143
|
-
Object.defineProperty(exports, "makeTorus", {
|
|
1144
|
-
enumerable: true,
|
|
1145
|
-
get: function() {
|
|
1146
|
-
return makeTorus;
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
Object.defineProperty(exports, "makeVertex", {
|
|
1150
|
-
enumerable: true,
|
|
1151
|
-
get: function() {
|
|
1152
|
-
return makeVertex;
|
|
1153
|
-
}
|
|
1154
|
-
});
|
|
1155
955
|
Object.defineProperty(exports, "parseColor", {
|
|
1156
956
|
enumerable: true,
|
|
1157
957
|
get: function() {
|
|
@@ -1212,9 +1012,3 @@ Object.defineProperty(exports, "tagFaces", {
|
|
|
1212
1012
|
return tagFaces;
|
|
1213
1013
|
}
|
|
1214
1014
|
});
|
|
1215
|
-
Object.defineProperty(exports, "weldShellsAndFaces", {
|
|
1216
|
-
enumerable: true,
|
|
1217
|
-
get: function() {
|
|
1218
|
-
return weldShellsAndFaces;
|
|
1219
|
-
}
|
|
1220
|
-
});
|