brepjs 20.12.2 → 20.12.4
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-C0YD3Zrp.js → adjacencyFns-54UTqtan.js} +3 -3
- package/dist/{adjacencyFns-Cibtcqdl.cjs → adjacencyFns-C_Vb1AeW.cjs} +3 -3
- package/dist/{blueprint-p1SmFAfl.cjs → blueprint-D0VEeTzJ.cjs} +5 -5
- package/dist/{blueprint-CLgJoNt5.js → blueprint-DFpjcrlm.js} +5 -5
- package/dist/{blueprintFns-DU8_o9zy.cjs → blueprintFns-Douf5ZdX.cjs} +2 -2
- package/dist/{blueprintFns-D4wl5Fft.js → blueprintFns-Dye1jezD.js} +2 -2
- package/dist/{blueprintSketcher-CmR6Mi91.js → blueprintSketcher-Cr0Lr1Dq.js} +3 -3
- package/dist/{blueprintSketcher-BTJqAd7E.cjs → blueprintSketcher-W9yON-UC.cjs} +3 -3
- package/dist/{boolean2D-CEPQF4LP.cjs → boolean2D-C9VghXHG.cjs} +4 -4
- package/dist/{boolean2D-C3bLz5i0.js → boolean2D-CCV3R6lN.js} +4 -4
- package/dist/brepjs.cjs +30 -30
- package/dist/brepjs.js +30 -30
- package/dist/{cameraFns-xUCRxpsa.js → cameraFns-DZOI_ewG.js} +3 -3
- package/dist/{cameraFns-CUX8VNKT.cjs → cameraFns-x3L6dtA8.cjs} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-BToeCt6c.cjs → cornerFinder-B8PqO4um.cjs} +1 -1
- package/dist/{cornerFinder-CBjvTijF.js → cornerFinder-BY10jciz.js} +1 -1
- package/dist/{curveFns-CMiP40Ko.cjs → curveFns-8lUhNquZ.cjs} +1 -1
- package/dist/{curveFns-AMqd_WaO.js → curveFns-B4308HNM.js} +1 -1
- package/dist/{drawFns-BOyA7iOt.cjs → drawFns-C7zAvera.cjs} +12 -12
- package/dist/{drawFns-DzqPMBHE.js → drawFns-DjnU3fEd.js} +12 -12
- package/dist/{faceFns-DEDlLMcn.js → faceFns-7eHqNM0P.js} +2 -2
- package/dist/{faceFns-C6fYNgZl.cjs → faceFns-BjmlYcc9.cjs} +2 -2
- package/dist/{healingFns-CJIIjQKh.js → healingFns-BW7mZ_SW.js} +5 -5
- package/dist/{healingFns-383ByJpH.cjs → healingFns-CYLIcIWv.cjs} +5 -5
- package/dist/{helpers-i26hsY3T.js → helpers-BQ6XMFcm.js} +6 -6
- package/dist/{helpers-DxoCOnD_.cjs → helpers-De0Z_6iV.cjs} +6 -6
- package/dist/{importFns-Fr6WPpl2.cjs → importFns-3IMBHQrQ.cjs} +2 -2
- package/dist/{importFns-Bz4sXl93.js → importFns-BCL4-H8e.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/geometry2d.d.ts +7 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{loftFns-BsFinbgs.cjs → loftFns-DlG5oR0X.cjs} +1 -1
- package/dist/{loftFns-pMh0ET-J.js → loftFns-H4ZOpRAk.js} +1 -1
- package/dist/{measureFns-BuxKO1GV.js → measureFns-1IfNe629.js} +3 -3
- package/dist/{measureFns-Ed7LXAhG.cjs → measureFns-Ce01LVwq.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-LytwBtBQ.js → meshFns-DaRZxa7B.js} +3 -3
- package/dist/{meshFns-BNrdUhgG.cjs → meshFns-nEvfwNRF.cjs} +3 -3
- package/dist/{occtWasmAdapter-D1EXktNq.cjs → occtWasmAdapter-CRd9RFEu.cjs} +32 -3
- package/dist/{occtWasmAdapter-RBm-JLoN.js → occtWasmAdapter-ipKUdNLN.js} +32 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-BRJ2PZ8J.cjs → originTrackingFns-9gyCMFFQ.cjs} +2 -2
- package/dist/{originTrackingFns-BqlxFeWq.js → originTrackingFns-zrksCJTa.js} +2 -2
- package/dist/{primitiveFns-wOdKnYBs.cjs → primitiveFns-BRXZ7jnP.cjs} +4 -4
- package/dist/{primitiveFns-DrEUKZvX.js → primitiveFns-ClQP6zMQ.js} +4 -4
- package/dist/{principalBoxFns-C0UzVmfC.js → principalBoxFns-DsfWOoXg.js} +3 -3
- package/dist/{principalBoxFns-D8rqqCl2.cjs → principalBoxFns-tIv-crMB.cjs} +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-BqcjC50D.js → refResolveFns-BG3JGs--.js} +6 -6
- package/dist/{refResolveFns-C23E6pcj.cjs → refResolveFns-BZdUlv9f.cjs} +6 -6
- package/dist/{shapeFns-D7DcPxfx.js → shapeFns-BCgegapL.js} +2 -2
- package/dist/{shapeFns-CHFmX5HQ.cjs → shapeFns-BbXqiNqY.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-Db3yAgTO.js → shapeTypes-DAz6aAnJ.js} +1 -1
- package/dist/{shapeTypes-HDVHzNk1.cjs → shapeTypes-DJT3SnGK.cjs} +1 -1
- package/dist/sketching/sketchFns.d.ts +8 -3
- package/dist/sketching/sketches.d.ts +6 -0
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-CAiqZrAE.js → solidBuilders-8xytLt8-.js} +5 -5
- package/dist/{solidBuilders-DYumkmVa.cjs → solidBuilders-BWbqhbyv.cjs} +5 -5
- package/dist/{surfaceBuilders-CW6cUdk9.js → surfaceBuilders-BO96DMCH.js} +3 -3
- package/dist/{surfaceBuilders-o3H-x6Ca.cjs → surfaceBuilders-CwG_RPdZ.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BSU9_W8u.cjs → textBlueprints-DHfYmLtP.cjs} +40 -12
- package/dist/{textBlueprints-BE9fvro-.js → textBlueprints-Dhe8_Uvc.js} +40 -12
- package/dist/{textMetrics-DBqFVzjh.js → textMetrics-Bbf-Dllw.js} +1 -1
- package/dist/{textMetrics-BHunx03s.cjs → textMetrics-CwYDH9js.cjs} +1 -1
- package/dist/{threadFns-DckgA8OY.cjs → threadFns-B23RqugN.cjs} +7 -7
- package/dist/{threadFns-DViBlfHh.js → threadFns-Cn7_bmux.js} +7 -7
- package/dist/topology/topologyQueryFns.d.ts +9 -1
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-DKNVBMuN.js → topologyQueryFns-BfYdGOJc.js} +1 -14
- package/dist/{topologyQueryFns-gyva7bvF.cjs → topologyQueryFns-xh11vEQw.cjs} +1 -14
- package/dist/{validityTypes-BmqE7KfX.js → validityTypes-BfOuvfyp.js} +1 -1
- package/dist/{validityTypes-CwMwVFdY.cjs → validityTypes-CXkecqMw.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-CRd9RFEu.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
5
5
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
+
const require_faceFns = require("./faceFns-BjmlYcc9.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-BWbqhbyv.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
9
9
|
// src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, y as isFace } from "./shapeTypes-DAz6aAnJ.js";
|
|
2
2
|
import { E as ok, g as err, o as queryError, x as isOk } from "./errors-BTccWbtE.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-BfYdGOJc.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-S-m9H_fe.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-7eHqNM0P.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-BCgegapL.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-B4308HNM.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-1IfNe629.js";
|
|
10
10
|
// 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-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.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-BjmlYcc9.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-BbXqiNqY.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-8lUhNquZ.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-Ce01LVwq.cjs");
|
|
10
10
|
// 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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-D0VEeTzJ.cjs");
|
|
6
6
|
// 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
|
-
import { n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { n as castResultShape, q as getKernel } from "./shapeTypes-DAz6aAnJ.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At$1 } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-BpgouNir.js";
|
|
5
|
-
import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-
|
|
5
|
+
import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-DFpjcrlm.js";
|
|
6
6
|
// 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-nEvfwNRF.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-3IMBHQrQ.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-DaRZxa7B.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-BCL4-H8e.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -89,6 +89,13 @@ export declare function intersectCurves2dFn(c1: Curve2dObj, c2: Curve2dObj, tole
|
|
|
89
89
|
points: [number, number][];
|
|
90
90
|
segments: Curve2dObj[];
|
|
91
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Gauss-Newton the foot point of (px, py) on c from a sampled start parameter, staying
|
|
94
|
+
* within [from, to] (either order). A sampling grid alone leaves the point up to
|
|
95
|
+
* ~r*pi/N off an arc, while intersection and split callers treat a point as on the
|
|
96
|
+
* curve only within ~1e-8, so an unrefined sample rejects nearly every real crossing.
|
|
97
|
+
*/
|
|
98
|
+
export declare function refineFootPoint(c: Curve2dObj, px: number, py: number, start: number, from: number, to: number): number;
|
|
92
99
|
export declare function serializeCurve2d(c: Curve2dObj): string;
|
|
93
100
|
export declare function deserializeCurve2d(data: string): Curve2dObj;
|
|
94
101
|
export declare function createBBox2d(): BBox2d;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_occtWasmAdapter = require("../../occtWasmAdapter-
|
|
2
|
+
const require_occtWasmAdapter = require("../../occtWasmAdapter-CRd9RFEu.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-ipKUdNLN.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
3
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DAz6aAnJ.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-BTccWbtE.js";
|
|
3
3
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
4
4
|
import { c as vecLength, t as vecAdd } from "./vecOps-S-m9H_fe.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DAz6aAnJ.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-BfYdGOJc.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-7eHqNM0P.js";
|
|
5
5
|
// src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-BjmlYcc9.cjs");
|
|
5
5
|
// src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
3
|
-
const require_principalBoxFns = require("./principalBoxFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-Ce01LVwq.cjs");
|
|
3
|
+
const require_principalBoxFns = require("./principalBoxFns-tIv-crMB.cjs");
|
|
4
4
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
5
5
|
exports.measureArea = require_measureFns.measureArea;
|
|
6
6
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
2
|
-
import { t as principalBoundingBox } from "./principalBoxFns-
|
|
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-1IfNe629.js";
|
|
2
|
+
import { t as principalBoundingBox } from "./principalBoxFns-DsfWOoXg.js";
|
|
3
3
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, principalBoundingBox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-DAz6aAnJ.js";
|
|
2
2
|
import { E as ok, g as err, r as ioError } from "./errors-BTccWbtE.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-BfYdGOJc.js";
|
|
4
|
+
import { t as getFaceOrigins } from "./originTrackingFns-zrksCJTa.js";
|
|
5
5
|
// 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-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
4
|
+
const require_originTrackingFns = require("./originTrackingFns-9gyCMFFQ.cjs");
|
|
5
5
|
// src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -778,7 +778,34 @@ function refineParam(c, px, py) {
|
|
|
778
778
|
const [ex, ey] = evaluateCurve2d$1(c, bounds.last);
|
|
779
779
|
const [mx, my] = evaluateCurve2d$1(c, (bounds.first + bounds.last) / 2);
|
|
780
780
|
const maxDist = Math.max(Math.sqrt((ex - sx) ** 2 + (ey - sy) ** 2), Math.sqrt((mx - sx) ** 2 + (my - sy) ** 2), 1e-6) * .1;
|
|
781
|
-
return bestD < maxDist * maxDist ? bestT : null;
|
|
781
|
+
return bestD < maxDist * maxDist ? refineFootPoint(c, px, py, bestT, bounds.first, bounds.last) : null;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Gauss-Newton the foot point of (px, py) on c from a sampled start parameter, staying
|
|
785
|
+
* within [from, to] (either order). A sampling grid alone leaves the point up to
|
|
786
|
+
* ~r*pi/N off an arc, while intersection and split callers treat a point as on the
|
|
787
|
+
* curve only within ~1e-8, so an unrefined sample rejects nearly every real crossing.
|
|
788
|
+
*/
|
|
789
|
+
function refineFootPoint(c, px, py, start, from, to) {
|
|
790
|
+
const lo = Math.min(from, to);
|
|
791
|
+
const hi = Math.max(from, to);
|
|
792
|
+
let t = start;
|
|
793
|
+
let [x, y] = evaluateCurve2d$1(c, t);
|
|
794
|
+
let distSq = (x - px) ** 2 + (y - py) ** 2;
|
|
795
|
+
for (let iter = 0; iter < 30 && distSq > 0; iter++) {
|
|
796
|
+
const [tx, ty] = tangentCurve2d(c, t);
|
|
797
|
+
const speedSq = tx * tx + ty * ty;
|
|
798
|
+
if (speedSq < 1e-300) break;
|
|
799
|
+
const next = Math.min(hi, Math.max(lo, t + ((px - x) * tx + (py - y) * ty) / speedSq));
|
|
800
|
+
const [nx, ny] = evaluateCurve2d$1(c, next);
|
|
801
|
+
const nextDistSq = (nx - px) ** 2 + (ny - py) ** 2;
|
|
802
|
+
if (nextDistSq >= distSq) break;
|
|
803
|
+
t = next;
|
|
804
|
+
x = nx;
|
|
805
|
+
y = ny;
|
|
806
|
+
distSq = nextDistSq;
|
|
807
|
+
}
|
|
808
|
+
return t;
|
|
782
809
|
}
|
|
783
810
|
function intersectLineLine(c1, l1, c2, l2, tol) {
|
|
784
811
|
const det = l1.dx * l2.dy - l1.dy * l2.dx;
|
|
@@ -4447,9 +4474,11 @@ function projectPointOnCurve2d(curve, x, y) {
|
|
|
4447
4474
|
bestT = t;
|
|
4448
4475
|
}
|
|
4449
4476
|
}
|
|
4477
|
+
const t = refineFootPoint(basis, x, y, bestT, bFirst, bLast);
|
|
4478
|
+
const [px, py] = evaluateCurve2d$1(basis, t);
|
|
4450
4479
|
return {
|
|
4451
|
-
param:
|
|
4452
|
-
distance: Math.sqrt(
|
|
4480
|
+
param: t,
|
|
4481
|
+
distance: Math.sqrt((px - x) ** 2 + (py - y) ** 2)
|
|
4453
4482
|
};
|
|
4454
4483
|
};
|
|
4455
4484
|
if (c.__bk2d === "trimmed") {
|
|
@@ -778,7 +778,34 @@ function refineParam(c, px, py) {
|
|
|
778
778
|
const [ex, ey] = evaluateCurve2d$1(c, bounds.last);
|
|
779
779
|
const [mx, my] = evaluateCurve2d$1(c, (bounds.first + bounds.last) / 2);
|
|
780
780
|
const maxDist = Math.max(Math.sqrt((ex - sx) ** 2 + (ey - sy) ** 2), Math.sqrt((mx - sx) ** 2 + (my - sy) ** 2), 1e-6) * .1;
|
|
781
|
-
return bestD < maxDist * maxDist ? bestT : null;
|
|
781
|
+
return bestD < maxDist * maxDist ? refineFootPoint(c, px, py, bestT, bounds.first, bounds.last) : null;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Gauss-Newton the foot point of (px, py) on c from a sampled start parameter, staying
|
|
785
|
+
* within [from, to] (either order). A sampling grid alone leaves the point up to
|
|
786
|
+
* ~r*pi/N off an arc, while intersection and split callers treat a point as on the
|
|
787
|
+
* curve only within ~1e-8, so an unrefined sample rejects nearly every real crossing.
|
|
788
|
+
*/
|
|
789
|
+
function refineFootPoint(c, px, py, start, from, to) {
|
|
790
|
+
const lo = Math.min(from, to);
|
|
791
|
+
const hi = Math.max(from, to);
|
|
792
|
+
let t = start;
|
|
793
|
+
let [x, y] = evaluateCurve2d$1(c, t);
|
|
794
|
+
let distSq = (x - px) ** 2 + (y - py) ** 2;
|
|
795
|
+
for (let iter = 0; iter < 30 && distSq > 0; iter++) {
|
|
796
|
+
const [tx, ty] = tangentCurve2d(c, t);
|
|
797
|
+
const speedSq = tx * tx + ty * ty;
|
|
798
|
+
if (speedSq < 1e-300) break;
|
|
799
|
+
const next = Math.min(hi, Math.max(lo, t + ((px - x) * tx + (py - y) * ty) / speedSq));
|
|
800
|
+
const [nx, ny] = evaluateCurve2d$1(c, next);
|
|
801
|
+
const nextDistSq = (nx - px) ** 2 + (ny - py) ** 2;
|
|
802
|
+
if (nextDistSq >= distSq) break;
|
|
803
|
+
t = next;
|
|
804
|
+
x = nx;
|
|
805
|
+
y = ny;
|
|
806
|
+
distSq = nextDistSq;
|
|
807
|
+
}
|
|
808
|
+
return t;
|
|
782
809
|
}
|
|
783
810
|
function intersectLineLine(c1, l1, c2, l2, tol) {
|
|
784
811
|
const det = l1.dx * l2.dy - l1.dy * l2.dx;
|
|
@@ -4447,9 +4474,11 @@ function projectPointOnCurve2d(curve, x, y) {
|
|
|
4447
4474
|
bestT = t;
|
|
4448
4475
|
}
|
|
4449
4476
|
}
|
|
4477
|
+
const t = refineFootPoint(basis, x, y, bestT, bFirst, bLast);
|
|
4478
|
+
const [px, py] = evaluateCurve2d$1(basis, t);
|
|
4450
4479
|
return {
|
|
4451
|
-
param:
|
|
4452
|
-
distance: Math.sqrt(
|
|
4480
|
+
param: t,
|
|
4481
|
+
distance: Math.sqrt((px - x) ** 2 + (py - y) ** 2)
|
|
4453
4482
|
};
|
|
4454
4483
|
};
|
|
4455
4484
|
if (c.__bk2d === "trimmed") {
|
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-B23RqugN.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-DlG5oR0X.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-Cn7_bmux.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-H4ZOpRAk.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-DJT3SnGK.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
3
3
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
4
4
|
// src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DAz6aAnJ.js";
|
|
2
|
+
import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-BfYdGOJc.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
4
4
|
// src/topology/metadata/originTrackingFns.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-CXkecqMw.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-BWbqhbyv.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-CwG_RPdZ.cjs");
|
|
7
7
|
// src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
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-DAz6aAnJ.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-BfOuvfyp.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-iraOnb2p.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-8xytLt8-.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-BO96DMCH.js";
|
|
7
7
|
// src/topology/transformFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -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-DAz6aAnJ.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, S as subShapeCount } from "./topologyQueryFns-
|
|
4
|
+
import { E as kernelCallRaw, S as subShapeCount } from "./topologyQueryFns-BfYdGOJc.js";
|
|
5
5
|
import { r as vecCross } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { f as getCachedMeasurement, p as setCachedMeasurement } from "./measureFns-
|
|
6
|
+
import { f as getCachedMeasurement, p as setCachedMeasurement } from "./measureFns-1IfNe629.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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.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-xh11vEQw.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_measureFns = require("./measureFns-Ce01LVwq.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
|
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-x3L6dtA8.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-DZOI_ewG.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-De0Z_6iV.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-B8PqO4um.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-BQ6XMFcm.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-BY10jciz.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-DAz6aAnJ.js";
|
|
2
|
+
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-BfYdGOJc.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-7eHqNM0P.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-BCgegapL.js";
|
|
6
|
+
import { n as measureArea, s as measureLength } from "./measureFns-1IfNe629.js";
|
|
7
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-54UTqtan.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-DJT3SnGK.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BjmlYcc9.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-BbXqiNqY.cjs");
|
|
6
|
+
const require_measureFns = require("./measureFns-Ce01LVwq.cjs");
|
|
7
|
+
const require_adjacencyFns = require("./adjacencyFns-C_Vb1AeW.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
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DAz6aAnJ.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-BfYdGOJc.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
5
|
// src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DJT3SnGK.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-xh11vEQw.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
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-BZdUlv9f.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-BG3JGs--.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as scaleCurve2d$2, D as quickHull, E as translateCurve2d$2, M as OCCT_CAPABILITIES, O as UnsupportedKernelOperationError, S as rotateCurve2d$2, T as tangentCurve2d, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as EXACT_BREP_CAPABILITIES, k as isUnsupportedKernelOperationError, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as serializeCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-
|
|
1
|
+
import { C as scaleCurve2d$2, D as quickHull, E as translateCurve2d$2, M as OCCT_CAPABILITIES, O as UnsupportedKernelOperationError, S as rotateCurve2d$2, T as tangentCurve2d, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as EXACT_BREP_CAPABILITIES, k as isUnsupportedKernelOperationError, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as serializeCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-ipKUdNLN.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At } from "./bug-ClMTAJhe.js";
|
|
3
3
|
// src/kernel/quality.ts
|
|
4
4
|
/**
|
|
@@ -26,20 +26,25 @@ export declare function sketchWires(sketch: Sketch): Wire;
|
|
|
26
26
|
/**
|
|
27
27
|
* Revolve a sketch around an axis to produce a solid of revolution.
|
|
28
28
|
*
|
|
29
|
+
* Accepts anything `Drawing.sketchOnPlane` returns: a profile with holes or
|
|
30
|
+
* several profiles revolves each one and returns them as a compound.
|
|
31
|
+
*
|
|
29
32
|
* @remarks Consumes the sketch — calling twice throws on the second call.
|
|
30
33
|
*/
|
|
31
|
-
export declare function sketchRevolve(sketch:
|
|
34
|
+
export declare function sketchRevolve(sketch: SketchInterface, revolutionAxis?: PointInput, config?: {
|
|
32
35
|
origin?: PointInput;
|
|
33
36
|
}): Shape3D;
|
|
34
37
|
/**
|
|
35
38
|
* Extrude a sketch to a given distance.
|
|
36
39
|
*
|
|
37
40
|
* Supports profile (taper) extrusion via `extrusionProfile`, twist extrusion
|
|
38
|
-
* via `twistAngle`, and direction/origin overrides.
|
|
41
|
+
* via `twistAngle`, and direction/origin overrides. Accepts anything
|
|
42
|
+
* `Drawing.sketchOnPlane` returns: a profile with holes or several profiles
|
|
43
|
+
* extrudes each one and returns them as a compound.
|
|
39
44
|
*
|
|
40
45
|
* @remarks Consumes the sketch — calling twice throws on the second call.
|
|
41
46
|
*/
|
|
42
|
-
export declare function sketchExtrude(sketch:
|
|
47
|
+
export declare function sketchExtrude(sketch: SketchInterface, extrusionDistance: number, config?: {
|
|
43
48
|
extrusionDirection?: PointInput;
|
|
44
49
|
extrusionProfile?: ExtrusionProfile;
|
|
45
50
|
twistAngle?: number;
|
|
@@ -66,4 +66,10 @@ export default class Sketches implements SketchInterface {
|
|
|
66
66
|
revolve(revolutionAxis?: PointInput, config?: {
|
|
67
67
|
origin?: PointInput;
|
|
68
68
|
}): Compound;
|
|
69
|
+
/**
|
|
70
|
+
* Combine per-profile results into one compound (which holds its own references) and
|
|
71
|
+
* release what the profiles leave behind: a `Sketch` deletes itself when extruded or
|
|
72
|
+
* revolved, but a `CompoundSketch` leaves its wires to the caller.
|
|
73
|
+
*/
|
|
74
|
+
private consumeInto;
|
|
69
75
|
}
|
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-W9yON-UC.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-C7zAvera.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-DHfYmLtP.cjs");
|
|
5
5
|
// 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 Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-Cr0Lr1Dq.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-DjnU3fEd.js";
|
|
3
|
+
import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-Dhe8_Uvc.js";
|
|
4
4
|
// src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|