brepjs 18.124.6 → 18.124.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-DECdcer5.js → adjacencyFns-CCD4FvHs.js} +2 -2
- package/dist/{adjacencyFns-CpKlADYt.cjs → adjacencyFns-NawsKHyd.cjs} +2 -2
- package/dist/{blueprint-CaY00-X2.js → blueprint-BZ8Vb4d3.js} +5 -5
- package/dist/{blueprint-CpJLcUJV.cjs → blueprint-DKLrSIsp.cjs} +5 -5
- package/dist/{blueprintFns-B5nFaJI0.cjs → blueprintFns-CrUjNge9.cjs} +2 -2
- package/dist/{blueprintFns-vgwEIgI0.js → blueprintFns-LYMVKRNs.js} +2 -2
- package/dist/{blueprintSketcher-BjBjj2cK.js → blueprintSketcher-CVEdoiWs.js} +3 -3
- package/dist/{blueprintSketcher-4e0yYtCY.cjs → blueprintSketcher-e0ubOsCh.cjs} +3 -3
- package/dist/{boolean2D-7heWA1co.cjs → boolean2D-Cs_PzKTh.cjs} +4 -4
- package/dist/{boolean2D-Bk-VrRyQ.js → boolean2D-DmkJ7G8y.js} +4 -4
- package/dist/brepjs.cjs +27 -27
- package/dist/brepjs.js +27 -27
- package/dist/{cameraFns-CGwrxgqB.cjs → cameraFns-BA43wHLH.cjs} +3 -3
- package/dist/{cameraFns-DKEilV2v.js → cameraFns-DTedF4Ma.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-zEgIFMnk.cjs → cornerFinder-DS7uxsvK.cjs} +1 -1
- package/dist/{cornerFinder-C4s6pVZ-.js → cornerFinder-DgFZ5ayq.js} +1 -1
- package/dist/{curveFns-RczIU30U.js → curveFns-BqBJDjtV.js} +1 -1
- package/dist/{curveFns-BZZYHVow.cjs → curveFns-DkavlOSs.cjs} +1 -1
- package/dist/{drawFns-BjT3RaeQ.js → drawFns-B_EGaGUU.js} +12 -12
- package/dist/{drawFns-BcXzWFfn.cjs → drawFns-CsWQC4vj.cjs} +12 -12
- package/dist/{faceFns-C4xNv2zn.cjs → faceFns-B6rtTNW_.cjs} +2 -2
- package/dist/{faceFns-fvp_zfuI.js → faceFns-D2e-1Tci.js} +2 -2
- package/dist/{healingFns-SxSiVPQa.cjs → healingFns-BZx60AfH.cjs} +4 -4
- package/dist/{healingFns-AE5182Ds.js → healingFns-CpcVcbht.js} +4 -4
- package/dist/{helpers-CyLQ07aD.js → helpers-DR3sq2z4.js} +6 -6
- package/dist/{helpers-CHYzwQMk.cjs → helpers-w76tSTdd.cjs} +6 -6
- package/dist/{importFns-DdXOAX6k.js → importFns-BGfKMoQ0.js} +2 -2
- package/dist/{importFns-90S7P_7P.cjs → importFns-DrOPj8QK.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/{loftFns-CyY4qfvC.js → loftFns-CBSLPUvg.js} +1 -1
- package/dist/{loftFns-B3mbh5RA.cjs → loftFns-DP5mwrHb.cjs} +1 -1
- package/dist/{measureFns-Cx2XJVVC.cjs → measureFns-C99o9O7m.cjs} +3 -3
- package/dist/{measureFns-B1uLQugf.js → measureFns-D-OijqnF.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DrO3d03M.js → meshFns-CtHYyk8d.js} +3 -3
- package/dist/{meshFns-2ZxW-X9I.cjs → meshFns-DrxspJUY.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-D3rUK08B.cjs → originTrackingFns-C88JSdTb.cjs} +2 -2
- package/dist/{originTrackingFns-DIAwMSih.js → originTrackingFns-aQ8u75sW.js} +2 -2
- package/dist/{primitiveFns-CDPqVTcc.js → primitiveFns-D3Jsp4ms.js} +4 -4
- package/dist/{primitiveFns-c7wqS-K2.cjs → primitiveFns-SIdu2Avf.cjs} +4 -4
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-Cm8ZHPl5.cjs → refResolveFns-Iv9Kaupd.cjs} +6 -6
- package/dist/{refResolveFns-o3-Gdnjn.js → refResolveFns-hZJRHI_y.js} +6 -6
- package/dist/{shapeFns-CJ6mph9b.cjs → shapeFns-C-1qjspC.cjs} +2 -2
- package/dist/{shapeFns-DEpbxB9Z.js → shapeFns-DGhyMPzL.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-BHRboc_x.js → shapeTypes-DiwqWNY3.js} +68 -0
- package/dist/{shapeTypes-D5Y41q7x.cjs → shapeTypes-QyoO_sE0.cjs} +68 -0
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-DQQ0re9T.js → solidBuilders-BSd9X9QM.js} +5 -5
- package/dist/{solidBuilders-CsUkRC69.cjs → solidBuilders-DUMmz0y8.cjs} +5 -5
- package/dist/{surfaceBuilders-C8k0K7DR.js → surfaceBuilders-DedBcEMy.js} +3 -3
- package/dist/{surfaceBuilders-BXNZydNl.cjs → surfaceBuilders-F7G0uhEg.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-t8MdWfki.cjs → textBlueprints-DETfhGzM.cjs} +7 -7
- package/dist/{textBlueprints-BAyLXffK.js → textBlueprints-Dak5cCbO.js} +7 -7
- package/dist/{textMetrics-CefI-bMN.js → textMetrics-C8MYDIF6.js} +1 -1
- package/dist/{textMetrics-DUEI9s5M.cjs → textMetrics-Ds73FV7f.cjs} +1 -1
- package/dist/{threadFns-OVYAleOH.cjs → threadFns-BpfZ9m0u.cjs} +7 -7
- package/dist/{threadFns-Bau5Sqad.js → threadFns-Dp9qv7jB.js} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-QvPyCF-7.js → topologyQueryFns-Dbugjs3F.js} +1 -1
- package/dist/{topologyQueryFns-gah07J7-.cjs → topologyQueryFns-Dl16dHSd.cjs} +1 -1
- package/dist/{validityTypes-DokbYKzd.js → validityTypes-Bs4GSkay.js} +1 -1
- package/dist/{validityTypes-Dx-04qO0.cjs → validityTypes-CPCCW3e3.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { K as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, y as isFace } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, g as err, o as queryError, x as isOk } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Dbugjs3F.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
6
|
-
import { l as normalAt, s as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-
|
|
9
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-D2e-1Tci.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-DGhyMPzL.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-BqBJDjtV.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-D-OijqnF.js";
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
9
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-B6rtTNW_.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-C-1qjspC.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-DkavlOSs.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-C99o9O7m.cjs");
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { K as getKernel, n as castResultShape } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, n as castResultShape } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At$1 } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
5
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
5
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-BZ8Vb4d3.js";
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
3
3
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-DKLrSIsp.cjs");
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
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-DrxspJUY.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-DrOPj8QK.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-CtHYyk8d.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-BGfKMoQ0.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { c as vecLength, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B6rtTNW_.cjs");
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { T as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { T as kernelCallRaw } from "./topologyQueryFns-Dbugjs3F.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-D2e-1Tci.js";
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
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-C99o9O7m.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-D-OijqnF.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, g as err, r as ioError } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { t as getFaceOrigins } from "./originTrackingFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-Dbugjs3F.js";
|
|
4
|
+
import { t as getFaceOrigins } from "./originTrackingFns-aQ8u75sW.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
4
|
+
const require_originTrackingFns = require("./originTrackingFns-C88JSdTb.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* 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_threadFns = require("./threadFns-
|
|
3
|
-
const require_loftFns = require("./loftFns-
|
|
2
|
+
const require_threadFns = require("./threadFns-BpfZ9m0u.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-DP5mwrHb.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-
|
|
2
|
-
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-Dp9qv7jB.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-CBSLPUvg.js";
|
|
3
3
|
export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
4
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
2
|
-
import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-DiwqWNY3.js";
|
|
2
|
+
import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-Dbugjs3F.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
4
4
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { n as isClosedWire } from "./validityTypes-
|
|
3
|
+
import { n as isClosedWire } from "./validityTypes-Bs4GSkay.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-
|
|
6
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
5
|
+
import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-BSd9X9QM.js";
|
|
6
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-DedBcEMy.js";
|
|
7
7
|
//#region src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-CPCCW3e3.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-DUMmz0y8.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-F7G0uhEg.cjs");
|
|
7
7
|
//#region src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-BA43wHLH.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-
|
|
1
|
+
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-DTedF4Ma.js";
|
|
2
2
|
export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
|
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-w76tSTdd.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DS7uxsvK.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-DR3sq2z4.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-DgFZ5ayq.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-B6rtTNW_.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-C-1qjspC.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-C99o9O7m.cjs");
|
|
6
|
+
const require_adjacencyFns = require("./adjacencyFns-NawsKHyd.cjs");
|
|
7
7
|
//#region src/topology/shapeRef/scoring.ts
|
|
8
8
|
/**
|
|
9
9
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-
|
|
2
|
-
import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
6
|
-
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-
|
|
1
|
+
import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-DiwqWNY3.js";
|
|
2
|
+
import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-Dbugjs3F.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-D2e-1Tci.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-DGhyMPzL.js";
|
|
5
|
+
import { n as measureArea, s as measureLength } from "./measureFns-D-OijqnF.js";
|
|
6
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-CCD4FvHs.js";
|
|
7
7
|
//#region src/topology/shapeRef/scoring.ts
|
|
8
8
|
/**
|
|
9
9
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as getKernel } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-
|
|
3
|
+
import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-Dbugjs3F.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/shapeFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
2
|
+
const require_refResolveFns = require("./refResolveFns-Iv9Kaupd.cjs");
|
|
3
3
|
exports.assignRoles = require_refResolveFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_refResolveFns.captureHint;
|
|
5
5
|
exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-hZJRHI_y.js";
|
|
2
2
|
export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
|
|
@@ -8142,11 +8142,79 @@ function mesh$1(bk, shape, options) {
|
|
|
8142
8142
|
let result;
|
|
8143
8143
|
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
8144
8144
|
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0, angularTol);
|
|
8145
|
+
else if (bkHandle.type === "compound") result = meshCompound(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
8145
8146
|
else throw new Error(`brepkit: cannot mesh shape of type '${bkHandle.type}'`);
|
|
8146
8147
|
if (options.skipNormals) result.normals = /* @__PURE__ */ new Float32Array(0);
|
|
8147
8148
|
if (!options.includeUVs) result.uvs = /* @__PURE__ */ new Float32Array(0);
|
|
8148
8149
|
return result;
|
|
8149
8150
|
}
|
|
8151
|
+
/**
|
|
8152
|
+
* Mesh every solid in a compound and concatenate the results.
|
|
8153
|
+
*
|
|
8154
|
+
* Text solids are compounds — one solid per glyph — so without this the whole
|
|
8155
|
+
* text path throws before any geometry runs, which reads as a geometry failure
|
|
8156
|
+
* when it is really a missing adapter capability.
|
|
8157
|
+
*
|
|
8158
|
+
* Triangle indices are vertex-relative, so each part's are rebased by the
|
|
8159
|
+
* running vertex count; `faceGroups` index into the triangle list, so their
|
|
8160
|
+
* `start` is rebased by the running triangle count. `uvs` are only carried
|
|
8161
|
+
* when every part supplied them, since a partial UV array would misalign
|
|
8162
|
+
* against the concatenated vertices.
|
|
8163
|
+
*
|
|
8164
|
+
* Compounds come in two flavours and only one is arena-backed. A synthetic
|
|
8165
|
+
* compound (non-solid children, id from `nextSyntheticId`) exists JS-side only,
|
|
8166
|
+
* so asking the kernel to resolve it raises an invalid-handle error; its
|
|
8167
|
+
* children are read from `syntheticCompounds` instead. Non-solid children
|
|
8168
|
+
* contribute no triangles and are skipped rather than throwing, matching how a
|
|
8169
|
+
* wire or edge meshes to nothing elsewhere in this adapter.
|
|
8170
|
+
*/
|
|
8171
|
+
function meshCompound(bk, compoundId, deflection, includeUVs, angularTolerance) {
|
|
8172
|
+
const synthetic = syntheticCompounds.get(compoundId);
|
|
8173
|
+
const parts = (synthetic ? synthetic.filter((c) => c.type === "solid").map((c) => c.id) : toArray(bk.getCompoundSolids(compoundId))).map((id) => meshSolid(bk, id, deflection, includeUVs, angularTolerance));
|
|
8174
|
+
if (parts.length === 1) return wasmIndex(parts, 0);
|
|
8175
|
+
if (parts.length === 0) return {
|
|
8176
|
+
vertices: /* @__PURE__ */ new Float32Array(0),
|
|
8177
|
+
normals: /* @__PURE__ */ new Float32Array(0),
|
|
8178
|
+
triangles: /* @__PURE__ */ new Uint32Array(0),
|
|
8179
|
+
uvs: /* @__PURE__ */ new Float32Array(0),
|
|
8180
|
+
faceGroups: []
|
|
8181
|
+
};
|
|
8182
|
+
const total = (pick) => parts.reduce((n, p) => n + pick(p).length, 0);
|
|
8183
|
+
const vertices = new Float32Array(total((p) => p.vertices));
|
|
8184
|
+
const normals = new Float32Array(total((p) => p.normals));
|
|
8185
|
+
const triangles = new Uint32Array(total((p) => p.triangles));
|
|
8186
|
+
const keepUVs = parts.every((p) => p.uvs.length > 0);
|
|
8187
|
+
const uvs = new Float32Array(keepUVs ? total((p) => p.uvs) : 0);
|
|
8188
|
+
const faceGroups = [];
|
|
8189
|
+
let vOff = 0;
|
|
8190
|
+
let nOff = 0;
|
|
8191
|
+
let tOff = 0;
|
|
8192
|
+
let uvOff = 0;
|
|
8193
|
+
for (const part of parts) {
|
|
8194
|
+
vertices.set(part.vertices, vOff);
|
|
8195
|
+
normals.set(part.normals, nOff);
|
|
8196
|
+
if (keepUVs) {
|
|
8197
|
+
uvs.set(part.uvs, uvOff);
|
|
8198
|
+
uvOff += part.uvs.length;
|
|
8199
|
+
}
|
|
8200
|
+
const vertexBase = vOff / 3;
|
|
8201
|
+
for (let i = 0; i < part.triangles.length; i++) triangles[tOff + i] = wasmIndex(part.triangles, i) + vertexBase;
|
|
8202
|
+
for (const g of part.faceGroups) faceGroups.push({
|
|
8203
|
+
...g,
|
|
8204
|
+
start: g.start + tOff
|
|
8205
|
+
});
|
|
8206
|
+
vOff += part.vertices.length;
|
|
8207
|
+
nOff += part.normals.length;
|
|
8208
|
+
tOff += part.triangles.length;
|
|
8209
|
+
}
|
|
8210
|
+
return {
|
|
8211
|
+
vertices,
|
|
8212
|
+
normals,
|
|
8213
|
+
triangles,
|
|
8214
|
+
uvs,
|
|
8215
|
+
faceGroups
|
|
8216
|
+
};
|
|
8217
|
+
}
|
|
8150
8218
|
function meshEdges$1(bk, shape, tolerance, angularTolerance) {
|
|
8151
8219
|
const bkHandle = shape;
|
|
8152
8220
|
if (bkHandle.type !== "solid") return {
|
|
@@ -8142,11 +8142,79 @@ function mesh$1(bk, shape, options) {
|
|
|
8142
8142
|
let result;
|
|
8143
8143
|
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
8144
8144
|
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0, angularTol);
|
|
8145
|
+
else if (bkHandle.type === "compound") result = meshCompound(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
8145
8146
|
else throw new Error(`brepkit: cannot mesh shape of type '${bkHandle.type}'`);
|
|
8146
8147
|
if (options.skipNormals) result.normals = /* @__PURE__ */ new Float32Array(0);
|
|
8147
8148
|
if (!options.includeUVs) result.uvs = /* @__PURE__ */ new Float32Array(0);
|
|
8148
8149
|
return result;
|
|
8149
8150
|
}
|
|
8151
|
+
/**
|
|
8152
|
+
* Mesh every solid in a compound and concatenate the results.
|
|
8153
|
+
*
|
|
8154
|
+
* Text solids are compounds — one solid per glyph — so without this the whole
|
|
8155
|
+
* text path throws before any geometry runs, which reads as a geometry failure
|
|
8156
|
+
* when it is really a missing adapter capability.
|
|
8157
|
+
*
|
|
8158
|
+
* Triangle indices are vertex-relative, so each part's are rebased by the
|
|
8159
|
+
* running vertex count; `faceGroups` index into the triangle list, so their
|
|
8160
|
+
* `start` is rebased by the running triangle count. `uvs` are only carried
|
|
8161
|
+
* when every part supplied them, since a partial UV array would misalign
|
|
8162
|
+
* against the concatenated vertices.
|
|
8163
|
+
*
|
|
8164
|
+
* Compounds come in two flavours and only one is arena-backed. A synthetic
|
|
8165
|
+
* compound (non-solid children, id from `nextSyntheticId`) exists JS-side only,
|
|
8166
|
+
* so asking the kernel to resolve it raises an invalid-handle error; its
|
|
8167
|
+
* children are read from `syntheticCompounds` instead. Non-solid children
|
|
8168
|
+
* contribute no triangles and are skipped rather than throwing, matching how a
|
|
8169
|
+
* wire or edge meshes to nothing elsewhere in this adapter.
|
|
8170
|
+
*/
|
|
8171
|
+
function meshCompound(bk, compoundId, deflection, includeUVs, angularTolerance) {
|
|
8172
|
+
const synthetic = syntheticCompounds.get(compoundId);
|
|
8173
|
+
const parts = (synthetic ? synthetic.filter((c) => c.type === "solid").map((c) => c.id) : toArray(bk.getCompoundSolids(compoundId))).map((id) => meshSolid(bk, id, deflection, includeUVs, angularTolerance));
|
|
8174
|
+
if (parts.length === 1) return require_bug.wasmIndex(parts, 0);
|
|
8175
|
+
if (parts.length === 0) return {
|
|
8176
|
+
vertices: /* @__PURE__ */ new Float32Array(0),
|
|
8177
|
+
normals: /* @__PURE__ */ new Float32Array(0),
|
|
8178
|
+
triangles: /* @__PURE__ */ new Uint32Array(0),
|
|
8179
|
+
uvs: /* @__PURE__ */ new Float32Array(0),
|
|
8180
|
+
faceGroups: []
|
|
8181
|
+
};
|
|
8182
|
+
const total = (pick) => parts.reduce((n, p) => n + pick(p).length, 0);
|
|
8183
|
+
const vertices = new Float32Array(total((p) => p.vertices));
|
|
8184
|
+
const normals = new Float32Array(total((p) => p.normals));
|
|
8185
|
+
const triangles = new Uint32Array(total((p) => p.triangles));
|
|
8186
|
+
const keepUVs = parts.every((p) => p.uvs.length > 0);
|
|
8187
|
+
const uvs = new Float32Array(keepUVs ? total((p) => p.uvs) : 0);
|
|
8188
|
+
const faceGroups = [];
|
|
8189
|
+
let vOff = 0;
|
|
8190
|
+
let nOff = 0;
|
|
8191
|
+
let tOff = 0;
|
|
8192
|
+
let uvOff = 0;
|
|
8193
|
+
for (const part of parts) {
|
|
8194
|
+
vertices.set(part.vertices, vOff);
|
|
8195
|
+
normals.set(part.normals, nOff);
|
|
8196
|
+
if (keepUVs) {
|
|
8197
|
+
uvs.set(part.uvs, uvOff);
|
|
8198
|
+
uvOff += part.uvs.length;
|
|
8199
|
+
}
|
|
8200
|
+
const vertexBase = vOff / 3;
|
|
8201
|
+
for (let i = 0; i < part.triangles.length; i++) triangles[tOff + i] = require_bug.wasmIndex(part.triangles, i) + vertexBase;
|
|
8202
|
+
for (const g of part.faceGroups) faceGroups.push({
|
|
8203
|
+
...g,
|
|
8204
|
+
start: g.start + tOff
|
|
8205
|
+
});
|
|
8206
|
+
vOff += part.vertices.length;
|
|
8207
|
+
nOff += part.normals.length;
|
|
8208
|
+
tOff += part.triangles.length;
|
|
8209
|
+
}
|
|
8210
|
+
return {
|
|
8211
|
+
vertices,
|
|
8212
|
+
normals,
|
|
8213
|
+
triangles,
|
|
8214
|
+
uvs,
|
|
8215
|
+
faceGroups
|
|
8216
|
+
};
|
|
8217
|
+
}
|
|
8150
8218
|
function meshEdges$1(bk, shape, tolerance, angularTolerance) {
|
|
8151
8219
|
const bkHandle = shape;
|
|
8152
8220
|
if (bkHandle.type !== "solid") return {
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-e0ubOsCh.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-CsWQC4vj.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-DETfhGzM.cjs");
|
|
5
5
|
//#region src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-CVEdoiWs.js";
|
|
2
|
+
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-B_EGaGUU.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-Dak5cCbO.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Dbugjs3F.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-CQahLrCx.js";
|
|
7
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
8
|
-
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-
|
|
7
|
+
import { _ as cast, y as downcast } from "./faceFns-D2e-1Tci.js";
|
|
8
|
+
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-aQ8u75sW.js";
|
|
9
9
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-DedBcEMy.js";
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Dl16dHSd.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-B6rtTNW_.cjs");
|
|
8
|
+
const require_originTrackingFns = require("./originTrackingFns-C88JSdTb.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-F7G0uhEg.cjs");
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-DiwqWNY3.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-Bs4GSkay.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-D2e-1Tci.js";
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-QyoO_sE0.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-CPCCW3e3.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B6rtTNW_.cjs");
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-DETfhGzM.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-Ds73FV7f.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|