brepjs 14.6.7 → 14.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d.cjs +5 -5
- package/dist/2d.js +5 -5
- package/dist/{blueprint-D1zPwJzN.js → blueprint-CXGeX_im.js} +5 -5
- package/dist/{blueprint-C5zjB7B8.cjs → blueprint-D6P4Ptwc.cjs} +5 -5
- package/dist/{blueprintFns-Brh8X6x_.js → blueprintFns-C1Q9BZYN.js} +2 -2
- package/dist/{blueprintFns-oByokviU.cjs → blueprintFns-CRi0AJY2.cjs} +2 -2
- package/dist/{boolean2D-DmVCEfck.js → boolean2D-COhGEabH.js} +7 -7
- package/dist/{boolean2D-CdxtSQIR.cjs → boolean2D-D9bNqIv5.cjs} +7 -7
- package/dist/{booleanFns-BWnQXyY4.cjs → booleanFns-Bu_HczH1.cjs} +3 -3
- package/dist/{booleanFns-BMoG3ozh.js → booleanFns-DlfB8aNN.js} +3 -3
- package/dist/brepjs.cjs +19 -19
- package/dist/brepjs.js +19 -19
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-C1MowTd-.js → cornerFinder-BqrHP-yL.js} +1 -1
- package/dist/{cornerFinder-BIkoCqfS.cjs → cornerFinder-i4Y7Nrjy.cjs} +1 -1
- package/dist/{curveFns-BjZlhEtk.cjs → curveFns-D5afgr58.cjs} +1 -1
- package/dist/{curveFns-B5w1Jo5U.js → curveFns-Dlg-98k2.js} +1 -1
- package/dist/{drawFns-BIOYGXhk.js → drawFns-DUF0fdFG.js} +11 -11
- package/dist/{drawFns-VuvggjC-.cjs → drawFns-NPXo-y9x.cjs} +11 -11
- package/dist/{extrudeFns-DQx46jM9.cjs → extrudeFns-Bs_h53zW.cjs} +1 -1
- package/dist/{extrudeFns-CuyDf_Cw.js → extrudeFns-SjjVWl9I.js} +1 -1
- package/dist/{faceFns-4cn9EHGV.cjs → faceFns-CAAlPCSf.cjs} +1 -1
- package/dist/{faceFns-nK7qOrt9.js → faceFns-D0Sw7UAk.js} +1 -1
- package/dist/{helpers-GsNv3oyg.js → helpers-DKA--8Ok.js} +5 -5
- package/dist/{helpers-B_w8UZX8.cjs → helpers-IGblAcXr.cjs} +5 -5
- package/dist/{historyFns-2amVKzoe.cjs → historyFns-BLfgf9Ie.cjs} +4 -4
- package/dist/{historyFns-Bi0VYMaE.js → historyFns-DeI_YWq7.js} +4 -4
- package/dist/{importFns-CTzcsvJ8.cjs → importFns-DYpRZApj.cjs} +2 -2
- package/dist/{importFns-BXhwRJTB.js → importFns-D_ilQOKc.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/{measureFns-B3Iqxhep.js → measureFns-C5T3Vj5H.js} +2 -2
- package/dist/{measureFns-CxpngqWW.cjs → measureFns-e9ClVIDp.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-Dsfiu1mZ.js → meshFns-CwXSu86J.js} +2 -2
- package/dist/{meshFns-DLZTVd08.cjs → meshFns-D8ArzEky.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-4OEfXsGu.cjs → primitiveFns-DQA2aRlf.cjs} +5 -5
- package/dist/{primitiveFns-B7xvWlpr.js → primitiveFns-taa6wmE6.js} +5 -5
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-B-3gnnEC.js → shapeFns-Binnq64f.js} +2 -2
- package/dist/{shapeFns-BXgSnKzz.cjs → shapeFns-DGlBwOIn.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CpqcUPOo.js → shapeRefFns-BHl0cJ03.js} +3 -3
- package/dist/{shapeRefFns-BlZpgF5u.cjs → shapeRefFns-BYsQFoKq.cjs} +3 -3
- package/dist/{shapeTypes-XwSAaP1N.js → shapeTypes-BoaNl7sv.js} +21 -21
- package/dist/{shapeTypes-faDucodw.cjs → shapeTypes-PA31vgl1.cjs} +21 -21
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-MtlFXT01.js → solidBuilders-CxPr8uf3.js} +2 -2
- package/dist/{solidBuilders-DtHFRQIu.cjs → solidBuilders-fwE4EhPH.cjs} +2 -2
- package/dist/{surfaceBuilders-CXkC024W.js → surfaceBuilders-CsgDDyaK.js} +2 -2
- package/dist/{surfaceBuilders-DhvLz8pI.cjs → surfaceBuilders-OZ75pZa7.cjs} +2 -2
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
4
4
|
//#region src/measurement/measureCache.ts
|
|
5
5
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
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-e9ClVIDp.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-C5T3Vj5H.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel } from "./shapeTypes-BoaNl7sv.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-Binnq64f.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-BLfgf9Ie.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-Bs_h53zW.cjs");
|
|
4
4
|
exports.addChild = require_historyFns.addChild;
|
|
5
5
|
exports.addStep = require_historyFns.addStep;
|
|
6
6
|
exports.circularPattern = require_historyFns.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
2
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-
|
|
1
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-DeI_YWq7.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-SjjVWl9I.js";
|
|
3
3
|
export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
|
|
6
|
+
const require_surfaceBuilders = require("./surfaceBuilders-OZ75pZa7.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-fwE4EhPH.cjs");
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-BoaNl7sv.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast } from "./faceFns-
|
|
3
|
+
import { _ as downcast } from "./faceFns-D0Sw7UAk.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
|
-
import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
6
|
-
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-
|
|
7
|
-
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-
|
|
5
|
+
import { I as getWires, M as getEdges, N as getFaces, P as getOrCreateCache, _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Binnq64f.js";
|
|
6
|
+
import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-CsgDDyaK.js";
|
|
7
|
+
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-CxPr8uf3.js";
|
|
8
8
|
//#region src/topology/threeHelpers.ts
|
|
9
9
|
/**
|
|
10
10
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
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-IGblAcXr.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-i4Y7Nrjy.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-DKA--8Ok.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-BqrHP-yL.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-BoaNl7sv.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { C as kernelCallRaw, S as kernelCall } from "./faceFns-
|
|
3
|
+
import { C as kernelCallRaw, S as kernelCall } from "./faceFns-D0Sw7UAk.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-B9u763C3.js";
|
|
5
5
|
//#region src/topology/topologyQueryFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
4
4
|
const require_constants = require("./constants-unWN8k4c.cjs");
|
|
5
5
|
//#region src/topology/topologyQueryFns.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-BYsQFoKq.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-BHl0cJ03.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-
|
|
2
|
-
import { N as getFaces, n as getHashCode } from "./shapeFns-
|
|
3
|
-
import { n as measureArea } from "./measureFns-
|
|
1
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-D0Sw7UAk.js";
|
|
2
|
+
import { N as getFaces, n as getHashCode } from "./shapeFns-Binnq64f.js";
|
|
3
|
+
import { n as measureArea } from "./measureFns-C5T3Vj5H.js";
|
|
4
4
|
//#region src/topology/shapeRef/scoring.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_faceFns = require("./faceFns-
|
|
2
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
-
const require_measureFns = require("./measureFns-
|
|
1
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
2
|
+
const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
|
|
3
|
+
const require_measureFns = require("./measureFns-e9ClVIDp.cjs");
|
|
4
4
|
//#region src/topology/shapeRef/scoring.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -2144,7 +2144,7 @@ function extractVertices(oc, shapes, tolerance) {
|
|
|
2144
2144
|
while (explorer.More()) {
|
|
2145
2145
|
const face = oc.TopoDS_Cast.Face(explorer.Current());
|
|
2146
2146
|
const location = new oc.TopLoc_Location_1();
|
|
2147
|
-
const tri = oc.
|
|
2147
|
+
const tri = oc.BRep_Tool_Triangulation(face, location, 0);
|
|
2148
2148
|
if (!tri.IsNull()) {
|
|
2149
2149
|
const trsf = location.Transformation();
|
|
2150
2150
|
const nbNodes = tri.get().NbNodes();
|
|
@@ -2260,7 +2260,7 @@ function hullFromPoints$1(oc, points, tolerance) {
|
|
|
2260
2260
|
//#region src/kernel/occt/geometryQueryOps.ts
|
|
2261
2261
|
/** Extract the 3D position of a vertex. */
|
|
2262
2262
|
function vertexPosition$1(oc, vertex) {
|
|
2263
|
-
const pnt = oc.
|
|
2263
|
+
const pnt = oc.BRep_Tool_Pnt(vertex);
|
|
2264
2264
|
const result = [
|
|
2265
2265
|
pnt.X(),
|
|
2266
2266
|
pnt.Y(),
|
|
@@ -2302,7 +2302,7 @@ function surfaceType$1(oc, face) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
/** Get the UV parameter bounds of a face. */
|
|
2304
2304
|
function uvBounds$1(oc, face) {
|
|
2305
|
-
const bounds = oc.
|
|
2305
|
+
const bounds = oc.BRepTools_UVBounds(face);
|
|
2306
2306
|
return {
|
|
2307
2307
|
uMin: bounds.UMin,
|
|
2308
2308
|
uMax: bounds.UMax,
|
|
@@ -2312,7 +2312,7 @@ function uvBounds$1(oc, face) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
/** Get the outer wire of a face. */
|
|
2314
2314
|
function outerWire$1(oc, face) {
|
|
2315
|
-
return oc.
|
|
2315
|
+
return oc.BRepTools_OuterWire(face);
|
|
2316
2316
|
}
|
|
2317
2317
|
/** Get the surface normal at a UV parameter on a face. */
|
|
2318
2318
|
function surfaceNormal$1(oc, face, u, v) {
|
|
@@ -2346,7 +2346,7 @@ function pointOnSurface$1(oc, face, u, v) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
/** Project a 3D point onto a face and return UV coordinates. Null if projection fails. */
|
|
2348
2348
|
function uvFromPoint$1(oc, face, point) {
|
|
2349
|
-
const surface = oc.
|
|
2349
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
2350
2350
|
const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
|
|
2351
2351
|
const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
|
|
2352
2352
|
let result = null;
|
|
@@ -2360,7 +2360,7 @@ function uvFromPoint$1(oc, face, point) {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
/** Project a 3D point onto a face and return the closest 3D point. */
|
|
2362
2362
|
function projectPointOnFace$1(oc, face, point) {
|
|
2363
|
-
const surface = oc.
|
|
2363
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
2364
2364
|
const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
|
|
2365
2365
|
const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
|
|
2366
2366
|
let result;
|
|
@@ -2516,7 +2516,7 @@ function hasTriangulation$1(oc, shape) {
|
|
|
2516
2516
|
let found = false;
|
|
2517
2517
|
while (explorer.More()) {
|
|
2518
2518
|
const face = oc.TopoDS_Cast.Face(explorer.Current());
|
|
2519
|
-
if (!oc.
|
|
2519
|
+
if (!oc.BRep_Tool_Triangulation(face, loc, 0).IsNull()) {
|
|
2520
2520
|
found = true;
|
|
2521
2521
|
break;
|
|
2522
2522
|
}
|
|
@@ -2912,7 +2912,7 @@ function makeHelixWire$1(oc, pitch, height, radius, center = [
|
|
|
2912
2912
|
const handleSurf = new oc.Handle_Geom_Surface_2(geomSurf);
|
|
2913
2913
|
const edgeMaker = new oc.BRepBuilderAPI_MakeEdge_30(handle2dCurve, handleSurf);
|
|
2914
2914
|
const e = edgeMaker.Edge();
|
|
2915
|
-
oc.
|
|
2915
|
+
oc.BRepLib_BuildCurves3d(e);
|
|
2916
2916
|
const wireMaker = new oc.BRepBuilderAPI_MakeWire_2(e);
|
|
2917
2917
|
const wire = wireMaker.Wire();
|
|
2918
2918
|
wireMaker.delete();
|
|
@@ -2978,7 +2978,7 @@ function makeEllipsoidSolid(oc, aLength, bLength, cLength) {
|
|
|
2978
2978
|
const sphere = new oc.gp_Sphere_1();
|
|
2979
2979
|
sphere.SetRadius(1);
|
|
2980
2980
|
const sphericalSurface = new oc.Geom_SphericalSurface_2(sphere);
|
|
2981
|
-
const baseSurface = oc.
|
|
2981
|
+
const baseSurface = oc.GeomConvert_SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
|
|
2982
2982
|
sphere.delete();
|
|
2983
2983
|
sphericalSurface.delete();
|
|
2984
2984
|
try {
|
|
@@ -3055,8 +3055,8 @@ function exportSTEPAssembly$1(oc, parts, options = {}) {
|
|
|
3055
3055
|
const doc = new oc.TDocStd_Document(nameStr);
|
|
3056
3056
|
nameStr.delete();
|
|
3057
3057
|
const mainLabel = doc.Main();
|
|
3058
|
-
const shapeTool = oc.
|
|
3059
|
-
const colorTool = oc.
|
|
3058
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
3059
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
3060
3060
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
3061
3061
|
for (const part of parts) {
|
|
3062
3062
|
const shapeNode = shapeTool.AddShape(part.shape, false, true);
|
|
@@ -3777,7 +3777,7 @@ function buildEdgeOnSurface$1(oc, curve, surface) {
|
|
|
3777
3777
|
return edge;
|
|
3778
3778
|
}
|
|
3779
3779
|
function extractSurfaceFromFace$1(oc, face) {
|
|
3780
|
-
return oc.
|
|
3780
|
+
return oc.BRep_Tool_Surface(face);
|
|
3781
3781
|
}
|
|
3782
3782
|
function extractCurve2dFromEdge$1(oc, edge, face) {
|
|
3783
3783
|
const adaptor = new oc.BRepAdaptor_Curve2d_2(edge, face);
|
|
@@ -3789,7 +3789,7 @@ function extractCurve2dFromEdge$1(oc, edge, face) {
|
|
|
3789
3789
|
return new oc.Handle_Geom2d_Curve_2(trimmed);
|
|
3790
3790
|
}
|
|
3791
3791
|
function buildCurves3d$1(oc, wire) {
|
|
3792
|
-
oc.
|
|
3792
|
+
oc.BRepLib_BuildCurves3d(wire);
|
|
3793
3793
|
}
|
|
3794
3794
|
function fixWireOnFace$1(oc, wire, face, tolerance) {
|
|
3795
3795
|
const fixer = new oc.ShapeFix_Wire_2(wire, face, tolerance);
|
|
@@ -4234,8 +4234,8 @@ function addHolesInFace$1(oc, face, holeWires) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
/** Remove all inner wires (holes) from a face. Returns a new face with only the outer boundary. */
|
|
4236
4236
|
function removeHolesFromFace$1(oc, face) {
|
|
4237
|
-
const outerWire = oc.
|
|
4238
|
-
const surface = oc.
|
|
4237
|
+
const outerWire = oc.BRepTools_OuterWire(face);
|
|
4238
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
4239
4239
|
try {
|
|
4240
4240
|
const maker = new oc.BRepBuilderAPI_MakeFace_21(surface, outerWire, true);
|
|
4241
4241
|
const result = maker.Face();
|
|
@@ -4257,7 +4257,7 @@ function makeFaceOnSurface$1(oc, surfaceOrFace, wire) {
|
|
|
4257
4257
|
let surfaceOwned = false;
|
|
4258
4258
|
try {
|
|
4259
4259
|
if (surfaceOrFace.ShapeType !== void 0) {
|
|
4260
|
-
surface = oc.
|
|
4260
|
+
surface = oc.BRep_Tool_Surface(surfaceOrFace);
|
|
4261
4261
|
surfaceOwned = true;
|
|
4262
4262
|
}
|
|
4263
4263
|
} catch {}
|
|
@@ -4572,7 +4572,7 @@ function projectEdges$1(oc, shape, cameraOrigin, cameraDirection, cameraXAxis) {
|
|
|
4572
4572
|
group.outline,
|
|
4573
4573
|
group.smooth,
|
|
4574
4574
|
group.sharp
|
|
4575
|
-
]) if (!s.IsNull()) oc.
|
|
4575
|
+
]) if (!s.IsNull()) oc.BRepLib_BuildCurves3d(s);
|
|
4576
4576
|
hlrShapes.delete();
|
|
4577
4577
|
hlrHandle.delete();
|
|
4578
4578
|
projector.delete();
|
|
@@ -4602,8 +4602,8 @@ function createXCAFDocument$1(oc, shapes) {
|
|
|
4602
4602
|
nameStr.delete();
|
|
4603
4603
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
4604
4604
|
const mainLabel = doc.Main();
|
|
4605
|
-
const shapeTool = oc.
|
|
4606
|
-
const colorTool = oc.
|
|
4605
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
4606
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
4607
4607
|
for (const part of shapes) {
|
|
4608
4608
|
const shapeNode = shapeTool.NewShape();
|
|
4609
4609
|
shapeTool.SetShape(shapeNode, part.shape);
|
|
@@ -4672,8 +4672,8 @@ function exportSTEPConfigured$1(oc, shapes, options = {}) {
|
|
|
4672
4672
|
const doc = new oc.TDocStd_Document(nameStr);
|
|
4673
4673
|
nameStr.delete();
|
|
4674
4674
|
const mainLabel = doc.Main();
|
|
4675
|
-
const shapeTool = oc.
|
|
4676
|
-
const colorTool = oc.
|
|
4675
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
4676
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
4677
4677
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
4678
4678
|
for (const part of shapes) {
|
|
4679
4679
|
const shapeNode = shapeTool.AddShape(part.shape, false, true);
|
|
@@ -2144,7 +2144,7 @@ function extractVertices(oc, shapes, tolerance) {
|
|
|
2144
2144
|
while (explorer.More()) {
|
|
2145
2145
|
const face = oc.TopoDS_Cast.Face(explorer.Current());
|
|
2146
2146
|
const location = new oc.TopLoc_Location_1();
|
|
2147
|
-
const tri = oc.
|
|
2147
|
+
const tri = oc.BRep_Tool_Triangulation(face, location, 0);
|
|
2148
2148
|
if (!tri.IsNull()) {
|
|
2149
2149
|
const trsf = location.Transformation();
|
|
2150
2150
|
const nbNodes = tri.get().NbNodes();
|
|
@@ -2260,7 +2260,7 @@ function hullFromPoints$1(oc, points, tolerance) {
|
|
|
2260
2260
|
//#region src/kernel/occt/geometryQueryOps.ts
|
|
2261
2261
|
/** Extract the 3D position of a vertex. */
|
|
2262
2262
|
function vertexPosition$1(oc, vertex) {
|
|
2263
|
-
const pnt = oc.
|
|
2263
|
+
const pnt = oc.BRep_Tool_Pnt(vertex);
|
|
2264
2264
|
const result = [
|
|
2265
2265
|
pnt.X(),
|
|
2266
2266
|
pnt.Y(),
|
|
@@ -2302,7 +2302,7 @@ function surfaceType$1(oc, face) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
/** Get the UV parameter bounds of a face. */
|
|
2304
2304
|
function uvBounds$1(oc, face) {
|
|
2305
|
-
const bounds = oc.
|
|
2305
|
+
const bounds = oc.BRepTools_UVBounds(face);
|
|
2306
2306
|
return {
|
|
2307
2307
|
uMin: bounds.UMin,
|
|
2308
2308
|
uMax: bounds.UMax,
|
|
@@ -2312,7 +2312,7 @@ function uvBounds$1(oc, face) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
/** Get the outer wire of a face. */
|
|
2314
2314
|
function outerWire$1(oc, face) {
|
|
2315
|
-
return oc.
|
|
2315
|
+
return oc.BRepTools_OuterWire(face);
|
|
2316
2316
|
}
|
|
2317
2317
|
/** Get the surface normal at a UV parameter on a face. */
|
|
2318
2318
|
function surfaceNormal$1(oc, face, u, v) {
|
|
@@ -2346,7 +2346,7 @@ function pointOnSurface$1(oc, face, u, v) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
/** Project a 3D point onto a face and return UV coordinates. Null if projection fails. */
|
|
2348
2348
|
function uvFromPoint$1(oc, face, point) {
|
|
2349
|
-
const surface = oc.
|
|
2349
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
2350
2350
|
const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
|
|
2351
2351
|
const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
|
|
2352
2352
|
let result = null;
|
|
@@ -2360,7 +2360,7 @@ function uvFromPoint$1(oc, face, point) {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
/** Project a 3D point onto a face and return the closest 3D point. */
|
|
2362
2362
|
function projectPointOnFace$1(oc, face, point) {
|
|
2363
|
-
const surface = oc.
|
|
2363
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
2364
2364
|
const pnt = new oc.gp_Pnt_3(point[0], point[1], point[2]);
|
|
2365
2365
|
const proj = new oc.GeomAPI_ProjectPointOnSurf_2(pnt, surface, oc.Extrema_ExtAlgo.Extrema_ExtAlgo_Grad);
|
|
2366
2366
|
let result;
|
|
@@ -2516,7 +2516,7 @@ function hasTriangulation$1(oc, shape) {
|
|
|
2516
2516
|
let found = false;
|
|
2517
2517
|
while (explorer.More()) {
|
|
2518
2518
|
const face = oc.TopoDS_Cast.Face(explorer.Current());
|
|
2519
|
-
if (!oc.
|
|
2519
|
+
if (!oc.BRep_Tool_Triangulation(face, loc, 0).IsNull()) {
|
|
2520
2520
|
found = true;
|
|
2521
2521
|
break;
|
|
2522
2522
|
}
|
|
@@ -2912,7 +2912,7 @@ function makeHelixWire$1(oc, pitch, height, radius, center = [
|
|
|
2912
2912
|
const handleSurf = new oc.Handle_Geom_Surface_2(geomSurf);
|
|
2913
2913
|
const edgeMaker = new oc.BRepBuilderAPI_MakeEdge_30(handle2dCurve, handleSurf);
|
|
2914
2914
|
const e = edgeMaker.Edge();
|
|
2915
|
-
oc.
|
|
2915
|
+
oc.BRepLib_BuildCurves3d(e);
|
|
2916
2916
|
const wireMaker = new oc.BRepBuilderAPI_MakeWire_2(e);
|
|
2917
2917
|
const wire = wireMaker.Wire();
|
|
2918
2918
|
wireMaker.delete();
|
|
@@ -2978,7 +2978,7 @@ function makeEllipsoidSolid(oc, aLength, bLength, cLength) {
|
|
|
2978
2978
|
const sphere = new oc.gp_Sphere_1();
|
|
2979
2979
|
sphere.SetRadius(1);
|
|
2980
2980
|
const sphericalSurface = new oc.Geom_SphericalSurface_2(sphere);
|
|
2981
|
-
const baseSurface = oc.
|
|
2981
|
+
const baseSurface = oc.GeomConvert_SurfaceToBSplineSurface(sphericalSurface.UReversed()).get();
|
|
2982
2982
|
sphere.delete();
|
|
2983
2983
|
sphericalSurface.delete();
|
|
2984
2984
|
try {
|
|
@@ -3055,8 +3055,8 @@ function exportSTEPAssembly$1(oc, parts, options = {}) {
|
|
|
3055
3055
|
const doc = new oc.TDocStd_Document(nameStr);
|
|
3056
3056
|
nameStr.delete();
|
|
3057
3057
|
const mainLabel = doc.Main();
|
|
3058
|
-
const shapeTool = oc.
|
|
3059
|
-
const colorTool = oc.
|
|
3058
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
3059
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
3060
3060
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
3061
3061
|
for (const part of parts) {
|
|
3062
3062
|
const shapeNode = shapeTool.AddShape(part.shape, false, true);
|
|
@@ -3777,7 +3777,7 @@ function buildEdgeOnSurface$1(oc, curve, surface) {
|
|
|
3777
3777
|
return edge;
|
|
3778
3778
|
}
|
|
3779
3779
|
function extractSurfaceFromFace$1(oc, face) {
|
|
3780
|
-
return oc.
|
|
3780
|
+
return oc.BRep_Tool_Surface(face);
|
|
3781
3781
|
}
|
|
3782
3782
|
function extractCurve2dFromEdge$1(oc, edge, face) {
|
|
3783
3783
|
const adaptor = new oc.BRepAdaptor_Curve2d_2(edge, face);
|
|
@@ -3789,7 +3789,7 @@ function extractCurve2dFromEdge$1(oc, edge, face) {
|
|
|
3789
3789
|
return new oc.Handle_Geom2d_Curve_2(trimmed);
|
|
3790
3790
|
}
|
|
3791
3791
|
function buildCurves3d$1(oc, wire) {
|
|
3792
|
-
oc.
|
|
3792
|
+
oc.BRepLib_BuildCurves3d(wire);
|
|
3793
3793
|
}
|
|
3794
3794
|
function fixWireOnFace$1(oc, wire, face, tolerance) {
|
|
3795
3795
|
const fixer = new oc.ShapeFix_Wire_2(wire, face, tolerance);
|
|
@@ -4234,8 +4234,8 @@ function addHolesInFace$1(oc, face, holeWires) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
/** Remove all inner wires (holes) from a face. Returns a new face with only the outer boundary. */
|
|
4236
4236
|
function removeHolesFromFace$1(oc, face) {
|
|
4237
|
-
const outerWire = oc.
|
|
4238
|
-
const surface = oc.
|
|
4237
|
+
const outerWire = oc.BRepTools_OuterWire(face);
|
|
4238
|
+
const surface = oc.BRep_Tool_Surface(face);
|
|
4239
4239
|
try {
|
|
4240
4240
|
const maker = new oc.BRepBuilderAPI_MakeFace_21(surface, outerWire, true);
|
|
4241
4241
|
const result = maker.Face();
|
|
@@ -4257,7 +4257,7 @@ function makeFaceOnSurface$1(oc, surfaceOrFace, wire) {
|
|
|
4257
4257
|
let surfaceOwned = false;
|
|
4258
4258
|
try {
|
|
4259
4259
|
if (surfaceOrFace.ShapeType !== void 0) {
|
|
4260
|
-
surface = oc.
|
|
4260
|
+
surface = oc.BRep_Tool_Surface(surfaceOrFace);
|
|
4261
4261
|
surfaceOwned = true;
|
|
4262
4262
|
}
|
|
4263
4263
|
} catch {}
|
|
@@ -4572,7 +4572,7 @@ function projectEdges$1(oc, shape, cameraOrigin, cameraDirection, cameraXAxis) {
|
|
|
4572
4572
|
group.outline,
|
|
4573
4573
|
group.smooth,
|
|
4574
4574
|
group.sharp
|
|
4575
|
-
]) if (!s.IsNull()) oc.
|
|
4575
|
+
]) if (!s.IsNull()) oc.BRepLib_BuildCurves3d(s);
|
|
4576
4576
|
hlrShapes.delete();
|
|
4577
4577
|
hlrHandle.delete();
|
|
4578
4578
|
projector.delete();
|
|
@@ -4602,8 +4602,8 @@ function createXCAFDocument$1(oc, shapes) {
|
|
|
4602
4602
|
nameStr.delete();
|
|
4603
4603
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
4604
4604
|
const mainLabel = doc.Main();
|
|
4605
|
-
const shapeTool = oc.
|
|
4606
|
-
const colorTool = oc.
|
|
4605
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
4606
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
4607
4607
|
for (const part of shapes) {
|
|
4608
4608
|
const shapeNode = shapeTool.NewShape();
|
|
4609
4609
|
shapeTool.SetShape(shapeNode, part.shape);
|
|
@@ -4672,8 +4672,8 @@ function exportSTEPConfigured$1(oc, shapes, options = {}) {
|
|
|
4672
4672
|
const doc = new oc.TDocStd_Document(nameStr);
|
|
4673
4673
|
nameStr.delete();
|
|
4674
4674
|
const mainLabel = doc.Main();
|
|
4675
|
-
const shapeTool = oc.
|
|
4676
|
-
const colorTool = oc.
|
|
4675
|
+
const shapeTool = oc.XCAFDoc_DocumentTool_ShapeTool(mainLabel).get();
|
|
4676
|
+
const colorTool = oc.XCAFDoc_DocumentTool_ColorTool(mainLabel).get();
|
|
4677
4677
|
oc.XCAFDoc_ShapeTool.SetAutoNaming(false);
|
|
4678
4678
|
for (const part of shapes) {
|
|
4679
4679
|
const shapeNode = shapeTool.AddShape(part.shape, false, true);
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_drawFns = require("./drawFns-
|
|
3
|
-
const require_boolean2D = require("./boolean2D-
|
|
2
|
+
const require_drawFns = require("./drawFns-NPXo-y9x.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-D9bNqIv5.cjs");
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-
|
|
2
|
-
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-
|
|
1
|
+
import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-COhGEabH.js";
|
|
2
|
+
import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-DUF0fdFG.js";
|
|
3
3
|
//#region src/sketching.ts
|
|
4
4
|
/**
|
|
5
5
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-BoaNl7sv.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-D0Sw7UAk.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.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 { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Y as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-BoaNl7sv.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-C-cgQA3w.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-D0Sw7UAk.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-PA31vgl1.cjs");
|
|
2
2
|
const require_errors = require("./errors-9zQcQK1H.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
4
|
-
const require_curveFns = require("./curveFns-
|
|
5
|
-
const require_meshFns = require("./meshFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
7
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_faceFns = require("./faceFns-CAAlPCSf.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DGlBwOIn.cjs");
|
|
4
|
+
const require_curveFns = require("./curveFns-D5afgr58.cjs");
|
|
5
|
+
const require_meshFns = require("./meshFns-D8ArzEky.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-Bu_HczH1.cjs");
|
|
7
|
+
const require_primitiveFns = require("./primitiveFns-DQA2aRlf.cjs");
|
|
8
8
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
9
9
|
exports.adjacentFaces = require_primitiveFns.adjacentFaces;
|
|
10
10
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-
|
|
2
|
-
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-
|
|
3
|
-
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-
|
|
4
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
5
|
-
import { a as fuseAll, r as cutAll } from "./booleanFns-
|
|
6
|
-
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-D0Sw7UAk.js";
|
|
2
|
+
import { B as iterVertices, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, R as iterEdges, V as iterWires, a as isSameShape, i as isEqualShape, j as getBounds, n as getHashCode, z as iterFaces } from "./shapeFns-Binnq64f.js";
|
|
3
|
+
import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-Dlg-98k2.js";
|
|
4
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-CwXSu86J.js";
|
|
5
|
+
import { a as fuseAll, r as cutAll } from "./booleanFns-DlfB8aNN.js";
|
|
6
|
+
import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-taa6wmE6.js";
|
|
7
7
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|