brepjs 8.8.6 → 8.8.8
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 +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-65SRIESB.js → Blueprint-BWLPU0ZC.js} +1 -1
- package/dist/{Blueprint-CIfBgqlU.cjs → Blueprint-CIfiTx-y.cjs} +1 -1
- package/dist/{boolean2D-BGzBeuy1.js → boolean2D-BG9wtSKz.js} +2 -2
- package/dist/{boolean2D-DHfyhBM3.cjs → boolean2D-Bs_OdV2_.cjs} +2 -2
- package/dist/brepjs.cjs +20 -29
- package/dist/brepjs.js +22 -31
- package/dist/{curveFns-KDpL9iyo.cjs → curveFns-D0L3YcH-.cjs} +10 -4
- package/dist/{curveFns-VDZEhY97.js → curveFns-VRW_cski.js} +10 -4
- package/dist/{drawFns-C4q_oQf3.cjs → drawFns-BGGYhul8.cjs} +3 -3
- package/dist/{drawFns-t6KbXi2Q.js → drawFns-Df_AbW16.js} +3 -3
- package/dist/io.cjs +1 -1
- package/dist/io.js +1 -1
- package/dist/query.cjs +1 -1
- package/dist/query.js +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/curveFns.d.ts.map +1 -1
- package/dist/topology/surfaceFns.d.ts.map +1 -1
- package/dist/{topology-DOvPARZR.js → topology-CMS8QyJa.js} +1 -1
- package/dist/{topology-CoE5ib_B.cjs → topology-ZRFxrEEW.cjs} +1 -1
- package/dist/topology.cjs +2 -2
- package/dist/topology.js +2 -2
- package/package.json +1 -1
package/dist/2d.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Blueprint = require("./Blueprint-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const Blueprint = require("./Blueprint-CIfiTx-y.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-Bs_OdV2_.cjs");
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
package/dist/2d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Blueprint } from "./Blueprint-
|
|
2
|
-
import { d, C, r } from "./Blueprint-
|
|
3
|
-
import { e, C as C2, f, l, g, n, k, q, o, p, r as r2 } from "./boolean2D-
|
|
1
|
+
import { B as Blueprint } from "./Blueprint-BWLPU0ZC.js";
|
|
2
|
+
import { d, C, r } from "./Blueprint-BWLPU0ZC.js";
|
|
3
|
+
import { e, C as C2, f, l, g, n, k, q, o, p, r as r2 } from "./boolean2D-BG9wtSKz.js";
|
|
4
4
|
function reverseCurve(curve) {
|
|
5
5
|
const cloned = curve.clone();
|
|
6
6
|
cloned.reverse();
|
|
@@ -47,7 +47,7 @@ import { r as resolvePlane } from "./vectors-Dp5Iu1KH.js";
|
|
|
47
47
|
import { g as getKernel, a as toVec3, c as makeOcAx2 } from "./occtBoundary-Ct0tN8cs.js";
|
|
48
48
|
import { D as DisposalScope, x as registerForCleanup, y as unregisterFromCleanup, r as createEdge, q as createWire } from "./shapeTypes-D34s68Xi.js";
|
|
49
49
|
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-DG4bu-QB.js";
|
|
50
|
-
import { f as findCurveType, g as getOrientation } from "./curveFns-
|
|
50
|
+
import { f as findCurveType, g as getOrientation } from "./curveFns-VRW_cski.js";
|
|
51
51
|
import { u as unwrap, l as ok, e as err, b as computationError, x as validationError } from "./errors-CHfaHQSt.js";
|
|
52
52
|
import { z as zip, m as makeFace } from "./surfaceBuilders-zlVu1d-b.js";
|
|
53
53
|
import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-D7hTCTJm.js";
|
|
@@ -48,7 +48,7 @@ const vectors = require("./vectors-9rrStq8t.cjs");
|
|
|
48
48
|
const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
49
49
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
50
50
|
const faceFns = require("./faceFns-B8xnZw-f.cjs");
|
|
51
|
-
const curveFns = require("./curveFns-
|
|
51
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
52
52
|
const errors = require("./errors-BYb4tL5h.cjs");
|
|
53
53
|
const surfaceBuilders = require("./surfaceBuilders-zWnw2I0j.cjs");
|
|
54
54
|
const helpers = require("./helpers-Ces6b2wm.cjs");
|
|
@@ -50,11 +50,11 @@ import { g as getKernel, a as toVec3 } from "./occtBoundary-Ct0tN8cs.js";
|
|
|
50
50
|
import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
|
|
51
51
|
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-BpfrTPIR.js";
|
|
52
52
|
import { D as DisposalScope, s as createFace, q as createWire, r as createEdge } from "./shapeTypes-D34s68Xi.js";
|
|
53
|
-
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-
|
|
53
|
+
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-VRW_cski.js";
|
|
54
54
|
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-zlVu1d-b.js";
|
|
55
55
|
import { bug } from "./result.js";
|
|
56
56
|
import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-D7hTCTJm.js";
|
|
57
|
-
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as axis2d, s as removeDuplicatePoints } from "./Blueprint-
|
|
57
|
+
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as axis2d, s as removeDuplicatePoints } from "./Blueprint-BWLPU0ZC.js";
|
|
58
58
|
function* pointsIteration(intersector) {
|
|
59
59
|
const nPoints = intersector.NbPoints();
|
|
60
60
|
if (!nPoints) return;
|
|
@@ -51,11 +51,11 @@ const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
|
51
51
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
52
52
|
const loft = require("./loft-GLxTzuXU.cjs");
|
|
53
53
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
54
|
-
const curveFns = require("./curveFns-
|
|
54
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
55
55
|
const surfaceBuilders = require("./surfaceBuilders-zWnw2I0j.cjs");
|
|
56
56
|
const result = require("./result.cjs");
|
|
57
57
|
const helpers = require("./helpers-Ces6b2wm.cjs");
|
|
58
|
-
const Blueprint = require("./Blueprint-
|
|
58
|
+
const Blueprint = require("./Blueprint-CIfiTx-y.cjs");
|
|
59
59
|
function* pointsIteration(intersector) {
|
|
60
60
|
const nPoints = intersector.NbPoints();
|
|
61
61
|
if (!nPoints) return;
|
package/dist/brepjs.cjs
CHANGED
|
@@ -49,19 +49,19 @@ const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
|
49
49
|
const errors = require("./errors-BYb4tL5h.cjs");
|
|
50
50
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
51
51
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
52
|
-
const Blueprint = require("./Blueprint-
|
|
53
|
-
const curveFns = require("./curveFns-
|
|
52
|
+
const Blueprint = require("./Blueprint-CIfiTx-y.cjs");
|
|
53
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
54
54
|
const loft$2 = require("./loft-GLxTzuXU.cjs");
|
|
55
55
|
const operations = require("./operations-T5f-v2rF.cjs");
|
|
56
|
-
const boolean2D = require("./boolean2D-
|
|
56
|
+
const boolean2D = require("./boolean2D-Bs_OdV2_.cjs");
|
|
57
57
|
const _2d = require("./2d.cjs");
|
|
58
58
|
const helpers = require("./helpers-Ces6b2wm.cjs");
|
|
59
59
|
const io = require("./io.cjs");
|
|
60
|
-
const drawFns = require("./drawFns-
|
|
60
|
+
const drawFns = require("./drawFns-BGGYhul8.cjs");
|
|
61
61
|
const vectors = require("./vectors-9rrStq8t.cjs");
|
|
62
62
|
const shapeFns = require("./shapeFns-CbZMmuQA.cjs");
|
|
63
63
|
const booleanFns = require("./booleanFns-CUxOBNlC.cjs");
|
|
64
|
-
const topology = require("./topology-
|
|
64
|
+
const topology = require("./topology-ZRFxrEEW.cjs");
|
|
65
65
|
const faceFns = require("./faceFns-B8xnZw-f.cjs");
|
|
66
66
|
const meshFns = require("./meshFns-BTb2esZJ.cjs");
|
|
67
67
|
const measurement = require("./measurement-C4Ofuy_y.cjs");
|
|
@@ -245,10 +245,11 @@ function surfaceFromGrid(heights, options = {}) {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
function buildBSplineSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
248
|
-
|
|
249
|
-
const OC = oc;
|
|
250
|
-
const pntArray = new OC.TColgp_Array2OfPnt_2(1, rows, 1, cols);
|
|
248
|
+
var _stack = [];
|
|
251
249
|
try {
|
|
250
|
+
const oc = occtBoundary.getKernel().oc;
|
|
251
|
+
const scope = __using(_stack, new shapeTypes.DisposalScope());
|
|
252
|
+
const pntArray = scope.register(new oc.TColgp_Array2OfPnt_2(1, rows, 1, cols));
|
|
252
253
|
for (let r = 0; r < rows; r++) {
|
|
253
254
|
for (let c = 0; c < cols; c++) {
|
|
254
255
|
const row = heights[r];
|
|
@@ -258,33 +259,24 @@ function buildBSplineSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
|
258
259
|
pnt.delete();
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
const fitter = new
|
|
262
|
+
const fitter = scope.register(new oc.GeomAPI_PointsToBSplineSurface_2(pntArray, 3, 8, 0, 1e-3));
|
|
262
263
|
const surface = fitter.Surface();
|
|
263
|
-
const faceMaker = new
|
|
264
|
-
let result2;
|
|
264
|
+
const faceMaker = scope.register(new oc.BRepBuilderAPI_MakeFace_8(surface, 1e-6));
|
|
265
265
|
if (faceMaker.IsDone()) {
|
|
266
266
|
const shape2 = shapeTypes.castShape(faceMaker.Face());
|
|
267
267
|
if (shapeTypes.isFace(shape2)) {
|
|
268
|
-
|
|
269
|
-
} else {
|
|
270
|
-
shape2[Symbol.dispose]();
|
|
271
|
-
result2 = errors.err(
|
|
272
|
-
errors.occtError(errors.BrepErrorCode.SURFACE_FAILED, "B-spline surface did not produce a face")
|
|
273
|
-
);
|
|
268
|
+
return errors.ok(shape2);
|
|
274
269
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
errors.occtError(
|
|
278
|
-
errors.BrepErrorCode.SURFACE_FAILED,
|
|
279
|
-
"BRepBuilderAPI_MakeFace failed for B-spline surface"
|
|
280
|
-
)
|
|
281
|
-
);
|
|
270
|
+
shape2[Symbol.dispose]();
|
|
271
|
+
return errors.err(errors.occtError(errors.BrepErrorCode.SURFACE_FAILED, "B-spline surface did not produce a face"));
|
|
282
272
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
273
|
+
return errors.err(
|
|
274
|
+
errors.occtError(errors.BrepErrorCode.SURFACE_FAILED, "BRepBuilderAPI_MakeFace failed for B-spline surface")
|
|
275
|
+
);
|
|
276
|
+
} catch (_) {
|
|
277
|
+
var _error = _, _hasError = true;
|
|
286
278
|
} finally {
|
|
287
|
-
|
|
279
|
+
__callDispose(_stack, _error, _hasError);
|
|
288
280
|
}
|
|
289
281
|
}
|
|
290
282
|
function buildTriangulatedSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
@@ -316,7 +308,6 @@ function buildTriangulatedSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
|
316
308
|
}
|
|
317
309
|
}
|
|
318
310
|
if (faceCount === 0) {
|
|
319
|
-
sewing.delete();
|
|
320
311
|
return errors.err(
|
|
321
312
|
errors.occtError(errors.BrepErrorCode.SURFACE_FAILED, "surfaceFromGrid: no valid triangular faces built")
|
|
322
313
|
);
|
package/dist/brepjs.js
CHANGED
|
@@ -51,26 +51,26 @@ import { c as castShape, D as DisposalScope, e as isFace, k as isShell, l as isS
|
|
|
51
51
|
import { t as t3, r as r3, s as s2, a as a2, b as b3, z as z2, u, A, B, g as g2, i as i2, f as f2, h as h3, m as m2, C, w as w3, o, p } from "./shapeTypes-D34s68Xi.js";
|
|
52
52
|
import { c as vecDistance, D as DEG2RAD, H as HASH_CODE_MAX, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
53
53
|
import { R, v as v2, a as a3, b as b4, d, e, g as g3, h as h4, i as i3, k as k3, l as l2, m as m3, o as o2 } from "./vecOps-ZDdZWbwT.js";
|
|
54
|
-
import { B as B2, d as d2, C as C2, r as r4, t as t4 } from "./Blueprint-
|
|
55
|
-
import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-
|
|
56
|
-
import { j as j3, k as k4, l as l3, f as f3, m as m4, b as b5, g as g4, n as n3, o as o3 } from "./curveFns-
|
|
54
|
+
import { B as B2, d as d2, C as C2, r as r4, t as t4 } from "./Blueprint-BWLPU0ZC.js";
|
|
55
|
+
import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-VRW_cski.js";
|
|
56
|
+
import { j as j3, k as k4, l as l3, f as f3, m as m4, b as b5, g as g4, n as n3, o as o3 } from "./curveFns-VRW_cski.js";
|
|
57
57
|
import { m as makeCompound, d as makeCone, e as makeCylinder, f as makeEllipsoid, h as makeOffset, w as weldShellsAndFaces, a as makeSolid, i as makeSphere, j as makeTorus, k as makeVertex } from "./loft-BpfrTPIR.js";
|
|
58
58
|
import { b as b6, g as g5, r as r5 } from "./loft-BpfrTPIR.js";
|
|
59
59
|
import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-CHIU-aGI.js";
|
|
60
60
|
import { a as a4, b as b7, d as d3, f as f4, g as g6, h as h5, i as i4, j as j4, k as k5, m as m5, n as n4, o as o4, p as p2, q, t as t5, u as u2, v as v3, x, y, z as z3, A as A2, B as B3, C as C3, D, E } from "./operations-CHIU-aGI.js";
|
|
61
|
-
import { B as B4, a as a5, e as e2, C as C4, F, S, f as f5, l as l4, g as g7, n as n5, k as k6, q as q2, o as o5, p as p3, r as r6 } from "./boolean2D-
|
|
61
|
+
import { B as B4, a as a5, e as e2, C as C4, F, S, f as f5, l as l4, g as g7, n as n5, k as k6, q as q2, o as o5, p as p3, r as r6 } from "./boolean2D-BG9wtSKz.js";
|
|
62
62
|
import { createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, getBounds2D, getOrientation2D, isInside2D, mirror2D, reverseCurve, rotate2D, scale2D, sketch2DOnFace, sketch2DOnPlane, stretch2D, toSVGPathD, translate2D } from "./2d.js";
|
|
63
63
|
import { l as createTypedFinder, m as faceFinder } from "./helpers-D7hTCTJm.js";
|
|
64
64
|
import { g as g8 } from "./helpers-D7hTCTJm.js";
|
|
65
65
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
66
|
-
import { C as C5, D as D2, a as a6, S as S2, b as b8, X, Y, c as c2, d as d4, e as e3, f as f6, Z, g as g9, h as h6, i as i5, j as j5, k as k7, l as l5, m as m6, n as n6, o as o6, p as p4, q as q3, r as r7, s as s3, t as t6, u as u3, v as v4, w as w4, x as x2, y as y2, z as z4, _, $, a0, a1, A as A3, a2 as a22, B as B5, E as E2, a3 as a32, F as F2, G, H, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-
|
|
66
|
+
import { C as C5, D as D2, a as a6, S as S2, b as b8, X, Y, c as c2, d as d4, e as e3, f as f6, Z, g as g9, h as h6, i as i5, j as j5, k as k7, l as l5, m as m6, n as n6, o as o6, p as p4, q as q3, r as r7, s as s3, t as t6, u as u3, v as v4, w as w4, x as x2, y as y2, z as z4, _, $, a0, a1, A as A3, a2 as a22, B as B5, E as E2, a3 as a32, F as F2, G, H, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-Df_AbW16.js";
|
|
67
67
|
import { c as c3, a as a7, p as p5, r as r8, t as t7 } from "./vectors-Dp5Iu1KH.js";
|
|
68
68
|
import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, t as translate$1, p as propagateOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, q as toBREP$1, u as transformCopy$1, w as getBounds, c as getWires } from "./shapeFns-5HlS8wvc.js";
|
|
69
69
|
import { x as x3, g as g10, f as f7, y as y3, h as h7, z as z5, A as A4, B as B6, C as C6, D as D3, E as E3 } from "./shapeFns-5HlS8wvc.js";
|
|
70
70
|
import { p as propagateFaceTags, a as propagateColors, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, b as sectionToFace$1, d as slice$1, e as split$1, g as fuseAll, h as cutAll } from "./booleanFns-DHEaBJwW.js";
|
|
71
71
|
import { j as j6, k as k8, l as l6, m as m7, n as n7, o as o7, q as q4, r as r9, t as t8, u as u4 } from "./booleanFns-DHEaBJwW.js";
|
|
72
|
-
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-
|
|
73
|
-
import { a as a8, b as b9, e as e4, f as f8, d as d5, g as g11, j as j7, s as s4, t as t9, k as k9, l as l7, v as v5, w as w5 } from "./topology-
|
|
72
|
+
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-CMS8QyJa.js";
|
|
73
|
+
import { a as a8, b as b9, e as e4, f as f8, d as d5, g as g11, j as j7, s as s4, t as t9, k as k9, l as l7, v as v5, w as w5 } from "./topology-CMS8QyJa.js";
|
|
74
74
|
import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-DG4bu-QB.js";
|
|
75
75
|
import { l as l8, c as c4, m as m8, d as d6, f as f9, q as q5, r as r10, s as s5, p as p6, t as t10, v as v6, u as u5, h as h8 } from "./faceFns-DG4bu-QB.js";
|
|
76
76
|
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-DJx5Yqiy.js";
|
|
@@ -258,10 +258,11 @@ function surfaceFromGrid(heights, options = {}) {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
function buildBSplineSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
261
|
-
|
|
262
|
-
const OC = oc;
|
|
263
|
-
const pntArray = new OC.TColgp_Array2OfPnt_2(1, rows, 1, cols);
|
|
261
|
+
var _stack = [];
|
|
264
262
|
try {
|
|
263
|
+
const oc = getKernel().oc;
|
|
264
|
+
const scope = __using(_stack, new DisposalScope());
|
|
265
|
+
const pntArray = scope.register(new oc.TColgp_Array2OfPnt_2(1, rows, 1, cols));
|
|
265
266
|
for (let r11 = 0; r11 < rows; r11++) {
|
|
266
267
|
for (let c7 = 0; c7 < cols; c7++) {
|
|
267
268
|
const row = heights[r11];
|
|
@@ -271,33 +272,24 @@ function buildBSplineSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
|
271
272
|
pnt.delete();
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
|
-
const fitter = new
|
|
275
|
+
const fitter = scope.register(new oc.GeomAPI_PointsToBSplineSurface_2(pntArray, 3, 8, 0, 1e-3));
|
|
275
276
|
const surface = fitter.Surface();
|
|
276
|
-
const faceMaker = new
|
|
277
|
-
let result;
|
|
277
|
+
const faceMaker = scope.register(new oc.BRepBuilderAPI_MakeFace_8(surface, 1e-6));
|
|
278
278
|
if (faceMaker.IsDone()) {
|
|
279
279
|
const shape2 = castShape(faceMaker.Face());
|
|
280
280
|
if (isFace(shape2)) {
|
|
281
|
-
|
|
282
|
-
} else {
|
|
283
|
-
shape2[Symbol.dispose]();
|
|
284
|
-
result = err(
|
|
285
|
-
occtError(BrepErrorCode.SURFACE_FAILED, "B-spline surface did not produce a face")
|
|
286
|
-
);
|
|
281
|
+
return ok(shape2);
|
|
287
282
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
occtError(
|
|
291
|
-
BrepErrorCode.SURFACE_FAILED,
|
|
292
|
-
"BRepBuilderAPI_MakeFace failed for B-spline surface"
|
|
293
|
-
)
|
|
294
|
-
);
|
|
283
|
+
shape2[Symbol.dispose]();
|
|
284
|
+
return err(occtError(BrepErrorCode.SURFACE_FAILED, "B-spline surface did not produce a face"));
|
|
295
285
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
286
|
+
return err(
|
|
287
|
+
occtError(BrepErrorCode.SURFACE_FAILED, "BRepBuilderAPI_MakeFace failed for B-spline surface")
|
|
288
|
+
);
|
|
289
|
+
} catch (_2) {
|
|
290
|
+
var _error = _2, _hasError = true;
|
|
299
291
|
} finally {
|
|
300
|
-
|
|
292
|
+
__callDispose(_stack, _error, _hasError);
|
|
301
293
|
}
|
|
302
294
|
}
|
|
303
295
|
function buildTriangulatedSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
@@ -329,7 +321,6 @@ function buildTriangulatedSurface(heights, rows, cols, dx, dy, scaleZ) {
|
|
|
329
321
|
}
|
|
330
322
|
}
|
|
331
323
|
if (faceCount === 0) {
|
|
332
|
-
sewing.delete();
|
|
333
324
|
return err(
|
|
334
325
|
occtError(BrepErrorCode.SURFACE_FAILED, "surfaceFromGrid: no valid triangular faces built")
|
|
335
326
|
);
|
|
@@ -193,10 +193,16 @@ function curveIsPeriodic(shape) {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function curvePeriod(shape) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
var _stack = [];
|
|
197
|
+
try {
|
|
198
|
+
const scope = __using(_stack, new shapeTypes.DisposalScope());
|
|
199
|
+
const adaptor = scope.register(getAdaptor(shape));
|
|
200
|
+
return adaptor.Period();
|
|
201
|
+
} catch (_) {
|
|
202
|
+
var _error = _, _hasError = true;
|
|
203
|
+
} finally {
|
|
204
|
+
__callDispose(_stack, _error, _hasError);
|
|
205
|
+
}
|
|
200
206
|
}
|
|
201
207
|
function getOrientation(shape) {
|
|
202
208
|
const oc = occtBoundary.getKernel().oc;
|
|
@@ -192,10 +192,16 @@ function curveIsPeriodic(shape) {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
function curvePeriod(shape) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
var _stack = [];
|
|
196
|
+
try {
|
|
197
|
+
const scope = __using(_stack, new DisposalScope());
|
|
198
|
+
const adaptor = scope.register(getAdaptor(shape));
|
|
199
|
+
return adaptor.Period();
|
|
200
|
+
} catch (_) {
|
|
201
|
+
var _error = _, _hasError = true;
|
|
202
|
+
} finally {
|
|
203
|
+
__callDispose(_stack, _error, _hasError);
|
|
204
|
+
}
|
|
199
205
|
}
|
|
200
206
|
function getOrientation(shape) {
|
|
201
207
|
const oc = getKernel().oc;
|
|
@@ -48,12 +48,12 @@ const errors = require("./errors-BYb4tL5h.cjs");
|
|
|
48
48
|
const vectors = require("./vectors-9rrStq8t.cjs");
|
|
49
49
|
const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
50
50
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
51
|
-
const boolean2D = require("./boolean2D-
|
|
51
|
+
const boolean2D = require("./boolean2D-Bs_OdV2_.cjs");
|
|
52
52
|
const faceFns = require("./faceFns-B8xnZw-f.cjs");
|
|
53
|
-
const curveFns = require("./curveFns-
|
|
53
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
54
54
|
const surfaceBuilders = require("./surfaceBuilders-zWnw2I0j.cjs");
|
|
55
55
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
56
|
-
const Blueprint = require("./Blueprint-
|
|
56
|
+
const Blueprint = require("./Blueprint-CIfiTx-y.cjs");
|
|
57
57
|
const result = require("./result.cjs");
|
|
58
58
|
const helpers = require("./helpers-Ces6b2wm.cjs");
|
|
59
59
|
const shapeFns = require("./shapeFns-CbZMmuQA.cjs");
|
|
@@ -47,12 +47,12 @@ import { u as unwrap, g as isOk, e as err, x as validationError, l as ok } from
|
|
|
47
47
|
import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-Dp5Iu1KH.js";
|
|
48
48
|
import { g as getKernel, a as toVec3, c as makeOcAx2 } from "./occtBoundary-Ct0tN8cs.js";
|
|
49
49
|
import { n as vecScale, j as vecNormalize, v as vecAdd, o as vecSub, b as vecCross, m as vecRotate, R as RAD2DEG, g as vecLength, e as vecEquals, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
50
|
-
import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-
|
|
50
|
+
import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-BG9wtSKz.js";
|
|
51
51
|
import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-DG4bu-QB.js";
|
|
52
|
-
import { c as curveTangentAt, a as curveEndPoint, b as getCurveType, o as offsetWire2D } from "./curveFns-
|
|
52
|
+
import { c as curveTangentAt, a as curveEndPoint, b as getCurveType, o as offsetWire2D } from "./curveFns-VRW_cski.js";
|
|
53
53
|
import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-zlVu1d-b.js";
|
|
54
54
|
import { D as DisposalScope, q as createWire, s as createFace, e as isFace, c as castShape } from "./shapeTypes-D34s68Xi.js";
|
|
55
|
-
import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-
|
|
55
|
+
import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-BWLPU0ZC.js";
|
|
56
56
|
import { bug } from "./result.js";
|
|
57
57
|
import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-D7hTCTJm.js";
|
|
58
58
|
import { d as getEdges } from "./shapeFns-5HlS8wvc.js";
|
package/dist/io.cjs
CHANGED
|
@@ -49,7 +49,7 @@ const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
|
49
49
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
50
50
|
const errors = require("./errors-BYb4tL5h.cjs");
|
|
51
51
|
const meshFns = require("./meshFns-BTb2esZJ.cjs");
|
|
52
|
-
const Blueprint = require("./Blueprint-
|
|
52
|
+
const Blueprint = require("./Blueprint-CIfiTx-y.cjs");
|
|
53
53
|
function vec3At(arr, i) {
|
|
54
54
|
const off = i * 3;
|
|
55
55
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
package/dist/io.js
CHANGED
|
@@ -47,7 +47,7 @@ import { g as getKernel, o as uniqueId } from "./occtBoundary-Ct0tN8cs.js";
|
|
|
47
47
|
import { D as DisposalScope, c as castShape } from "./shapeTypes-D34s68Xi.js";
|
|
48
48
|
import { e as err, i as ioError, l as ok } from "./errors-CHfaHQSt.js";
|
|
49
49
|
import { e, d, f } from "./meshFns-DJx5Yqiy.js";
|
|
50
|
-
import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-
|
|
50
|
+
import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-BWLPU0ZC.js";
|
|
51
51
|
function vec3At(arr, i) {
|
|
52
52
|
const off = i * 3;
|
|
53
53
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
package/dist/query.cjs
CHANGED
|
@@ -50,7 +50,7 @@ const cornerFinder = require("./cornerFinder-BijsFhpz.cjs");
|
|
|
50
50
|
const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
51
51
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
52
52
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
53
|
-
const curveFns = require("./curveFns-
|
|
53
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
54
54
|
function edgeDirectionFilter(dir, angle) {
|
|
55
55
|
const d = vecOps.vecNormalize(helpers.resolveDir(dir));
|
|
56
56
|
return (edge) => {
|
package/dist/query.js
CHANGED
|
@@ -49,7 +49,7 @@ import { c } from "./cornerFinder-DfSdXbxK.js";
|
|
|
49
49
|
import { g as getKernel } from "./occtBoundary-Ct0tN8cs.js";
|
|
50
50
|
import { D as DisposalScope } from "./shapeTypes-D34s68Xi.js";
|
|
51
51
|
import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
52
|
-
import { b as getCurveType, i as curveLength } from "./curveFns-
|
|
52
|
+
import { b as getCurveType, i as curveLength } from "./curveFns-VRW_cski.js";
|
|
53
53
|
function edgeDirectionFilter(dir, angle) {
|
|
54
54
|
const d = vecNormalize(resolveDir(dir));
|
|
55
55
|
return (edge) => {
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const drawFns = require("./drawFns-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const drawFns = require("./drawFns-BGGYhul8.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-Bs_OdV2_.cjs");
|
|
5
5
|
exports.CompoundSketch = drawFns.CompoundSketch;
|
|
6
6
|
exports.Drawing = drawFns.Drawing;
|
|
7
7
|
exports.DrawingPen = drawFns.DrawingPen;
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-
|
|
2
|
-
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-
|
|
1
|
+
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-Df_AbW16.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-BG9wtSKz.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curveFns.d.ts","sourceRoot":"","sources":["../../src/topology/curveFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AA6BjE;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAK1D;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAKxD;AAED,oCAAoC;AACpC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAKtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAM,GAAG,IAAI,CAKrE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAM,GAAG,IAAI,CAWvE;AAED,6CAA6C;AAC7C,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAMtD;AAED,oCAAoC;AACpC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAIzD;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAI3D;AAED,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"curveFns.d.ts","sourceRoot":"","sources":["../../src/topology/curveFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AA6BjE;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAK1D;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAKxD;AAED,oCAAoC;AACpC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAKtD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAM,GAAG,IAAI,CAKrE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAM,GAAG,IAAI,CAWvE;AAED,6CAA6C;AAC7C,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAMtD;AAED,oCAAoC;AACpC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAIzD;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAI3D;AAED,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAItD;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,CAIzE;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAE/D;AAMD,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,IAAI,EAAE,EACd,OAAO,GAAE,uBAA4B,GACpC,MAAM,CAAC,IAAI,CAAC,CAoBd;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,IAAI,EAAE,EACd,OAAO,GAAE,uBAA4B,GACpC,MAAM,CAAC,IAAI,CAAC,CAoBd;AAMD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,KAAK,GAAG,cAAc,GAAG,SAAS,GAAG,SAAiB,GAC3D,MAAM,CAAC,IAAI,CAAC,CAiBd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaceFns.d.ts","sourceRoot":"","sources":["../../src/topology/surfaceFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"surfaceFns.d.ts","sourceRoot":"","sources":["../../src/topology/surfaceFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAIzD,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,sBAA2B,GACnC,MAAM,CAAC,QAAQ,CAAC,CAsDlB;AA0HD,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,6DAA6D;IAC7D,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,WAAW,CAAC;IACxC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAqG3B"}
|
|
@@ -4,7 +4,7 @@ import { g as getKernel } from "./occtBoundary-Ct0tN8cs.js";
|
|
|
4
4
|
import { c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-D34s68Xi.js";
|
|
5
5
|
import { d as downcast } from "./faceFns-DG4bu-QB.js";
|
|
6
6
|
import { e as err, x as validationError, o as occtError, d as isErr, p as typeCastError, l as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-CHfaHQSt.js";
|
|
7
|
-
import "./curveFns-
|
|
7
|
+
import "./curveFns-VRW_cski.js";
|
|
8
8
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
9
9
|
import "./meshFns-DJx5Yqiy.js";
|
|
10
10
|
function toBufferGeometryData(mesh) {
|
|
@@ -5,7 +5,7 @@ const occtBoundary = require("./occtBoundary-CN_uQJtA.cjs");
|
|
|
5
5
|
const shapeTypes = require("./shapeTypes-sXITvFkF.cjs");
|
|
6
6
|
const faceFns = require("./faceFns-B8xnZw-f.cjs");
|
|
7
7
|
const errors = require("./errors-BYb4tL5h.cjs");
|
|
8
|
-
require("./curveFns-
|
|
8
|
+
require("./curveFns-D0L3YcH-.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
10
|
require("./meshFns-BTb2esZJ.cjs");
|
|
11
11
|
function toBufferGeometryData(mesh) {
|
package/dist/topology.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const shapeFns = require("./shapeFns-CbZMmuQA.cjs");
|
|
4
4
|
const booleanFns = require("./booleanFns-CUxOBNlC.cjs");
|
|
5
|
-
const topology = require("./topology-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
5
|
+
const topology = require("./topology-ZRFxrEEW.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-D0L3YcH-.cjs");
|
|
7
7
|
const faceFns = require("./faceFns-B8xnZw-f.cjs");
|
|
8
8
|
const meshFns = require("./meshFns-BTb2esZJ.cjs");
|
|
9
9
|
exports.getBounds = shapeFns.getBounds;
|
package/dist/topology.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w, d, a, f, e, c, y, h, z, A, B, C, v } from "./shapeFns-5HlS8wvc.js";
|
|
2
2
|
import { h as h2, g } from "./booleanFns-DHEaBJwW.js";
|
|
3
|
-
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w as w2 } from "./topology-
|
|
4
|
-
import { j as j2, a as a3, e as e3, k as k2, i, l as l2, h as h3, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-
|
|
3
|
+
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w as w2 } from "./topology-CMS8QyJa.js";
|
|
4
|
+
import { j as j2, a as a3, e as e3, k as k2, i, l as l2, h as h3, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-VRW_cski.js";
|
|
5
5
|
import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f3, q, r, g as g4, k as k3, s as s2, i as i2, n as n2, o as o2, p, t as t2, v as v3, u, h as h4 } from "./faceFns-DG4bu-QB.js";
|
|
6
6
|
import { c as c5, b as b3, e as e5, d as d5, f as f4 } from "./meshFns-DJx5Yqiy.js";
|
|
7
7
|
export {
|