brepjs 18.81.1 → 18.82.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/{blueprint-BQmmwEKa.js → blueprint-DYSvNd4o.js} +5 -5
- package/dist/{blueprint-B59GQsSD.cjs → blueprint-nc1fOuKL.cjs} +5 -5
- package/dist/{blueprintFns-DSK1nrwo.js → blueprintFns-BCwcL8yU.js} +2 -2
- package/dist/{blueprintFns-C1kKA5qn.cjs → blueprintFns-DfWBxCq0.cjs} +2 -2
- package/dist/{blueprintSketcher-BJPBKhF3.cjs → blueprintSketcher-B-3xs7WQ.cjs} +3 -3
- package/dist/{blueprintSketcher-EYqKWQh0.js → blueprintSketcher-CAW_XLlt.js} +3 -3
- package/dist/{boolean2D-COHH5tLX.js → boolean2D-DNJmkzwX.js} +4 -4
- package/dist/{boolean2D-B1Di3Bpn.cjs → boolean2D-KbMyZhkl.cjs} +4 -4
- package/dist/brepjs.cjs +28 -25
- package/dist/brepjs.js +26 -26
- package/dist/{cameraFns-BZ_8L3gd.cjs → cameraFns-B6TZAVBS.cjs} +2 -2
- package/dist/{cameraFns-BMrhkkOV.js → cameraFns-DVHzAi9k.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-Fi7obttG.js → cornerFinder-CTjcdE3-.js} +1 -1
- package/dist/{cornerFinder-Ey3oibK1.cjs → cornerFinder-_Ob4SRyO.cjs} +1 -1
- package/dist/{curveFns-Ca59CNS0.cjs → curveFns-DbD2YJ13.cjs} +1 -1
- package/dist/{curveFns-CoD5E2Vl.js → curveFns-sKYw6m8M.js} +1 -1
- package/dist/{drawFns-D_LwehLr.js → drawFns-CEPVoNO2.js} +12 -12
- package/dist/{drawFns-DTpCthM5.cjs → drawFns-QFxOvbxQ.cjs} +12 -12
- package/dist/{faceFns-Cuxdy-7R.js → faceFns-CGE7tH4w.js} +2 -2
- package/dist/{faceFns-0sI6cbHe.cjs → faceFns-lCFbFZoJ.cjs} +2 -2
- package/dist/{healingFns-Bm-NdBj_.js → healingFns-DLgqleYe.js} +5 -5
- package/dist/{healingFns--PtL9j2K.cjs → healingFns-GDygrmEZ.cjs} +5 -5
- package/dist/{helpers-B8mE35Fm.cjs → helpers-CgnVqLn7.cjs} +6 -6
- package/dist/{helpers-CD8EMZ5l.js → helpers-CmB_i8jR.js} +6 -6
- package/dist/{importFns-vnxBqXwv.js → importFns-CCf9yq82.js} +2 -2
- package/dist/{importFns-BHEgzDLw.cjs → importFns-D95ntTc4.cjs} +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{loftFns-DiSsI2PM.cjs → loftFns-B1rnJSS9.cjs} +1 -1
- package/dist/{loftFns-CsHOwded.js → loftFns-BXoTCIjU.js} +1 -1
- package/dist/{measureFns-nF-OXcDV.cjs → measureFns-BhqwziaR.cjs} +3 -3
- package/dist/{measureFns-CdcufPNp.js → measureFns-DWuQ69pP.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BCgtjlbs.js → meshFns-BpZaGQen.js} +3 -3
- package/dist/{meshFns-CnckZa6H.cjs → meshFns-asBOhb1B.cjs} +3 -3
- package/dist/{occtWasmAdapter-W86SRBpi.cjs → occtWasmAdapter-5hzzhkME.cjs} +3 -1
- package/dist/{occtWasmAdapter-BrTkhQYK.js → occtWasmAdapter-BMV179Ji.js} +3 -1
- package/dist/operations/dhFns.d.ts +34 -0
- package/dist/operations/jointFns.d.ts +7 -0
- package/dist/operations/urdfFns.d.ts +33 -0
- package/dist/operations.cjs +5 -2
- package/dist/operations.d.ts +2 -0
- package/dist/operations.js +3 -3
- package/dist/{primitiveFns-BSKbI4Kl.js → primitiveFns-BvhWliRA.js} +5 -5
- package/dist/{primitiveFns-DEBQdEkG.cjs → primitiveFns-CtlwDr67.cjs} +5 -5
- 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/{shapeFns-BzlBMNRO.js → shapeFns-BDE-a54O.js} +2 -2
- package/dist/{shapeFns-CecvqmYJ.cjs → shapeFns-B_jJcU_6.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-BDACYYRr.cjs → shapeRefFns-BoVBUAL3.cjs} +4 -4
- package/dist/{shapeRefFns-CpRRMBKz.js → shapeRefFns-CHzb4b94.js} +4 -4
- package/dist/{shapeTypes-DfQi9Kvk.js → shapeTypes-CIyYAXl9.js} +1 -1
- package/dist/{shapeTypes-DWxL75W3.cjs → shapeTypes-D7OMlW79.cjs} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-osLCTRG0.cjs → solidBuilders-CwM49RI7.cjs} +2 -2
- package/dist/{solidBuilders-DnIrQYZd.js → solidBuilders-D10YA4nh.js} +2 -2
- package/dist/{surfaceBuilders-hTXdNCYm.js → surfaceBuilders-D8mMa19A.js} +2 -2
- package/dist/{surfaceBuilders-B8aVZamB.cjs → surfaceBuilders-D_CoR7GM.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-CI3k7Izc.cjs → textBlueprints-B8qqMC0Q.cjs} +7 -7
- package/dist/{textBlueprints-BpqDGwdx.js → textBlueprints-BXMr-Bbx.js} +7 -7
- package/dist/{textMetrics-C4RrG9jL.cjs → textMetrics-CMDiXmaV.cjs} +1 -1
- package/dist/{textMetrics-kFw-DE2w.js → textMetrics-Duye7Kw_.js} +1 -1
- package/dist/{threadFns-By0Gy2f9.cjs → threadFns-BvoPZ4ei.cjs} +281 -8
- package/dist/{threadFns-YzJhd0Kz.js → threadFns-D5dsDFQ5.js} +265 -10
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-DfOxu8tG.cjs → topologyQueryFns-BQq-qkqb.cjs} +1 -1
- package/dist/{topologyQueryFns-CqjEReSt.js → topologyQueryFns-DIKovx5V.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-B_jJcU_6.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-CtlwDr67.cjs");
|
|
9
9
|
//#region src/topology/threeHelpers.ts
|
|
10
10
|
/**
|
|
11
11
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
9
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-B_jJcU_6.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-DbD2YJ13.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-BhqwziaR.cjs");
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Z as getKernel, p as isFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, p as isFace } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.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-DIKovx5V.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
6
|
-
import { l as normalAt, s as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-
|
|
9
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-CGE7tH4w.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-BDE-a54O.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-sKYw6m8M.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-DWuQ69pP.js";
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
5
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
5
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DYSvNd4o.js";
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-nc1fOuKL.cjs");
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export { createAssemblyNode, addChild, removeChild, updateNode, findNode, walkAs
|
|
|
123
123
|
export { addMate, solveAssembly, type MateConstraint, type MateEntity, type AssemblySolveResult, } from './operations/mateFns.js';
|
|
124
124
|
export { revoluteJoint, prismaticJoint, cylindricalJoint, planarJoint, sphericalJoint, setJointValue, setJointValues, jointTransform, addJoint, forwardKinematics, mechanismDOF, type Joint, type JointDOF, type JointAxis, type JointType, type JointPose, type JointOptions, type CylindricalOptions, type PlanarOptions, type SphericalOptions, } from './operations/jointFns.js';
|
|
125
125
|
export { inverseKinematics, jointTrajectory, type IKTarget, type IKOptions, type IKResult, type TrajectorySample, } from './operations/ikFns.js';
|
|
126
|
+
export { jointsFromDH, type DHRow, type DHOptions } from './operations/dhFns.js';
|
|
127
|
+
export { exportURDF, importURDF, type UrdfExportOptions, type UrdfDocument, } from './operations/urdfFns.js';
|
|
126
128
|
export { createHistory, addStep, undoLast, findStep, getShape as getHistoryShape, stepCount, stepsFrom, registerShape, createRegistry, registerOperation, replayHistory, replayFrom, modifyStep, serializeHistory, deserializeHistory, type OperationStep, type ModelHistory, type SerializedHistory, type OperationFn, type OperationRegistry as HistoryOperationRegistry, } from './operations/historyFns.js';
|
|
127
129
|
export { measureVolume, measureArea, measureLength, measureDistance, measureDistanceProps, createDistanceQuery, measureVolumeProps, measureSurfaceProps, measureLinearProps, type PhysicalProps, type VolumeProps, type SurfaceProps, type LinearProps, type DistanceProps, measureCurvatureAt, measureCurvatureAtMid, type CurvatureResult, } from './measurement/measureFns.js';
|
|
128
130
|
export { checkInterference, checkAllInterferences, type InterferenceResult, type InterferencePair, } from './measurement/interferenceFns.js';
|
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-asBOhb1B.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-D95ntTc4.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-BpZaGQen.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-CCf9yq82.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -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-5hzzhkME.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
import { t as OcctWasmAdapter } from "../../occtWasmAdapter-BMV179Ji.js";
|
|
2
2
|
export { OcctWasmAdapter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { w as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { w as kernelCallRaw } from "./topologyQueryFns-DIKovx5V.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-CGE7tH4w.js";
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-BhqwziaR.cjs");
|
|
3
3
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
4
4
|
exports.measureArea = require_measureFns.measureArea;
|
|
5
5
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-DWuQ69pP.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-DIKovx5V.js";
|
|
4
|
+
import { O as getFaceOrigins } from "./shapeFns-BDE-a54O.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-B_jJcU_6.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -3225,7 +3225,9 @@ function makeHelixWire(k, pitch, height, radius, center, direction) {
|
|
|
3225
3225
|
const dx = direction ? direction[0] : 0;
|
|
3226
3226
|
const dy = direction ? direction[1] : 0;
|
|
3227
3227
|
const dz = direction ? direction[2] : 1;
|
|
3228
|
-
|
|
3228
|
+
const wireId = k.makeHelixWire(px, py, pz, dx, dy, dz, pitch, height, radius);
|
|
3229
|
+
k.buildCurves3d(wireId);
|
|
3230
|
+
return handle("wire", wireId);
|
|
3229
3231
|
}
|
|
3230
3232
|
function makeCompound(k, Module, shapes) {
|
|
3231
3233
|
const vec = makeVecU32(Module, shapes.map(unwrap));
|
|
@@ -3225,7 +3225,9 @@ function makeHelixWire(k, pitch, height, radius, center, direction) {
|
|
|
3225
3225
|
const dx = direction ? direction[0] : 0;
|
|
3226
3226
|
const dy = direction ? direction[1] : 0;
|
|
3227
3227
|
const dz = direction ? direction[2] : 1;
|
|
3228
|
-
|
|
3228
|
+
const wireId = k.makeHelixWire(px, py, pz, dx, dy, dz, pitch, height, radius);
|
|
3229
|
+
k.buildCurves3d(wireId);
|
|
3230
|
+
return handle("wire", wireId);
|
|
3229
3231
|
}
|
|
3230
3232
|
function makeCompound(k, Module, shapes) {
|
|
3231
3233
|
const vec = makeVecU32(Module, shapes.map(unwrap));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Joint } from './jointFns.js';
|
|
2
|
+
/** One row of a Denavit-Hartenberg table (angles in degrees). */
|
|
3
|
+
export interface DHRow {
|
|
4
|
+
/** Link length: translation along the (rotated) x axis. */
|
|
5
|
+
readonly a: number;
|
|
6
|
+
/** Link twist: rotation about the x axis, in degrees. */
|
|
7
|
+
readonly alpha: number;
|
|
8
|
+
/** Link offset: translation along the z axis. For prismatic, the home offset. */
|
|
9
|
+
readonly d: number;
|
|
10
|
+
/** Joint angle about z, in degrees. For revolute, the home angle. */
|
|
11
|
+
readonly theta: number;
|
|
12
|
+
/** Which parameter is the joint variable. Default `'revolute'` (θ varies). */
|
|
13
|
+
readonly type?: 'revolute' | 'prismatic';
|
|
14
|
+
/** Joint range lower bound (degrees for revolute, length for prismatic). */
|
|
15
|
+
readonly min?: number;
|
|
16
|
+
/** Joint range upper bound. */
|
|
17
|
+
readonly max?: number;
|
|
18
|
+
/** Initial joint value (clamped to range). Default 0. */
|
|
19
|
+
readonly value?: number;
|
|
20
|
+
/** Child link name produced by this row. Default `link{i+1}`. */
|
|
21
|
+
readonly name?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DHOptions {
|
|
24
|
+
/** Name of the base (root) link. Default `'base'`. */
|
|
25
|
+
base?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Build a serial revolute/prismatic joint chain from a DH table. Joint `i`
|
|
29
|
+
* connects the previous link to row `i`'s link; its motion is the variable
|
|
30
|
+
* parameter (θ for revolute, d for prismatic) about/along +z, and its fixed
|
|
31
|
+
* link geometry is carried on `Joint.offset`. The result drives correctly
|
|
32
|
+
* through `forwardKinematics` and reports `rows.length` DOF via `mechanismDOF`.
|
|
33
|
+
*/
|
|
34
|
+
export declare function jointsFromDH(rows: readonly DHRow[], options?: DHOptions): Joint[];
|
|
@@ -32,6 +32,13 @@ export interface Joint {
|
|
|
32
32
|
readonly value: number;
|
|
33
33
|
/** All drivable degrees of freedom, in composition order. */
|
|
34
34
|
readonly dofs: readonly JointDOF[];
|
|
35
|
+
/**
|
|
36
|
+
* Optional fixed transform applied to the child frame *after* the joint
|
|
37
|
+
* motion (`childWorld = parentWorld ∘ jointTransform ∘ offset`). Lets a single
|
|
38
|
+
* joint carry a static link offset (e.g. a Denavit-Hartenberg link geometry)
|
|
39
|
+
* without an extra body. Defaults to identity. See `jointsFromDH`.
|
|
40
|
+
*/
|
|
41
|
+
readonly offset?: JointPose;
|
|
35
42
|
}
|
|
36
43
|
/** A rigid transform: translation + quaternion rotation `[w, x, y, z]`. */
|
|
37
44
|
export interface JointPose {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Result } from '../core/result.js';
|
|
2
|
+
import { AssemblyNode } from './assemblyFns.js';
|
|
3
|
+
import { Joint } from './jointFns.js';
|
|
4
|
+
export interface UrdfExportOptions {
|
|
5
|
+
/** `<robot name="...">`. Default `'robot'`. */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** Default `effort` limit emitted for every joint. Default 0. */
|
|
8
|
+
effort?: number;
|
|
9
|
+
/** Default `velocity` limit emitted for every joint. Default 0. */
|
|
10
|
+
velocity?: number;
|
|
11
|
+
/** Per-link mesh filename for a `<visual>` reference, keyed by node name. */
|
|
12
|
+
meshes?: Readonly<Record<string, string>>;
|
|
13
|
+
}
|
|
14
|
+
export interface UrdfDocument {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly links: string[];
|
|
17
|
+
readonly joints: Joint[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Serialize an assembly's links and revolute/prismatic joints to a URDF string.
|
|
21
|
+
* Returns an error if any joint is multi-DOF or carries a fixed `offset`, since
|
|
22
|
+
* URDF cannot represent those as a single joint.
|
|
23
|
+
*/
|
|
24
|
+
export declare function exportURDF(assembly: AssemblyNode, options?: UrdfExportOptions): Result<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Parse a URDF document into its robot name, link names, and revolute/prismatic
|
|
27
|
+
* joints. `continuous` joints become revolute with a full -180..180 range;
|
|
28
|
+
* `fixed`/`floating`/`planar` joints are skipped (their links are still listed).
|
|
29
|
+
* A non-zero `<origin rpy>` is folded into the joint axis direction; its
|
|
30
|
+
* residual frame rotation is not represented (URDF's pre-motion frame offset has
|
|
31
|
+
* no single-joint brepjs equivalent).
|
|
32
|
+
*/
|
|
33
|
+
export declare function importURDF(xml: string): Result<UrdfDocument>;
|
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-BvoPZ4ei.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-B1rnJSS9.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
|
@@ -14,14 +14,17 @@ exports.createHistory = require_threadFns.createHistory;
|
|
|
14
14
|
exports.createRegistry = require_threadFns.createRegistry;
|
|
15
15
|
exports.cylindricalJoint = require_threadFns.cylindricalJoint;
|
|
16
16
|
exports.exportAssemblySTEP = require_threadFns.exportAssemblySTEP;
|
|
17
|
+
exports.exportURDF = require_threadFns.exportURDF;
|
|
17
18
|
exports.findNode = require_threadFns.findNode;
|
|
18
19
|
exports.findStep = require_threadFns.findStep;
|
|
19
20
|
exports.forwardKinematics = require_threadFns.forwardKinematics;
|
|
20
21
|
exports.getHistoryShape = require_threadFns.getShape;
|
|
21
22
|
exports.gridPattern = require_threadFns.gridPattern;
|
|
23
|
+
exports.importURDF = require_threadFns.importURDF;
|
|
22
24
|
exports.inverseKinematics = require_threadFns.inverseKinematics;
|
|
23
25
|
exports.jointTrajectory = require_threadFns.jointTrajectory;
|
|
24
26
|
exports.jointTransform = require_threadFns.jointTransform;
|
|
27
|
+
exports.jointsFromDH = require_threadFns.jointsFromDH;
|
|
25
28
|
exports.linearPattern = require_threadFns.linearPattern;
|
|
26
29
|
exports.mechanismDOF = require_threadFns.mechanismDOF;
|
|
27
30
|
exports.modifyStep = require_threadFns.modifyStep;
|
package/dist/operations.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export { linearPattern, circularPattern, gridPattern } from './operations/patter
|
|
|
12
12
|
export { createAssemblyNode, addChild, removeChild, updateNode, findNode, walkAssembly, countNodes, collectShapes, type AssemblyNode, type AssemblyNodeOptions, } from './operations/assemblyFns.js';
|
|
13
13
|
export { revoluteJoint, prismaticJoint, cylindricalJoint, planarJoint, sphericalJoint, setJointValue, setJointValues, jointTransform, addJoint, forwardKinematics, mechanismDOF, type Joint, type JointDOF, type JointAxis, type JointType, type JointPose, type JointOptions, type CylindricalOptions, type PlanarOptions, type SphericalOptions, } from './operations/jointFns.js';
|
|
14
14
|
export { inverseKinematics, jointTrajectory, type IKTarget, type IKOptions, type IKResult, type TrajectorySample, } from './operations/ikFns.js';
|
|
15
|
+
export { jointsFromDH, type DHRow, type DHOptions } from './operations/dhFns.js';
|
|
16
|
+
export { exportURDF, importURDF, type UrdfExportOptions, type UrdfDocument, } from './operations/urdfFns.js';
|
|
15
17
|
export { exportAssemblySTEP, type ShapeOptions, type SupportedUnit, } from './operations/exporterFns.js';
|
|
16
18
|
export { createHistory, addStep, undoLast, findStep, getShape as getHistoryShape, stepCount, stepsFrom, registerShape, createRegistry, registerOperation, replayHistory, replayFrom, modifyStep, type OperationStep, type ModelHistory, type OperationFn, type OperationRegistry as HistoryOperationRegistry, } from './operations/historyFns.js';
|
|
17
19
|
export { type AssemblyExporter, createAssembly } from './operations/exporters.js';
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-
|
|
3
|
-
export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, inverseKinematics, jointTrajectory, jointTransform, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
1
|
+
import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as gridPattern, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, O as prismaticJoint, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as exportAssemblySTEP, 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 createAssemblyNode } from "./threadFns-D5dsDFQ5.js";
|
|
2
|
+
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-BXoTCIjU.js";
|
|
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,13 +1,13 @@
|
|
|
1
|
-
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, x as isClosedWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, x as isClosedWire } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DIKovx5V.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-DSjjtrjg.js";
|
|
7
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate, v as propagateMetadataByHash } from "./shapeFns-
|
|
7
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate, v as propagateMetadataByHash } from "./shapeFns-BDE-a54O.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
9
|
-
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-
|
|
10
|
-
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-
|
|
9
|
+
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-D8mMa19A.js";
|
|
10
|
+
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-D10YA4nh.js";
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
+
const require_shapeFns = require("./shapeFns-B_jJcU_6.cjs");
|
|
8
8
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
9
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
9
|
+
const require_surfaceBuilders = require("./surfaceBuilders-D_CoR7GM.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-CwM49RI7.cjs");
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
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-B6TZAVBS.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-
|
|
1
|
+
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-DVHzAi9k.js";
|
|
2
2
|
export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-CgnVqLn7.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-_Ob4SRyO.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-CmB_i8jR.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-CTjcdE3-.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-DIKovx5V.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
2
|
+
const require_shapeRefFns = require("./shapeRefFns-BoVBUAL3.cjs");
|
|
3
3
|
exports.assignRoles = require_shapeRefFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_shapeRefFns.captureHint;
|
|
5
5
|
exports.createRef = require_shapeRefFns.createRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
1
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CHzb4b94.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BQq-qkqb.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-B_jJcU_6.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-BhqwziaR.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
2
|
-
import { c as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns-
|
|
2
|
+
import { c as getFaces } from "./topologyQueryFns-DIKovx5V.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-CGE7tH4w.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-BDE-a54O.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-DWuQ69pP.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-
|
|
1
|
+
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-BMV179Ji.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err } from "./errors-DNWJsfVU.js";
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-5hzzhkME.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
//#region src/kernel/quality.ts
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-B8qqMC0Q.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-B-3xs7WQ.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-QFxOvbxQ.cjs");
|
|
5
5
|
//#region src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-CAW_XLlt.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-CEPVoNO2.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-BXMr-Bbx.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, v as downcast } from "./faceFns-
|
|
3
|
+
import { _ as cast, v as downcast } from "./faceFns-CGE7tH4w.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CIyYAXl9.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { _ as cast, u as outerWire } from "./faceFns-CGE7tH4w.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D7OMlW79.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-lCFbFZoJ.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|