brepjs 8.7.4 → 8.7.6
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/README.md +27 -18
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-Cmh8lKc4.js → Blueprint-BihoXiSm.js} +7 -7
- package/dist/{Blueprint-BcbOBF-9.cjs → Blueprint-DEhjUTv4.cjs} +7 -7
- package/dist/{boolean2D-D94Axs3i.js → boolean2D-B7MAHWWy.js} +9 -9
- package/dist/{boolean2D-CqacqjME.cjs → boolean2D-BMw-2GRS.cjs} +9 -9
- package/dist/{booleanFns-NtKxkiXn.cjs → booleanFns-BOrYk5DW.cjs} +9 -5
- package/dist/{booleanFns-DdjtpcM6.js → booleanFns-CxU6z_LD.js} +9 -5
- package/dist/brepjs.cjs +18 -18
- package/dist/brepjs.js +31 -31
- package/dist/core.cjs +3 -3
- package/dist/core.js +3 -3
- package/dist/{cornerFinder-BBOYfsXl.js → cornerFinder-Dh6RKiNy.js} +1 -1
- package/dist/{cornerFinder-Bqy8Lw2p.cjs → cornerFinder-DilC5fiE.cjs} +1 -1
- package/dist/{curveFns-B85Glnfo.js → curveFns-BJG6oqMt.js} +2 -2
- package/dist/{curveFns-BXCbASW-.cjs → curveFns-BT8cTVDA.cjs} +2 -2
- package/dist/{drawFns-CAmFEqd1.cjs → drawFns-DcEDgZzq.cjs} +12 -12
- package/dist/{drawFns-B-gJ2WUc.js → drawFns-aKd56G2a.js} +12 -12
- package/dist/{faceFns-DcndPHWm.cjs → faceFns-B8fGirMy.cjs} +2 -2
- package/dist/{faceFns-CltrEfOo.js → faceFns-C8ye0H_K.js} +2 -2
- package/dist/{helpers-SksQIreB.js → helpers-8QToWU3Q.js} +5 -5
- package/dist/{helpers-CC21GeAr.cjs → helpers-MiJaYJMA.cjs} +5 -5
- package/dist/io.cjs +12 -10
- package/dist/io.js +12 -10
- package/dist/kernel/booleanOps.d.ts.map +1 -1
- package/dist/{loft-CJMPx1NQ.js → loft-C810lPN5.js} +4 -4
- package/dist/{loft-BcyyvWCj.cjs → loft-DCEZpu53.cjs} +4 -4
- package/dist/measurement/measureCache.d.ts +11 -0
- package/dist/measurement/measureCache.d.ts.map +1 -0
- package/dist/measurement/measureFns.d.ts.map +1 -1
- package/dist/{measurement-DU3ry-0Q.cjs → measurement-BFotSPr0.cjs} +30 -6
- package/dist/{measurement-ByOztLxb.js → measurement-BT2jlvKC.js} +30 -6
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DawUwI3W.cjs → meshFns-CxYud6A4.cjs} +3 -3
- package/dist/{meshFns-D2gLyLFt.js → meshFns-DPbSUo0q.js} +3 -3
- package/dist/{occtBoundary-DH2VO-rq.cjs → occtBoundary-ChEJsbOT.cjs} +6 -0
- package/dist/{occtBoundary-CWzWqBCm.js → occtBoundary-DC1yVJex.js} +6 -0
- package/dist/{operations-CdELWxgv.cjs → operations-CckDdRJ0.cjs} +5 -5
- package/dist/{operations-DiXo_4t9.js → operations-IFpeXZme.js} +5 -5
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +5 -5
- package/dist/query.js +6 -6
- package/dist/{shapeFns-4ioRrhih.js → shapeFns-BTnqah-6.js} +3 -3
- package/dist/{shapeFns-3RYtsUVY.cjs → shapeFns-CQWvvjmd.cjs} +3 -3
- package/dist/{shapeTypes-D0vfRxWb.js → shapeTypes-BVd0rRNe.js} +1 -1
- package/dist/{shapeTypes-CMjrTv36.cjs → shapeTypes-MK0PKst9.cjs} +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{surfaceBuilders-Xx9DRRxs.cjs → surfaceBuilders-5Ci2Du77.cjs} +4 -4
- package/dist/{surfaceBuilders-B7Jxob8g.js → surfaceBuilders-nuWe3gns.js} +4 -4
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology/meshFns.d.ts +1 -1
- package/dist/topology/meshFns.d.ts.map +1 -1
- package/dist/{topology-D-nGjCzV.cjs → topology-C06jndeV.cjs} +8 -8
- package/dist/{topology-DRP9zreU.js → topology-P-u0NDwX.js} +8 -8
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/dist/{vectors-CZV4ZrTz.js → vectors-Dp17lKnm.js} +1 -1
- package/dist/{vectors-DwFeX0Ja.cjs → vectors-DrAMMsHl.cjs} +1 -1
- package/dist/vectors.cjs +2 -2
- package/dist/vectors.js +2 -2
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
44
44
|
};
|
|
45
45
|
return next();
|
|
46
46
|
};
|
|
47
|
-
const occtBoundary = require("./occtBoundary-
|
|
47
|
+
const occtBoundary = require("./occtBoundary-ChEJsbOT.cjs");
|
|
48
48
|
const globalWithRegistry = globalThis;
|
|
49
49
|
if (!globalWithRegistry.FinalizationRegistry) {
|
|
50
50
|
console.warn("brepjs: FinalizationRegistry unavailable — garbage collection will not work");
|
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-DcEDgZzq.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-BMw-2GRS.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-aKd56G2a.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-B7MAHWWy.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-ChEJsbOT.cjs");
|
|
3
3
|
const errors = require("./errors-eRQu29oc.cjs");
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const shapeFns = require("./shapeFns-
|
|
6
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const shapeTypes = require("./shapeTypes-MK0PKst9.cjs");
|
|
5
|
+
const shapeFns = require("./shapeFns-CQWvvjmd.cjs");
|
|
6
|
+
const faceFns = require("./faceFns-B8fGirMy.cjs");
|
|
7
7
|
function range(len) {
|
|
8
8
|
return Array.from(Array(len).keys());
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getKernel, d as toOcPnt, b as toOcVec, c as makeOcAx2, e as makeOcAx3 } from "./occtBoundary-
|
|
1
|
+
import { g as getKernel, d as toOcPnt, b as toOcVec, c as makeOcAx2, e as makeOcAx3 } from "./occtBoundary-DC1yVJex.js";
|
|
2
2
|
import { e as err, o as occtError, l as ok, x as validationError, a as andThen } from "./errors-Coh_5_19.js";
|
|
3
|
-
import { d as isEdge, m as isWire, o as createWire, p as createEdge, n as gcWithScope, q as createFace, r as localGC, e as isFace } from "./shapeTypes-
|
|
4
|
-
import { d as getEdges } from "./shapeFns-
|
|
5
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
3
|
+
import { d as isEdge, m as isWire, o as createWire, p as createEdge, n as gcWithScope, q as createFace, r as localGC, e as isFace } from "./shapeTypes-BVd0rRNe.js";
|
|
4
|
+
import { d as getEdges } from "./shapeFns-BTnqah-6.js";
|
|
5
|
+
import { o as outerWire, c as cast } from "./faceFns-C8ye0H_K.js";
|
|
6
6
|
function range(len) {
|
|
7
7
|
return Array.from(Array(len).keys());
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booleanFns.d.ts","sourceRoot":"","sources":["../../src/topology/booleanFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAQ,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,mBAAmB,CAAC;AAGhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAwBxD,6DAA6D;AAC7D,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IAClD,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sHAAsH;IACtH,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACjC,oEAAoE;IACpE,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AA6CD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,EAAE,YAAqB,EAAE,QAAgB,EAAE,MAAM,EAAE,GAAE,cAAmB,GACvE,MAAM,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"booleanFns.d.ts","sourceRoot":"","sources":["../../src/topology/booleanFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE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ACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,OAAO,EAAE,EAChB,EAAE,YAAqB,EAAE,QAAgB,EAAE,MAAM,EAAE,GAAE,cAAmB,GACvE,MAAM,CAAC,OAAO,CAAC,CAiCjB;AA4DD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,UAAU,EACjB,EAAE,aAAoB,EAAE,SAAe,EAAE,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9F,MAAM,CAAC,QAAQ,CAAC,CAyBlB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5D,MAAM,CAAC,IAAI,CAAC,CA8Ed;AAMD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,CAiC1E;AAMD;;;GAGG;AACH,wBAAgB,KAAK,CACnB,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5D,MAAM,CAAC,QAAQ,EAAE,CAAC,CAQpB"}
|
|
@@ -21,7 +21,7 @@ export interface ShapeMesh {
|
|
|
21
21
|
/** Line segment mesh data for edge rendering (wireframe). */
|
|
22
22
|
export interface EdgeMesh {
|
|
23
23
|
/** Flat array of line vertex positions (x,y,z interleaved, 2 vertices per segment). */
|
|
24
|
-
lines:
|
|
24
|
+
lines: Float32Array;
|
|
25
25
|
/** Per-edge line segment index ranges for highlighting individual edges. */
|
|
26
26
|
edgeGroups: {
|
|
27
27
|
start: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meshFns.d.ts","sourceRoot":"","sources":["../../src/topology/meshFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAwCzD,0EAA0E;AAC1E,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,SAAS,EAAE,WAAW,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,EAAE,YAAY,CAAC;IACvB,wDAAwD;IACxD,OAAO,EAAE,YAAY,CAAC;IACtB,8EAA8E;IAC9E,GAAG,EAAE,YAAY,CAAC;IAClB,mEAAmE;IACnE,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAChF;AAED,6DAA6D;AAC7D,MAAM,WAAW,QAAQ;IACvB,uFAAuF;IACvF,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"meshFns.d.ts","sourceRoot":"","sources":["../../src/topology/meshFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAwCzD,0EAA0E;AAC1E,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,SAAS,EAAE,WAAW,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,EAAE,YAAY,CAAC;IACvB,wDAAwD;IACxD,OAAO,EAAE,YAAY,CAAC;IACtB,8EAA8E;IAC9E,GAAG,EAAE,YAAY,CAAC;IAClB,mEAAmE;IACnE,UAAU,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QAAQ,EACf,EACE,SAAgB,EAChB,gBAAsB,EACtB,MAAc,GACf,GAAE,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GACzC,MAAM,CAAC,IAAI,CAAC,CA0Bd;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAwBxD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeFns = require("./shapeFns-
|
|
3
|
-
require("./booleanFns-
|
|
4
|
-
const occtBoundary = require("./occtBoundary-
|
|
5
|
-
const shapeTypes = require("./shapeTypes-
|
|
6
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const shapeFns = require("./shapeFns-CQWvvjmd.cjs");
|
|
3
|
+
require("./booleanFns-BOrYk5DW.cjs");
|
|
4
|
+
const occtBoundary = require("./occtBoundary-ChEJsbOT.cjs");
|
|
5
|
+
const shapeTypes = require("./shapeTypes-MK0PKst9.cjs");
|
|
6
|
+
const faceFns = require("./faceFns-B8fGirMy.cjs");
|
|
7
7
|
const errors = require("./errors-eRQu29oc.cjs");
|
|
8
|
-
require("./curveFns-
|
|
8
|
+
require("./curveFns-BT8cTVDA.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
|
-
require("./meshFns-
|
|
10
|
+
require("./meshFns-CxYud6A4.cjs");
|
|
11
11
|
function toBufferGeometryData(mesh) {
|
|
12
12
|
return {
|
|
13
13
|
position: mesh.vertices,
|
|
@@ -30,7 +30,7 @@ function toGroupedBufferGeometryData(mesh) {
|
|
|
30
30
|
}
|
|
31
31
|
function toLineGeometryData(mesh) {
|
|
32
32
|
return {
|
|
33
|
-
position:
|
|
33
|
+
position: mesh.lines
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
function chamferDistAngle(shape, edges, distance, angleDeg) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as getWires, a as getFaces } from "./shapeFns-
|
|
2
|
-
import "./booleanFns-
|
|
3
|
-
import { g as getKernel } from "./occtBoundary-
|
|
4
|
-
import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-
|
|
5
|
-
import { d as downcast } from "./faceFns-
|
|
1
|
+
import { c as getWires, a as getFaces } from "./shapeFns-BTnqah-6.js";
|
|
2
|
+
import "./booleanFns-CxU6z_LD.js";
|
|
3
|
+
import { g as getKernel } from "./occtBoundary-DC1yVJex.js";
|
|
4
|
+
import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-BVd0rRNe.js";
|
|
5
|
+
import { d as downcast } from "./faceFns-C8ye0H_K.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-Coh_5_19.js";
|
|
7
|
-
import "./curveFns-
|
|
7
|
+
import "./curveFns-BJG6oqMt.js";
|
|
8
8
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
9
|
-
import "./meshFns-
|
|
9
|
+
import "./meshFns-DPbSUo0q.js";
|
|
10
10
|
function toBufferGeometryData(mesh) {
|
|
11
11
|
return {
|
|
12
12
|
position: mesh.vertices,
|
|
@@ -29,7 +29,7 @@ function toGroupedBufferGeometryData(mesh) {
|
|
|
29
29
|
}
|
|
30
30
|
function toLineGeometryData(mesh) {
|
|
31
31
|
return {
|
|
32
|
-
position:
|
|
32
|
+
position: mesh.lines
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
function chamferDistAngle(shape, edges, distance, angleDeg) {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
-
const booleanFns = require("./booleanFns-
|
|
5
|
-
const topology = require("./topology-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
7
|
-
const faceFns = require("./faceFns-
|
|
8
|
-
const meshFns = require("./meshFns-
|
|
3
|
+
const shapeFns = require("./shapeFns-CQWvvjmd.cjs");
|
|
4
|
+
const booleanFns = require("./booleanFns-BOrYk5DW.cjs");
|
|
5
|
+
const topology = require("./topology-C06jndeV.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-BT8cTVDA.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-B8fGirMy.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-CxYud6A4.cjs");
|
|
9
9
|
exports.getBounds = shapeFns.getBounds;
|
|
10
10
|
exports.getEdges = shapeFns.getEdges;
|
|
11
11
|
exports.getFaces = shapeFns.getFaces;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u, d, a, e, f, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { h, g } from "./booleanFns-
|
|
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 } from "./topology-
|
|
4
|
-
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-
|
|
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 i3, n as n2, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-
|
|
6
|
-
import { c as c5, b as b3, e as e5, d as d5, f as f4 } from "./meshFns-
|
|
1
|
+
import { u, d, a, e, f, c, x, i, y, z, A, B, v } from "./shapeFns-BTnqah-6.js";
|
|
2
|
+
import { h, g } from "./booleanFns-CxU6z_LD.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 } from "./topology-P-u0NDwX.js";
|
|
4
|
+
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-BJG6oqMt.js";
|
|
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 i3, n as n2, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-C8ye0H_K.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f4 } from "./meshFns-DPbSUo0q.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as adjacentFaces,
|
|
9
9
|
j2 as approximateCurve,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as makeOcAx3, a as toVec3 } from "./occtBoundary-
|
|
1
|
+
import { e as makeOcAx3, a as toVec3 } from "./occtBoundary-DC1yVJex.js";
|
|
2
2
|
import { j as vecNormalize, f as vecIsZero, b as vecCross, v as vecAdd, n as vecScale, o as vecSub, d as vecDot, m as vecRotate, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
import { e as err, x as validationError, l as ok } from "./errors-Coh_5_19.js";
|
|
4
4
|
function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-ChEJsbOT.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
4
|
const errors = require("./errors-eRQu29oc.cjs");
|
|
5
5
|
function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
|
package/dist/vectors.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
+
const occtBoundary = require("./occtBoundary-ChEJsbOT.cjs");
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
|
-
const vectors = require("./vectors-
|
|
5
|
+
const vectors = require("./vectors-DrAMMsHl.cjs");
|
|
6
6
|
exports.resolveDirection = occtBoundary.resolveDirection;
|
|
7
7
|
exports.toVec2 = occtBoundary.toVec2;
|
|
8
8
|
exports.toVec3 = occtBoundary.toVec3;
|
package/dist/vectors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r, t, a } from "./occtBoundary-
|
|
1
|
+
import { r, t, a } from "./occtBoundary-DC1yVJex.js";
|
|
2
2
|
import { D, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
|
|
3
|
-
import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-
|
|
3
|
+
import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-Dp17lKnm.js";
|
|
4
4
|
export {
|
|
5
5
|
D as DEG2RAD,
|
|
6
6
|
R as RAD2DEG,
|