brepjs 14.1.2 → 14.1.3
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 +5 -5
- package/dist/2d.js +5 -5
- package/dist/{blueprint-D0XChcek.cjs → blueprint-C6B--LQ6.cjs} +5 -5
- package/dist/{blueprint-B3A5x7P9.js → blueprint-CzFYcmzV.js} +5 -5
- package/dist/{blueprintFns-COrEYX29.cjs → blueprintFns-B2AvzIXt.cjs} +2 -2
- package/dist/{blueprintFns-BwAMXY3t.js → blueprintFns-wka8INr_.js} +2 -2
- package/dist/{boolean2D-BPsyKImE.cjs → boolean2D-6bQx64bR.cjs} +7 -7
- package/dist/{boolean2D-D_Te-6N6.js → boolean2D-CfCt_m29.js} +7 -7
- package/dist/{booleanFns-CgsaJFBf.js → booleanFns-B6zxpf96.js} +3 -3
- package/dist/{booleanFns-B6M6Lm0V.cjs → booleanFns-C2pjUC6-.cjs} +3 -3
- package/dist/brepjs.cjs +19 -19
- package/dist/brepjs.js +19 -19
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-AEFnAxt4.js → cornerFinder-DBXma4vL.js} +1 -1
- package/dist/{cornerFinder-DTt_SvtC.cjs → cornerFinder-DrHIlWCS.cjs} +1 -1
- package/dist/{curveFns-DCEcwcpd.cjs → curveFns-C_vQNb7-.cjs} +1 -1
- package/dist/{curveFns-CcInoOEA.js → curveFns-DmID8AQO.js} +1 -1
- package/dist/{drawFns-BOwBIzPa.cjs → drawFns-DRG-UpkW.cjs} +11 -11
- package/dist/{drawFns-n9qif7QN.js → drawFns-rLQIZezc.js} +11 -11
- package/dist/{extrudeFns-DrDr9-nU.js → extrudeFns-1qcdK9dq.js} +1 -1
- package/dist/{extrudeFns-Rcut7h8S.cjs → extrudeFns-BP7fNL5O.cjs} +1 -1
- package/dist/{faceFns-TSH54pPQ.js → faceFns-BHT5DAOL.js} +1 -1
- package/dist/{faceFns-cE2WxY6I.cjs → faceFns-BwzwlBjE.cjs} +1 -1
- package/dist/{helpers-XrXlKm8D.js → helpers-B94CkHQe.js} +5 -5
- package/dist/{helpers-DZje6XWE.cjs → helpers-C4Ajoc6x.cjs} +5 -5
- package/dist/{historyFns-2hCWrX_X.js → historyFns-BsSuAQ0m.js} +4 -4
- package/dist/{historyFns-BiQ9dmzp.cjs → historyFns-CrsjeD69.cjs} +4 -4
- package/dist/{importFns-DGE5nCSW.cjs → importFns-DPwXjtkm.cjs} +2 -2
- package/dist/{importFns-m0xyj0Zt.js → importFns-DQsQOpRY.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/{measureFns-DHByqdmn.js → measureFns-iarjC69-.js} +2 -2
- package/dist/{measureFns-D_QKZ5yg.cjs → measureFns-j1ze9DDM.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CVe3Kc77.cjs → meshFns-CONktkIA.cjs} +2 -2
- package/dist/{meshFns-DL4Djz3w.js → meshFns-DRl9xnbO.js} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-CRPGjIFg.cjs → primitiveFns-CGg6EBKg.cjs} +5 -5
- package/dist/{primitiveFns-CeKiYSSW.js → primitiveFns-CMIscOrN.js} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-DCi9O27X.js → shapeFns-Brq2J-mW.js} +2 -2
- package/dist/{shapeFns-aEeSHNqX.cjs → shapeFns-DY7pjzrz.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CVdS6jWS.cjs → shapeRefFns-BOljxSxd.cjs} +3 -3
- package/dist/{shapeRefFns-B1TODUMl.js → shapeRefFns-BqOlRA7C.js} +3 -3
- package/dist/{shapeTypes-BqWQlrYE.cjs → shapeTypes-B3kwoJWf.cjs} +10 -14
- package/dist/{shapeTypes-BO1aiDhi.js → shapeTypes-CoNj-AHu.js} +11 -15
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-jk7HfWs8.js → solidBuilders-BzIatk9a.js} +2 -2
- package/dist/{solidBuilders-0iVdiZUw.cjs → solidBuilders-V8qvmW7h.cjs} +2 -2
- package/dist/{surfaceBuilders-DE5e6bp8.js → surfaceBuilders-Cfo4nH6A.js} +2 -2
- package/dist/{surfaceBuilders-C_8rs79F.cjs → surfaceBuilders-CoiofY0Y.cjs} +2 -2
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +1 -1
package/dist/2d.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
3
3
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_boolean2D = require("./boolean2D-
|
|
6
|
-
const require_blueprint = require("./blueprint-
|
|
7
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
5
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
6
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
7
|
+
const require_blueprintFns = require("./blueprintFns-B2AvzIXt.cjs");
|
|
8
8
|
//#region src/core/curve2dHandle.ts
|
|
9
9
|
/**
|
|
10
10
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
package/dist/2d.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { X as getKernel2D, a as createEdge, z as createKernelHandle } from "./shapeTypes-
|
|
1
|
+
import { X as getKernel2D, a as createEdge, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { C as kernelCallRaw } from "./faceFns-
|
|
4
|
-
import { a as fuseBlueprints, c as roundedRectangleBlueprint, g as Blueprints, h as CompoundBlueprint, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
5
|
-
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-
|
|
6
|
-
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 { C as kernelCallRaw } from "./faceFns-BHT5DAOL.js";
|
|
4
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, g as Blueprints, h as CompoundBlueprint, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CfCt_m29.js";
|
|
5
|
+
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CzFYcmzV.js";
|
|
6
|
+
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-wka8INr_.js";
|
|
7
7
|
//#region src/core/curve2dHandle.ts
|
|
8
8
|
/**
|
|
9
9
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
7
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
9
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
-
const require_helpers = require("./helpers-
|
|
9
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
10
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
11
11
|
//#region src/2d/lib/definitions.ts
|
|
12
12
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
13
|
function isPoint2D(point) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-
|
|
3
|
+
import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { r as toVec3 } from "./types-BWBlwp6w.js";
|
|
6
6
|
import { r as makePlane } from "./planeOps-gTOEarV2.js";
|
|
7
|
-
import { f as getOrientation } from "./curveFns-
|
|
7
|
+
import { f as getOrientation } from "./curveFns-DmID8AQO.js";
|
|
8
8
|
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
9
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
-
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-
|
|
9
|
+
import { r as makeFace } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
10
|
+
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-B94CkHQe.js";
|
|
11
11
|
//#region src/2d/lib/definitions.ts
|
|
12
12
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
13
|
function isPoint2D(point) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
2
|
-
const require_boolean2D = require("./boolean2D-
|
|
3
|
-
const require_blueprint = require("./blueprint-
|
|
2
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
3
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
4
4
|
//#region 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 { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
2
|
-
import { h as CompoundBlueprint } from "./boolean2D-
|
|
3
|
-
import { t as Blueprint } from "./blueprint-
|
|
2
|
+
import { h as CompoundBlueprint } from "./boolean2D-CfCt_m29.js";
|
|
3
|
+
import { t as Blueprint } from "./blueprint-CzFYcmzV.js";
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
6
6
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
7
7
|
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
11
|
-
const require_helpers = require("./helpers-
|
|
12
|
-
const require_blueprint = require("./blueprint-
|
|
13
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
11
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
12
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
13
|
+
const require_extrudeFns = require("./extrudeFns-BP7fNL5O.cjs");
|
|
14
14
|
//#region node_modules/flatqueue/index.js
|
|
15
15
|
/** @template T */
|
|
16
16
|
var FlatQueue = class {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-
|
|
3
|
+
import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { r as toVec3 } from "./types-BWBlwp6w.js";
|
|
6
6
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-D9etjPgV.js";
|
|
7
7
|
import { n as createPlane } from "./planeOps-gTOEarV2.js";
|
|
8
|
-
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-
|
|
8
|
+
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-DmID8AQO.js";
|
|
9
9
|
import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
10
|
-
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-
|
|
11
|
-
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-
|
|
12
|
-
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-
|
|
13
|
-
import { c as twistExtrude, n as revolve, r as complexExtrude, s as sweep, t as extrude } from "./extrudeFns-
|
|
10
|
+
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
11
|
+
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-B94CkHQe.js";
|
|
12
|
+
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-CzFYcmzV.js";
|
|
13
|
+
import { c as twistExtrude, n as revolve, r as complexExtrude, s as sweep, t as extrude } from "./extrudeFns-1qcdK9dq.js";
|
|
14
14
|
//#region node_modules/flatqueue/index.js
|
|
15
15
|
/** @template T */
|
|
16
16
|
var FlatQueue = class {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-C-cgQA3w.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-B9u763C3.js";
|
|
4
4
|
import { h as vecScale, t as vecAdd } from "./vecOps-D9etjPgV.js";
|
|
5
5
|
import { o as resolvePlane } from "./planeOps-gTOEarV2.js";
|
|
6
|
-
import { F as getVertices, I as getWires, M as getEdges, _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-
|
|
6
|
+
import { F as getVertices, I as getWires, M as getEdges, _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-Brq2J-mW.js";
|
|
7
7
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
8
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
8
|
+
import { r as makeFace } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
9
9
|
//#region src/topology/booleanFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
3
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
5
5
|
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
9
9
|
//#region src/topology/booleanFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
package/dist/brepjs.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
3
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_drawFns = require("./drawFns-DRG-UpkW.cjs");
|
|
3
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
4
4
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
6
6
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
7
7
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
8
8
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
9
9
|
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
10
|
-
const require_shapeFns = require("./shapeFns-
|
|
11
|
-
const require_curveFns = require("./curveFns-
|
|
12
|
-
const require_meshFns = require("./meshFns-
|
|
10
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
11
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
12
|
+
const require_meshFns = require("./meshFns-CONktkIA.cjs");
|
|
13
13
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
14
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
15
|
-
const require_booleanFns = require("./booleanFns-
|
|
16
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
17
|
-
const require_historyFns = require("./historyFns-
|
|
18
|
-
const require_boolean2D = require("./boolean2D-
|
|
19
|
-
const require_helpers = require("./helpers-
|
|
20
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
21
|
-
const require_measureFns = require("./measureFns-
|
|
22
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
23
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
24
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
25
|
-
const require_importFns = require("./importFns-
|
|
26
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
14
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
15
|
+
const require_booleanFns = require("./booleanFns-C2pjUC6-.cjs");
|
|
16
|
+
const require_primitiveFns = require("./primitiveFns-CGg6EBKg.cjs");
|
|
17
|
+
const require_historyFns = require("./historyFns-CrsjeD69.cjs");
|
|
18
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
19
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
20
|
+
const require_solidBuilders = require("./solidBuilders-V8qvmW7h.cjs");
|
|
21
|
+
const require_measureFns = require("./measureFns-j1ze9DDM.cjs");
|
|
22
|
+
const require_cornerFinder = require("./cornerFinder-DrHIlWCS.cjs");
|
|
23
|
+
const require_extrudeFns = require("./extrudeFns-BP7fNL5O.cjs");
|
|
24
|
+
const require_blueprintFns = require("./blueprintFns-B2AvzIXt.cjs");
|
|
25
|
+
const require_importFns = require("./importFns-DPwXjtkm.cjs");
|
|
26
|
+
const require_shapeRefFns = require("./shapeRefFns-BOljxSxd.cjs");
|
|
27
27
|
const require_workerHandler = require("./workerHandler-C-7OUJsa.cjs");
|
|
28
28
|
//#region src/topology/shapeBooleans.ts
|
|
29
29
|
var BOPAlgo_GlueShift = 1;
|
package/dist/brepjs.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as
|
|
1
|
+
import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as BrepkitAdapter, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as supportsConstraintSketch, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsProjection, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { C as kernelCallRaw, S as kernelCall, _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, w as kernelCallScoped, x as shapeType, y as isCompSolid } from "./faceFns-
|
|
3
|
+
import { C as kernelCallRaw, S as kernelCall, _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, w as kernelCallScoped, x as shapeType, y as isCompSolid } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
|
|
6
6
|
import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-D9etjPgV.js";
|
|
7
7
|
import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-gTOEarV2.js";
|
|
8
|
-
import { A as describe$1, B as iterVertices, C as findFacesByTag, D as tagFaces, E as setTagMetadata, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, O as getFaceOrigins, R as iterEdges, S as getShapeColor, T as getTagMetadata, V as iterWires, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, j as getBounds, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces, z as iterFaces } from "./shapeFns-
|
|
9
|
-
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-
|
|
10
|
-
import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-
|
|
8
|
+
import { A as describe$1, B as iterVertices, C as findFacesByTag, D as tagFaces, E as setTagMetadata, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, O as getFaceOrigins, R as iterEdges, S as getShapeColor, T as getTagMetadata, V as iterWires, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, j as getBounds, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces, z as iterFaces } from "./shapeFns-Brq2J-mW.js";
|
|
9
|
+
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-DmID8AQO.js";
|
|
10
|
+
import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-DRl9xnbO.js";
|
|
11
11
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
12
|
-
import { n as fill, r as makeFace } from "./surfaceBuilders-
|
|
13
|
-
import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-
|
|
14
|
-
import { $ as getNurbsSurfaceData, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-
|
|
15
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
16
|
-
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
17
|
-
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
18
|
-
import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-
|
|
19
|
-
import { r as makeCylinder } from "./solidBuilders-
|
|
20
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
21
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
22
|
-
import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-
|
|
23
|
-
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, n as createCompoundBlueprint, 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-
|
|
24
|
-
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-
|
|
25
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
12
|
+
import { n as fill, r as makeFace } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
13
|
+
import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-B6zxpf96.js";
|
|
14
|
+
import { $ as getNurbsSurfaceData, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CMIscOrN.js";
|
|
15
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-BsSuAQ0m.js";
|
|
16
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CfCt_m29.js";
|
|
17
|
+
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-B94CkHQe.js";
|
|
18
|
+
import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-rLQIZezc.js";
|
|
19
|
+
import { r as makeCylinder } from "./solidBuilders-BzIatk9a.js";
|
|
20
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-iarjC69-.js";
|
|
21
|
+
import { t as cornerFinder } from "./cornerFinder-DBXma4vL.js";
|
|
22
|
+
import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-1qcdK9dq.js";
|
|
23
|
+
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, n as createCompoundBlueprint, 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-wka8INr_.js";
|
|
24
|
+
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-DQsQOpRY.js";
|
|
25
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BqOlRA7C.js";
|
|
26
26
|
import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-o2xzAfFk.js";
|
|
27
27
|
//#region \0rolldown/runtime.js
|
|
28
28
|
var __defProp = Object.defineProperty;
|
package/dist/core.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
3
3
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
const require_types = require("./types-BjDcsS7l.cjs");
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-
|
|
1
|
+
import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-C-cgQA3w.js";
|
|
3
3
|
import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
4
4
|
import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
2
2
|
import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
3
|
-
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-
|
|
3
|
+
import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-B94CkHQe.js";
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
2
2
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
3
|
-
const require_helpers = require("./helpers-
|
|
3
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
4
4
|
//#region src/query/cornerFinder.ts
|
|
5
5
|
var PI_2 = 2 * Math.PI;
|
|
6
6
|
function positiveHalfAngle(angle) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, l as typeCastError } from "./errors-C-cgQA3w.js";
|
|
3
3
|
//#region src/topology/curveFns.ts
|
|
4
4
|
/**
|
|
@@ -29,23 +29,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
33
33
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
34
|
-
const require_faceFns = require("./faceFns-
|
|
34
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
35
35
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
36
36
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
37
37
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
38
38
|
const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
|
|
39
|
-
const require_shapeFns = require("./shapeFns-
|
|
40
|
-
const require_curveFns = require("./curveFns-
|
|
39
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
40
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
41
41
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
42
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
43
|
-
const require_boolean2D = require("./boolean2D-
|
|
44
|
-
const require_helpers = require("./helpers-
|
|
45
|
-
const require_blueprint = require("./blueprint-
|
|
46
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
47
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
48
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
42
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
43
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
44
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
45
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
46
|
+
const require_solidBuilders = require("./solidBuilders-V8qvmW7h.cjs");
|
|
47
|
+
const require_cornerFinder = require("./cornerFinder-DrHIlWCS.cjs");
|
|
48
|
+
const require_extrudeFns = require("./extrudeFns-BP7fNL5O.cjs");
|
|
49
49
|
let opentype_js = require("opentype.js");
|
|
50
50
|
opentype_js = __toESM(opentype_js);
|
|
51
51
|
//#region src/2d/lib/stitching.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, r as ioError, s as safeIndex, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-
|
|
3
|
+
import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { r as toVec3 } from "./types-BWBlwp6w.js";
|
|
6
6
|
import { c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-D9etjPgV.js";
|
|
7
7
|
import { a as planeToWorld, o as resolvePlane } from "./planeOps-gTOEarV2.js";
|
|
8
|
-
import { M as getEdges } from "./shapeFns-
|
|
9
|
-
import { m as offsetWire2D } from "./curveFns-
|
|
8
|
+
import { M as getEdges } from "./shapeFns-Brq2J-mW.js";
|
|
9
|
+
import { m as offsetWire2D } from "./curveFns-DmID8AQO.js";
|
|
10
10
|
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
11
|
-
import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-
|
|
12
|
-
import { _ as chamferCurves, b as intersectCurves, c as roundedRectangleBlueprint, f as Sketch, g as Blueprints, h as CompoundBlueprint, l as BaseSketcher2d, m as organiseBlueprints, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as filletCurves, x as Flatbush, y as make2dOffset } from "./boolean2D-
|
|
13
|
-
import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-
|
|
14
|
-
import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-
|
|
15
|
-
import { o as makeSolid, t as makeCompound } from "./solidBuilders-
|
|
16
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
17
|
-
import { c as twistExtrude, n as revolve, r as complexExtrude, t as extrude } from "./extrudeFns-
|
|
11
|
+
import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
12
|
+
import { _ as chamferCurves, b as intersectCurves, c as roundedRectangleBlueprint, f as Sketch, g as Blueprints, h as CompoundBlueprint, l as BaseSketcher2d, m as organiseBlueprints, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as filletCurves, x as Flatbush, y as make2dOffset } from "./boolean2D-CfCt_m29.js";
|
|
13
|
+
import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-B94CkHQe.js";
|
|
14
|
+
import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-CzFYcmzV.js";
|
|
15
|
+
import { o as makeSolid, t as makeCompound } from "./solidBuilders-BzIatk9a.js";
|
|
16
|
+
import { t as cornerFinder } from "./cornerFinder-DBXma4vL.js";
|
|
17
|
+
import { c as twistExtrude, n as revolve, r as complexExtrude, t as extrude } from "./extrudeFns-1qcdK9dq.js";
|
|
18
18
|
import opentype from "opentype.js";
|
|
19
19
|
//#region src/2d/lib/stitching.ts
|
|
20
20
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
3
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-D9etjPgV.js";
|
|
4
4
|
//#region src/operations/extrudeUtils.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
4
4
|
//#region src/operations/extrudeUtils.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as _usingCtx, L as DisposalScope, Y as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { J as _usingCtx, L as DisposalScope, Y as getKernel, t as castShape } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, f as getSuggestionForCode, l as typeCastError, p as translateKernelError } from "./errors-C-cgQA3w.js";
|
|
3
3
|
import { r as toVec3 } from "./types-BWBlwp6w.js";
|
|
4
4
|
//#region src/core/kernelCall.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
3
|
const require_types = require("./types-BjDcsS7l.cjs");
|
|
4
4
|
//#region src/core/kernelCall.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Y as getKernel, p as isFace } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, p as isFace } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, T as isOk, b as err, h as bug, o as queryError } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { c as normalAt, o as getSurfaceType } from "./faceFns-
|
|
3
|
+
import { c as normalAt, o as getSurfaceType } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-D9etjPgV.js";
|
|
6
|
-
import { F as getVertices, I as getWires, M as getEdges, N as getFaces, a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
7
|
-
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-
|
|
8
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { F as getVertices, I as getWires, M as getEdges, N as getFaces, a as isSameShape, n as getHashCode } from "./shapeFns-Brq2J-mW.js";
|
|
7
|
+
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-DmID8AQO.js";
|
|
8
|
+
import { n as measureArea } from "./measureFns-iarjC69-.js";
|
|
9
9
|
//#region src/utils/vec2d.ts
|
|
10
10
|
/** Precision for curve intersection and parameter operations. */
|
|
11
11
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
8
|
+
const require_measureFns = require("./measureFns-j1ze9DDM.cjs");
|
|
9
9
|
//#region src/utils/vec2d.ts
|
|
10
10
|
/** Precision for curve intersection and parameter operations. */
|
|
11
11
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Y as getKernel, t as castShape, z as createKernelHandle } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, t as castShape, z as createKernelHandle } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { v as fromBREP } from "./faceFns-
|
|
3
|
+
import { v as fromBREP } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-D9etjPgV.js";
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { i as fuseAll } from "./booleanFns-
|
|
5
|
+
import { s as toBREP } from "./shapeFns-Brq2J-mW.js";
|
|
6
|
+
import { i as fuseAll } from "./booleanFns-B6zxpf96.js";
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-BXvBYIor.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-C2pjUC6-.cjs");
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
3
|
const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
|
|
4
|
-
const require_blueprint = require("./blueprint-
|
|
4
|
+
const require_blueprint = require("./blueprint-C6B--LQ6.cjs");
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Y as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, t as castShape } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
3
|
import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
|
|
4
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
4
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CzFYcmzV.js";
|
|
5
5
|
//#region src/io/objExportFns.ts
|
|
6
6
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
7
7
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
2
|
+
const require_meshFns = require("./meshFns-CONktkIA.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-DPwXjtkm.cjs");
|
|
4
4
|
exports.blueprintToDXF = require_importFns.blueprintToDXF;
|
|
5
5
|
exports.exportDXF = require_importFns.exportDXF;
|
|
6
6
|
exports.exportGlb = require_importFns.exportGlb;
|
package/dist/io.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
2
|
-
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-DRl9xnbO.js";
|
|
2
|
+
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-DQsQOpRY.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAe7D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAcpD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,kBAAkB,CAM3E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,EACrE,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAoBH;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAOnD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAU9B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CA8B5C;AAED,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,IAAI,mBAAmB,EACrC,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC1E,YAAY,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAEnF,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { C as kernelCallRaw, p as uvBounds } from "./faceFns-
|
|
3
|
+
import { C as kernelCallRaw, p as uvBounds } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
//#region src/measurement/measureCache.ts
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
//#region src/measurement/measureCache.ts
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-j1ze9DDM.cjs");
|
|
3
3
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
4
4
|
exports.measureArea = require_measureFns.measureArea;
|
|
5
5
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-iarjC69-.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-Brq2J-mW.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-CrsjeD69.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-BP7fNL5O.cjs");
|
|
4
4
|
exports.addChild = require_historyFns.addChild;
|
|
5
5
|
exports.addStep = require_historyFns.addStep;
|
|
6
6
|
exports.circularPattern = require_historyFns.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
2
|
-
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./extrudeFns-
|
|
1
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-BsSuAQ0m.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./extrudeFns-1qcdK9dq.js";
|
|
3
3
|
export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CoiofY0Y.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-V8qvmW7h.cjs");
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast } from "./faceFns-
|
|
3
|
+
import { _ as downcast } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
|
-
import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
6
|
-
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-
|
|
7
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
5
|
+
import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Brq2J-mW.js";
|
|
6
|
+
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-Cfo4nH6A.js";
|
|
7
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-BzIatk9a.js";
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-C4Ajoc6x.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DrHIlWCS.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|
package/dist/query.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
2
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
1
|
+
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-B94CkHQe.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-DBXma4vL.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { C as kernelCallRaw, S as kernelCall } from "./faceFns-
|
|
3
|
+
import { C as kernelCallRaw, S as kernelCall } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
//#region src/topology/topologyQueryFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
//#region src/topology/topologyQueryFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
2
|
+
const require_shapeRefFns = require("./shapeRefFns-BOljxSxd.cjs");
|
|
3
3
|
exports.assignRoles = require_shapeRefFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_shapeRefFns.captureHint;
|
|
5
5
|
exports.createRef = require_shapeRefFns.createRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
1
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BqOlRA7C.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_faceFns = require("./faceFns-
|
|
2
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
-
const require_measureFns = require("./measureFns-
|
|
1
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
2
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
3
|
+
const require_measureFns = require("./measureFns-j1ze9DDM.cjs");
|
|
4
4
|
//#region src/topology/shapeRef/scoring.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-
|
|
2
|
-
import { N as getFaces, n as getHashCode } from "./shapeFns-
|
|
3
|
-
import { n as measureArea } from "./measureFns-
|
|
1
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-BHT5DAOL.js";
|
|
2
|
+
import { N as getFaces, n as getHashCode } from "./shapeFns-Brq2J-mW.js";
|
|
3
|
+
import { n as measureArea } from "./measureFns-iarjC69-.js";
|
|
4
4
|
//#region src/topology/shapeRef/scoring.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -5422,16 +5422,6 @@ var DefaultAdapter = class {
|
|
|
5422
5422
|
}
|
|
5423
5423
|
};
|
|
5424
5424
|
//#endregion
|
|
5425
|
-
//#region src/kernel/types.ts
|
|
5426
|
-
/** Check if the kernel supports hidden-line-removal projection. */
|
|
5427
|
-
function supportsProjection(kernel) {
|
|
5428
|
-
return "projectShape" in kernel;
|
|
5429
|
-
}
|
|
5430
|
-
/** Check if the kernel supports 2D constraint sketch solving. */
|
|
5431
|
-
function supportsConstraintSketch(kernel) {
|
|
5432
|
-
return "sketchNew" in kernel && "sketchDof" in kernel;
|
|
5433
|
-
}
|
|
5434
|
-
//#endregion
|
|
5435
5425
|
//#region src/kernel/brepkit/helpers.ts
|
|
5436
5426
|
/** Shared no-op delete -- one function instance for all handles. */
|
|
5437
5427
|
var noop = () => {};
|
|
@@ -10815,6 +10805,16 @@ var BrepkitAdapter = class {
|
|
|
10815
10805
|
}
|
|
10816
10806
|
};
|
|
10817
10807
|
//#endregion
|
|
10808
|
+
//#region src/kernel/types.ts
|
|
10809
|
+
/** Check if the kernel supports hidden-line-removal projection. */
|
|
10810
|
+
function supportsProjection(kernel) {
|
|
10811
|
+
return "projectShape" in kernel;
|
|
10812
|
+
}
|
|
10813
|
+
/** Check if the kernel supports 2D constraint sketch solving. */
|
|
10814
|
+
function supportsConstraintSketch(kernel) {
|
|
10815
|
+
return "sketchNew" in kernel && "sketchDof" in kernel;
|
|
10816
|
+
}
|
|
10817
|
+
//#endregion
|
|
10818
10818
|
//#region src/kernel/index.ts
|
|
10819
10819
|
var _kernels = /* @__PURE__ */ new Map();
|
|
10820
10820
|
var _defaultKernelId = null;
|
|
@@ -10935,10 +10935,6 @@ async function init() {
|
|
|
10935
10935
|
"brepkit-wasm"
|
|
10936
10936
|
);
|
|
10937
10937
|
if (typeof bk.default === "function") await bk.default();
|
|
10938
|
-
const { BrepkitAdapter } = await import(
|
|
10939
|
-
/* @vite-ignore */
|
|
10940
|
-
"./brepkit/brepkitAdapter.js"
|
|
10941
|
-
);
|
|
10942
10938
|
registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
|
|
10943
10939
|
return "brepkit";
|
|
10944
10940
|
} catch {}
|
|
@@ -5422,16 +5422,6 @@ var DefaultAdapter = class {
|
|
|
5422
5422
|
}
|
|
5423
5423
|
};
|
|
5424
5424
|
//#endregion
|
|
5425
|
-
//#region src/kernel/types.ts
|
|
5426
|
-
/** Check if the kernel supports hidden-line-removal projection. */
|
|
5427
|
-
function supportsProjection(kernel) {
|
|
5428
|
-
return "projectShape" in kernel;
|
|
5429
|
-
}
|
|
5430
|
-
/** Check if the kernel supports 2D constraint sketch solving. */
|
|
5431
|
-
function supportsConstraintSketch(kernel) {
|
|
5432
|
-
return "sketchNew" in kernel && "sketchDof" in kernel;
|
|
5433
|
-
}
|
|
5434
|
-
//#endregion
|
|
5435
5425
|
//#region src/kernel/brepkit/helpers.ts
|
|
5436
5426
|
/** Shared no-op delete -- one function instance for all handles. */
|
|
5437
5427
|
var noop = () => {};
|
|
@@ -10815,6 +10805,16 @@ var BrepkitAdapter = class {
|
|
|
10815
10805
|
}
|
|
10816
10806
|
};
|
|
10817
10807
|
//#endregion
|
|
10808
|
+
//#region src/kernel/types.ts
|
|
10809
|
+
/** Check if the kernel supports hidden-line-removal projection. */
|
|
10810
|
+
function supportsProjection(kernel) {
|
|
10811
|
+
return "projectShape" in kernel;
|
|
10812
|
+
}
|
|
10813
|
+
/** Check if the kernel supports 2D constraint sketch solving. */
|
|
10814
|
+
function supportsConstraintSketch(kernel) {
|
|
10815
|
+
return "sketchNew" in kernel && "sketchDof" in kernel;
|
|
10816
|
+
}
|
|
10817
|
+
//#endregion
|
|
10818
10818
|
//#region src/kernel/index.ts
|
|
10819
10819
|
var _kernels = /* @__PURE__ */ new Map();
|
|
10820
10820
|
var _defaultKernelId = null;
|
|
@@ -10935,10 +10935,6 @@ async function init() {
|
|
|
10935
10935
|
"brepkit-wasm"
|
|
10936
10936
|
);
|
|
10937
10937
|
if (typeof bk.default === "function") await bk.default();
|
|
10938
|
-
const { BrepkitAdapter } = await import(
|
|
10939
|
-
/* @vite-ignore */
|
|
10940
|
-
"./brepkit/brepkitAdapter.js"
|
|
10941
|
-
);
|
|
10942
10938
|
registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
|
|
10943
10939
|
return "brepkit";
|
|
10944
10940
|
} catch {}
|
|
@@ -11499,4 +11495,4 @@ function castShapeWithKnownType(ocShape, knownType, dim) {
|
|
|
11499
11495
|
return createCompound(dc, dim);
|
|
11500
11496
|
}
|
|
11501
11497
|
//#endregion
|
|
11502
|
-
export { prewarm as $, planarWire as A, getDisposalStats as B, isOrientedFace as C, manifoldShell as D, isValidSolid as E, is2D as F, withScope as G, registerForCleanup as H, is3D as I, _usingCtx as J, withScopeResult as K, DisposalScope as L, getShapeKind as M, as2D as N, orientedFace as O, as3D as P, initFromOC as Q, createHandle as R, isManifoldShell as S, isPlanarWire as T, resetDisposalStats as U, isLive as V, unregisterFromCleanup as W, getKernel2D as X, getKernel as Y, init as Z, isSolid as _, createEdge as a, closedWire as b, createSolid as c, isCompound as d, registerKernel as et, isEdge as f, isShell as g, isShape3D as h, createCompound as i,
|
|
11498
|
+
export { prewarm as $, planarWire as A, getDisposalStats as B, isOrientedFace as C, manifoldShell as D, isValidSolid as E, is2D as F, withScope as G, registerForCleanup as H, is3D as I, _usingCtx as J, withScopeResult as K, DisposalScope as L, getShapeKind as M, as2D as N, orientedFace as O, as3D as P, initFromOC as Q, createHandle as R, isManifoldShell as S, isPlanarWire as T, resetDisposalStats as U, isLive as V, unregisterFromCleanup as W, getKernel2D as X, getKernel as Y, init as Z, isSolid as _, createEdge as a, closedWire as b, createSolid as c, isCompound as d, registerKernel as et, isEdge as f, isShell as g, isShape3D as h, createCompound as i, BrepkitAdapter as it, validSolid as j, planarFace as k, createVertex as l, isShape1D as m, castShape3D as n, supportsConstraintSketch as nt, createFace as o, isFace as p, withScopeResultAsync as q, castShapeWithKnownType as r, supportsProjection as rt, createShell as s, castShape as t, withKernel as tt, createWire as u, isVertex as v, isPlanarFace as w, isClosedWire as x, isWire as y, createKernelHandle as z };
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
3
|
-
const require_boolean2D = require("./boolean2D-
|
|
2
|
+
const require_drawFns = require("./drawFns-DRG-UpkW.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-6bQx64bR.cjs");
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-
|
|
2
|
-
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-
|
|
1
|
+
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-CfCt_m29.js";
|
|
2
|
+
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-rLQIZezc.js";
|
|
3
3
|
//#region src/sketching.ts
|
|
4
4
|
/**
|
|
5
5
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CoNj-AHu.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-BHT5DAOL.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-B3kwoJWf.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
4
|
-
const require_curveFns = require("./curveFns-
|
|
5
|
-
const require_meshFns = require("./meshFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
7
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_faceFns = require("./faceFns-BwzwlBjE.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DY7pjzrz.cjs");
|
|
4
|
+
const require_curveFns = require("./curveFns-C_vQNb7-.cjs");
|
|
5
|
+
const require_meshFns = require("./meshFns-CONktkIA.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-C2pjUC6-.cjs");
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-CGg6EBKg.cjs");
|
|
8
8
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
9
9
|
exports.adjacentFaces = require_primitiveFns.adjacentFaces;
|
|
10
10
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-
|
|
2
|
-
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-
|
|
3
|
-
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-
|
|
4
|
-
import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-
|
|
5
|
-
import { i as fuseAll, n as cutAll } from "./booleanFns-
|
|
6
|
-
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-BHT5DAOL.js";
|
|
2
|
+
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-Brq2J-mW.js";
|
|
3
|
+
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-DmID8AQO.js";
|
|
4
|
+
import { n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-DRl9xnbO.js";
|
|
5
|
+
import { i as fuseAll, n as cutAll } from "./booleanFns-B6zxpf96.js";
|
|
6
|
+
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CMIscOrN.js";
|
|
7
7
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|