brepjs 20.12.15 → 20.13.1
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-BHdJW5pd.cjs → adjacencyFns-BA9xrrmS.cjs} +3 -3
- package/dist/{adjacencyFns-C4yjxKu4.js → adjacencyFns-C4Tui11_.js} +3 -3
- package/dist/{blueprint-D4juQWXs.cjs → blueprint-D193PMxX.cjs} +5 -5
- package/dist/{blueprint-ku_wYIZl.js → blueprint-DH0H9OWv.js} +5 -5
- package/dist/{blueprintFns-B0cqtoFB.js → blueprintFns-Bfiqbmtc.js} +2 -2
- package/dist/{blueprintFns-8obtvMEn.cjs → blueprintFns-DYIKTIvJ.cjs} +2 -2
- package/dist/{blueprintSketcher-CRFpnZAS.cjs → blueprintSketcher-B1UrnhFt.cjs} +3 -3
- package/dist/{blueprintSketcher-Dpdgf5aR.js → blueprintSketcher-RA8ti2Xp.js} +3 -3
- package/dist/{boolean2D-CnCDsRJ4.js → boolean2D-CCKUmway.js} +4 -4
- package/dist/{boolean2D-D3jxohLZ.cjs → boolean2D-XIehGONX.cjs} +4 -4
- package/dist/{booleanFns-CItcObM_.js → booleanFns-CyxmW1pL.js} +5 -5
- package/dist/{booleanFns-GBPAGQ5g.cjs → booleanFns-zRlNDHQY.cjs} +5 -5
- package/dist/brepjs.cjs +30 -30
- package/dist/brepjs.js +30 -30
- package/dist/{cameraFns-C2XhSqrr.cjs → cameraFns-BDjt94fY.cjs} +3 -3
- package/dist/{cameraFns-B6ujpyKy.js → cameraFns-CtpBKmwD.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-D3nBhdfi.js → cornerFinder-CIryesVI.js} +1 -1
- package/dist/{cornerFinder-CqHx_Itj.cjs → cornerFinder-DWN1Vkea.cjs} +1 -1
- package/dist/{curveFns-BQjw0VBB.cjs → curveFns-0vAErrs9.cjs} +1 -1
- package/dist/{curveFns-nAwtilbz.js → curveFns-b_C6tBeU.js} +1 -1
- package/dist/{drawFns-D9q4Hxc_.js → drawFns--_Bd7ONO.js} +12 -12
- package/dist/{drawFns-hFjTvdw4.cjs → drawFns-vcRf5KKV.cjs} +12 -12
- package/dist/{faceFns-DdMpocg9.cjs → faceFns-DzNcnzS5.cjs} +2 -2
- package/dist/{faceFns-Dodcduw8.js → faceFns-WtnWpVQl.js} +2 -2
- package/dist/{healingFns-GNF1rFuw.js → healingFns-B82dNj9P.js} +79 -31
- package/dist/{healingFns-Cdpu44d0.cjs → healingFns-D26gj7M5.cjs} +79 -31
- package/dist/{helpers-TWIfnyto.cjs → helpers-BO5NktbN.cjs} +6 -6
- package/dist/{helpers-CoVtL5c9.js → helpers-C5I0ZqYC.js} +6 -6
- package/dist/{importFns-P-TcOJ1G.cjs → importFns-Ceb2VgcK.cjs} +34 -20
- package/dist/{importFns-C9TUFscx.js → importFns-sxpO2z86.js} +34 -20
- package/dist/io/importFns.d.ts +12 -5
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/igesMerge.d.ts +13 -0
- package/dist/kernel/brepkit/stepMerge.d.ts +14 -0
- package/dist/kernel/interfaces/evolutionOps.d.ts +8 -0
- package/dist/kernel/interfaces/modifierOps.d.ts +17 -8
- package/dist/kernel/occtWasm/evolutionOps.d.ts +2 -0
- package/dist/kernel/occtWasm/helpers.d.ts +6 -0
- package/dist/kernel/occtWasm/modifierOps.d.ts +2 -8
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +3 -5
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +2 -0
- package/dist/{loftFns-Uq6BhPVL.cjs → loftFns-KXrP3aat.cjs} +1 -1
- package/dist/{loftFns-DVsWk-9v.js → loftFns-Y-aBF_f7.js} +1 -1
- package/dist/{measureFns-DoUWDfAP.js → measureFns-B0PhQ5dY.js} +3 -3
- package/dist/{measureFns-B0Cy7GcQ.cjs → measureFns-C8UjdHpB.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-BpBgKIIE.js → meshFns-BazHDlpY.js} +4 -4
- package/dist/{meshFns-Bz9PPZWP.cjs → meshFns-BnkXZ0Xm.cjs} +4 -4
- package/dist/{occtWasmAdapter-DzxyXpLG.cjs → occtWasmAdapter-4YnvqZOW.cjs} +122 -9
- package/dist/{occtWasmAdapter-DeVQrL5n.js → occtWasmAdapter-CGsnjMOe.js} +122 -9
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-DE1RROq-.cjs → primitiveFns-BM709SMs.cjs} +5 -5
- package/dist/{primitiveFns-Crqsdby_.js → primitiveFns-BZALpT35.js} +5 -5
- package/dist/{principalBoxFns-CzEBI6tC.cjs → principalBoxFns-C_hSxRc7.cjs} +3 -3
- package/dist/{principalBoxFns-DwitCsif.js → principalBoxFns-DLOoxmZB.js} +3 -3
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-BJz9UvXM.js → refResolveFns-BA1ES0sL.js} +6 -6
- package/dist/{refResolveFns-DgM_B9WU.cjs → refResolveFns-BkSLmvyY.cjs} +6 -6
- package/dist/{shapeFns-B9LB54_t.cjs → shapeFns-Bgql2_E6.cjs} +2 -2
- package/dist/{shapeFns-Ddh0M4Iz.js → shapeFns-CSWOXGx9.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-C1Ljs72p.cjs → shapeTypes-BFfnNmzj.cjs} +214 -23
- package/dist/{shapeTypes-DiCMRU6Z.js → shapeTypes-C7hqbMwl.js} +214 -23
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-Dzhk5L6w.js → solidBuilders-B01dFnd7.js} +3 -3
- package/dist/{solidBuilders-C6_6tZXG.cjs → solidBuilders-CWw3yasa.cjs} +3 -3
- package/dist/{surfaceBuilders-Idshk6C3.js → surfaceBuilders-Cn7GIsyR.js} +3 -3
- package/dist/{surfaceBuilders-CU_vd71e.cjs → surfaceBuilders-DL7UTpW2.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DyT-kfxc.js → textBlueprints-B7gDC-aP.js} +8 -8
- package/dist/{textBlueprints-BmIxy1fi.cjs → textBlueprints-dOnCv38X.cjs} +8 -8
- package/dist/{textMetrics-DuzBLY9z.js → textMetrics-BFzj8Zvn.js} +1 -1
- package/dist/{textMetrics-CbDASt0r.cjs → textMetrics-Cqc0xzHC.cjs} +1 -1
- package/dist/{threadFns-YPn7KF9u.cjs → threadFns-DwTPnV_1.cjs} +7 -7
- package/dist/{threadFns-CN1R3YKa.js → threadFns-M8pqF4TW.js} +7 -7
- package/dist/topology/apiTypes.d.ts +9 -0
- package/dist/topology/chamferAngleFns.d.ts +18 -9
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-0Ycw298Y.cjs → topologyQueryFns-95FptXtu.cjs} +1 -1
- package/dist/{topologyQueryFns-CNOqc1rB.js → topologyQueryFns-C3-_9dFM.js} +1 -1
- package/dist/{validityTypes-CXnc46WG.cjs → validityTypes--tgDeAF8.cjs} +1 -1
- package/dist/{validityTypes-rUpnumpL.js → validityTypes-C6qOP241.js} +1 -1
- package/package.json +2 -2
|
@@ -2343,6 +2343,14 @@ function runEdgeTreatment(Module, edges, value, uniform, perEdge) {
|
|
|
2343
2343
|
edgeVec.delete();
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
|
+
/**
|
|
2347
|
+
* A per-edge chamfer's `referenceFaceIds`: empty when no edge names its
|
|
2348
|
+
* reference face, else one id per edge, 0 where the facade picks the face.
|
|
2349
|
+
*/
|
|
2350
|
+
function referenceFaceIds(faces) {
|
|
2351
|
+
if (faces.every((face) => face === void 0)) return [];
|
|
2352
|
+
return faces.map((face) => face === void 0 ? 0 : unwrap(face));
|
|
2353
|
+
}
|
|
2346
2354
|
/** Each face's draft angle, in radians. */
|
|
2347
2355
|
function draftAnglesRad(faces, angleDeg) {
|
|
2348
2356
|
return faces.map((face) => (typeof angleDeg === "function" ? angleDeg(face) : angleDeg) * Math.PI / 180);
|
|
@@ -2354,6 +2362,9 @@ function needsOcctWasm59(what) {
|
|
|
2354
2362
|
function needsOcctWasm510(what) {
|
|
2355
2363
|
return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.10.0`);
|
|
2356
2364
|
}
|
|
2365
|
+
function needsOcctWasm511(what) {
|
|
2366
|
+
return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.11.0`);
|
|
2367
|
+
}
|
|
2357
2368
|
/**
|
|
2358
2369
|
* Rotate a shape from the kernel's default Z-axis to an arbitrary direction.
|
|
2359
2370
|
* Used by primitives whose creation API only takes a Z-aligned form.
|
|
@@ -3817,21 +3828,23 @@ function chamfer(k, Module, shape, edges, distance) {
|
|
|
3817
3828
|
}
|
|
3818
3829
|
}
|
|
3819
3830
|
/**
|
|
3820
|
-
* Chamfer edge i by `distances[i]` and `anglesDeg[i]
|
|
3821
|
-
*
|
|
3831
|
+
* Chamfer edge i by `distances[i]` and `anglesDeg[i]` from reference face
|
|
3832
|
+
* `faceIds[i]` (see {@link referenceFaceIds}). Builds without the per-edge
|
|
3833
|
+
* entry point take only `shared`, the one value every edge has, and no faces.
|
|
3822
3834
|
*/
|
|
3823
|
-
function runChamferDistAngles(k, Module, shape, edges, distances, anglesDeg, shared) {
|
|
3835
|
+
function runChamferDistAngles(k, Module, shape, edges, distances, anglesDeg, faceIds, shared) {
|
|
3824
3836
|
const id = unwrap(shape);
|
|
3825
3837
|
const edgeVec = makeVecU32(Module, edges.map(unwrap));
|
|
3826
3838
|
try {
|
|
3827
3839
|
if (!k.chamferDistAngles) {
|
|
3840
|
+
if (faceIds.length > 0) throw needsOcctWasm59("distance-angle chamfers measured from a given face");
|
|
3828
3841
|
if (!shared) throw needsOcctWasm59("per-edge distance-angle chamfers");
|
|
3829
3842
|
return wrapResult(k, k.chamferDistAngle(id, edgeVec, shared.distance, shared.angleDeg));
|
|
3830
3843
|
}
|
|
3831
3844
|
const chamferDistAngles = k.chamferDistAngles.bind(k);
|
|
3832
3845
|
const distanceVec = makeVecDouble(Module, distances);
|
|
3833
3846
|
const angleVec = makeVecDouble(Module, anglesDeg);
|
|
3834
|
-
const faceVec = makeVecU32(Module,
|
|
3847
|
+
const faceVec = makeVecU32(Module, faceIds);
|
|
3835
3848
|
try {
|
|
3836
3849
|
return wrapResult(k, reportingFaultyEdges(edges, () => chamferDistAngles(id, edgeVec, distanceVec, angleVec, faceVec)));
|
|
3837
3850
|
} finally {
|
|
@@ -3844,7 +3857,7 @@ function runChamferDistAngles(k, Module, shape, edges, distances, anglesDeg, sha
|
|
|
3844
3857
|
}
|
|
3845
3858
|
}
|
|
3846
3859
|
function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
|
|
3847
|
-
return runChamferDistAngles(k, Module, shape, edges, Array(edges.length).fill(distance), Array(edges.length).fill(angleDeg), {
|
|
3860
|
+
return runChamferDistAngles(k, Module, shape, edges, Array(edges.length).fill(distance), Array(edges.length).fill(angleDeg), [], {
|
|
3848
3861
|
distance,
|
|
3849
3862
|
angleDeg
|
|
3850
3863
|
});
|
|
@@ -3856,7 +3869,7 @@ function sharedDistAngle(entries) {
|
|
|
3856
3869
|
return entries.every((e) => e.distance === first.distance && e.angleDeg === first.angleDeg) ? first : void 0;
|
|
3857
3870
|
}
|
|
3858
3871
|
function chamferDistAngles(k, Module, shape, entries) {
|
|
3859
|
-
return runChamferDistAngles(k, Module, shape, entries.map((e) => e.edge), entries.map((e) => e.distance), entries.map((e) => e.angleDeg), sharedDistAngle(entries));
|
|
3872
|
+
return runChamferDistAngles(k, Module, shape, entries.map((e) => e.edge), entries.map((e) => e.distance), entries.map((e) => e.angleDeg), referenceFaceIds(entries.map((e) => e.face)), sharedDistAngle(entries));
|
|
3860
3873
|
}
|
|
3861
3874
|
function shell(k, Module, shape, faces, thickness, tolerance) {
|
|
3862
3875
|
const vec = makeVecU32(Module, faces.map(unwrap));
|
|
@@ -4837,17 +4850,86 @@ function toBREP(k, shape) {
|
|
|
4837
4850
|
function fromBREP(k, data) {
|
|
4838
4851
|
return wrapResult(k, k.fromBREP(data));
|
|
4839
4852
|
}
|
|
4853
|
+
/**
|
|
4854
|
+
* A new XCAF document holding each part as a free shape of its own, tagged
|
|
4855
|
+
* with its name and color.
|
|
4856
|
+
*
|
|
4857
|
+
* XCAF stores a shape once. A part identical to an earlier one comes back as
|
|
4858
|
+
* that part's label, and a part sharing another part's geometry (`TShape`) at
|
|
4859
|
+
* another placement becomes a reference to it, which leaves the shared label
|
|
4860
|
+
* no longer free, so it is not written. Either way there are fewer free shapes
|
|
4861
|
+
* than parts; the document is then rebuilt once with those parts copied, and a
|
|
4862
|
+
* copy has a `TShape` of its own. Copying the part whose label became shared,
|
|
4863
|
+
* not the placed parts referencing it, keeps those sharing one geometry.
|
|
4864
|
+
*/
|
|
4840
4865
|
function addXcafParts(k, parts) {
|
|
4841
4866
|
const docId = k.xcafNewDocument();
|
|
4842
|
-
|
|
4843
|
-
|
|
4867
|
+
let merged;
|
|
4868
|
+
try {
|
|
4869
|
+
merged = mergedParts(addEachPart(k, docId, parts, /* @__PURE__ */ new Set()), freeShapes(k, docId));
|
|
4870
|
+
} catch (e) {
|
|
4871
|
+
k.xcafClose(docId);
|
|
4872
|
+
throw e;
|
|
4873
|
+
}
|
|
4874
|
+
if (merged.size === 0) return docId;
|
|
4875
|
+
k.xcafClose(docId);
|
|
4876
|
+
const rebuilt = k.xcafNewDocument();
|
|
4877
|
+
try {
|
|
4878
|
+
addEachPart(k, rebuilt, parts, merged);
|
|
4879
|
+
return rebuilt;
|
|
4880
|
+
} catch (e) {
|
|
4881
|
+
k.xcafClose(rebuilt);
|
|
4882
|
+
throw e;
|
|
4883
|
+
}
|
|
4884
|
+
}
|
|
4885
|
+
/** Add `parts` in order, copying those in `copy`; the label each part went in as. */
|
|
4886
|
+
function addEachPart(k, docId, parts, copy) {
|
|
4887
|
+
return parts.map((entry, i) => {
|
|
4888
|
+
const labelId = addPartShape(k, docId, unwrap(entry.shape), copy.has(i));
|
|
4844
4889
|
if (entry.name) k.xcafSetName(docId, labelId, entry.name);
|
|
4845
4890
|
if (entry.color) {
|
|
4846
4891
|
const [r, g, b] = entry.color;
|
|
4847
4892
|
k.xcafSetColor(docId, labelId, r / 255, g / 255, b / 255);
|
|
4848
4893
|
}
|
|
4894
|
+
return labelId;
|
|
4895
|
+
});
|
|
4896
|
+
}
|
|
4897
|
+
/**
|
|
4898
|
+
* The parts that did not become a free shape of their own: a repeat of an
|
|
4899
|
+
* earlier part's label, or a label no longer free. Each part adds at most one
|
|
4900
|
+
* free shape, so as many free shapes as parts means none merged.
|
|
4901
|
+
*/
|
|
4902
|
+
function mergedParts(labels, free) {
|
|
4903
|
+
const merged = /* @__PURE__ */ new Set();
|
|
4904
|
+
if (free.length === labels.length) return merged;
|
|
4905
|
+
const freeLabels = new Set(free);
|
|
4906
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4907
|
+
labels.forEach((label, i) => {
|
|
4908
|
+
if (seen.has(label) || !freeLabels.has(label)) merged.add(i);
|
|
4909
|
+
seen.add(label);
|
|
4910
|
+
});
|
|
4911
|
+
return merged;
|
|
4912
|
+
}
|
|
4913
|
+
/** Add a shape, or a copy of it; the document keeps the copy's geometry once its slot is released. */
|
|
4914
|
+
function addPartShape(k, docId, shapeId, copy) {
|
|
4915
|
+
if (!copy) return k.xcafAddShape(docId, shapeId);
|
|
4916
|
+
const copyId = k.copy(shapeId);
|
|
4917
|
+
try {
|
|
4918
|
+
return k.xcafAddShape(docId, copyId);
|
|
4919
|
+
} finally {
|
|
4920
|
+
k.release(copyId);
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
/** The document's free shapes' label ids. */
|
|
4924
|
+
function freeShapes(k, docId) {
|
|
4925
|
+
const roots = k.xcafGetRootLabels(docId);
|
|
4926
|
+
try {
|
|
4927
|
+
const ids = [];
|
|
4928
|
+
for (let i = 0; i < roots.size(); i++) ids.push(roots.get(i));
|
|
4929
|
+
return ids;
|
|
4930
|
+
} finally {
|
|
4931
|
+
roots.delete();
|
|
4849
4932
|
}
|
|
4850
|
-
return docId;
|
|
4851
4933
|
}
|
|
4852
4934
|
function writeXcafDoc(k, docId, units) {
|
|
4853
4935
|
const roots = k.xcafGetRootLabels(docId);
|
|
@@ -6204,6 +6286,34 @@ function chamferWithHistory(k, Module, shape, edges, distance, inputFaceHashes,
|
|
|
6204
6286
|
hashVec.delete();
|
|
6205
6287
|
}
|
|
6206
6288
|
}
|
|
6289
|
+
function chamferDistAnglesWithHistory(k, Module, shape, entries, inputFaceHashes, hashUpperBound) {
|
|
6290
|
+
if (!k.chamferDistAnglesWithHistory) throw needsOcctWasm511("a distance-angle chamfer with face history");
|
|
6291
|
+
const withHistory = k.chamferDistAnglesWithHistory.bind(k);
|
|
6292
|
+
const shapeId = unwrap(shape);
|
|
6293
|
+
const edges = entries.map((e) => e.edge);
|
|
6294
|
+
const edgeIds = edges.map(unwrap);
|
|
6295
|
+
const distances = entries.map((e) => e.distance);
|
|
6296
|
+
const anglesDeg = entries.map((e) => e.angleDeg);
|
|
6297
|
+
const faceIds = referenceFaceIds(entries.map((e) => e.face));
|
|
6298
|
+
const edgeVec = makeVecU32(Module, edgeIds);
|
|
6299
|
+
const distanceVec = makeVecDouble(Module, distances);
|
|
6300
|
+
const angleVec = makeVecDouble(Module, anglesDeg);
|
|
6301
|
+
const faceVec = makeVecU32(Module, faceIds);
|
|
6302
|
+
const hashVec = makeVecInt(Module, inputFaceHashes);
|
|
6303
|
+
try {
|
|
6304
|
+
const { id, evolution } = parseEvolution(reportingFaultyEdges(edges, () => withHistory(shapeId, edgeVec, distanceVec, angleVec, faceVec, hashVec, hashUpperBound)));
|
|
6305
|
+
return {
|
|
6306
|
+
shape: wrapResult(k, id),
|
|
6307
|
+
evolution
|
|
6308
|
+
};
|
|
6309
|
+
} finally {
|
|
6310
|
+
edgeVec.delete();
|
|
6311
|
+
distanceVec.delete();
|
|
6312
|
+
angleVec.delete();
|
|
6313
|
+
faceVec.delete();
|
|
6314
|
+
hashVec.delete();
|
|
6315
|
+
}
|
|
6316
|
+
}
|
|
6207
6317
|
function shellWithHistory(k, Module, shape, faces, thickness, inputFaceHashes, hashUpperBound, tolerance) {
|
|
6208
6318
|
const faceVec = makeVecU32(Module, faces.map(unwrap));
|
|
6209
6319
|
const hashVec = makeVecInt(Module, inputFaceHashes);
|
|
@@ -6713,6 +6823,9 @@ var OcctWasmAdapter = class OcctWasmAdapter {
|
|
|
6713
6823
|
chamferWithHistory(shape, edges, distance, inputFaceHashes, hashUpperBound) {
|
|
6714
6824
|
return chamferWithHistory(this.k, this.Module, shape, edges, distance, inputFaceHashes, hashUpperBound);
|
|
6715
6825
|
}
|
|
6826
|
+
chamferDistAnglesWithHistory(shape, edges, inputFaceHashes, hashUpperBound) {
|
|
6827
|
+
return chamferDistAnglesWithHistory(this.k, this.Module, shape, edges, inputFaceHashes, hashUpperBound);
|
|
6828
|
+
}
|
|
6716
6829
|
shellWithHistory(shape, faces, thickness, inputFaceHashes, hashUpperBound, tolerance) {
|
|
6717
6830
|
return shellWithHistory(this.k, this.Module, shape, faces, thickness, inputFaceHashes, hashUpperBound, tolerance);
|
|
6718
6831
|
}
|
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-DwTPnV_1.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-KXrP3aat.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 walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } 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 walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } from "./threadFns-M8pqF4TW.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-Y-aBF_f7.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,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes
|
|
3
|
+
const require_validityTypes = require("./validityTypes--tgDeAF8.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-CWw3yasa.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-zRlNDHQY.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DL7UTpW2.cjs");
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-C7hqbMwl.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { n as isClosedWire } from "./validityTypes-
|
|
3
|
+
import { n as isClosedWire } from "./validityTypes-C6qOP241.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { d as vecNormalize, h as vecScale } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
7
|
-
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-
|
|
8
|
-
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-
|
|
6
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-B01dFnd7.js";
|
|
7
|
+
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-CyxmW1pL.js";
|
|
8
|
+
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-Cn7GIsyR.js";
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-95FptXtu.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_measureFns = require("./measureFns-C8UjdHpB.cjs");
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-C7hqbMwl.js";
|
|
2
2
|
import { i as wasmIndex } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-C3-_9dFM.js";
|
|
5
5
|
import { r as vecCross } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { f as withCompoundOf, h as setCachedMeasurement, m as getCachedMeasurement, p as withSubShapes } from "./measureFns-
|
|
6
|
+
import { f as withCompoundOf, h as setCachedMeasurement, m as getCachedMeasurement, p as withSubShapes } from "./measureFns-B0PhQ5dY.js";
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
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-BDjt94fY.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 +1 @@
|
|
|
1
|
-
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-
|
|
1
|
+
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-CtpBKmwD.js";
|
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-BO5NktbN.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DWN1Vkea.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-C5I0ZqYC.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-CIryesVI.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
1
|
+
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-C7hqbMwl.js";
|
|
2
|
+
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-C3-_9dFM.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-WtnWpVQl.js";
|
|
4
4
|
import { t as getFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
|
|
5
|
-
import { n as getHashCode } from "./shapeFns-
|
|
6
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
7
|
-
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-
|
|
5
|
+
import { n as getHashCode } from "./shapeFns-CSWOXGx9.js";
|
|
6
|
+
import { n as measureArea, s as measureLength } from "./measureFns-B0PhQ5dY.js";
|
|
7
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-C4Tui11_.js";
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-95FptXtu.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
|
|
4
4
|
const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
7
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-Bgql2_E6.cjs");
|
|
6
|
+
const require_measureFns = require("./measureFns-C8UjdHpB.cjs");
|
|
7
|
+
const require_adjacencyFns = require("./adjacencyFns-BA9xrrmS.cjs");
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* 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-BFfnNmzj.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-95FptXtu.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
// src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-C7hqbMwl.js";
|
|
2
2
|
import { t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-
|
|
3
|
+
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-C3-_9dFM.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
5
|
// 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-BkSLmvyY.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 +1 @@
|
|
|
1
|
-
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-BA1ES0sL.js";
|