brepjs 8.1.0 → 8.2.0
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 +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-BUGSPYrj.cjs → Blueprint-CTAwjJMN.cjs} +8 -8
- package/dist/{Blueprint-B5qTpU-Q.js → Blueprint-D_luVeES.js} +8 -8
- package/dist/{boolean2D-CyX8tCE_.cjs → boolean2D-B5axNhjN.cjs} +10 -10
- package/dist/{boolean2D-KX9ZFvBj.js → boolean2D-vw76Gayn.js} +10 -10
- package/dist/{booleanFns-DGMIgJl_.js → booleanFns-BhqXpQoZ.js} +3 -3
- package/dist/{booleanFns-ND7sZvhu.cjs → booleanFns-Yc3EBxdm.cjs} +3 -3
- package/dist/brepjs.cjs +23 -18
- package/dist/brepjs.js +54 -49
- package/dist/{cast-CqDc8oFW.cjs → cast-C107o5ow.cjs} +2 -2
- package/dist/{cast-BEg1mN7n.js → cast-D0OhP1nV.js} +2 -2
- package/dist/core/types.d.ts +24 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core.cjs +3 -3
- package/dist/core.js +3 -3
- package/dist/{cornerFinder-CQCfLU9g.js → cornerFinder-CPm2baSJ.js} +1 -1
- package/dist/{cornerFinder-DfcO5DX-.cjs → cornerFinder-DuStF5jK.cjs} +1 -1
- package/dist/{curveBuilders-U26XDfxg.js → curveBuilders-CN72XaIQ.js} +2 -2
- package/dist/{curveBuilders-BjtdNw1B.cjs → curveBuilders-Du03_Yyf.cjs} +2 -2
- package/dist/{curveFns-Bjy0UBlz.cjs → curveFns-ByeCqutv.cjs} +85 -3
- package/dist/{curveFns-BIRQ0DXA.js → curveFns-C5gSZ5EY.js} +115 -33
- package/dist/{drawFns-BwNihPRU.cjs → drawFns-CiNxPu6J.cjs} +12 -12
- package/dist/{drawFns-YeIBjuvT.js → drawFns-CzBbcoXA.js} +12 -12
- package/dist/{faceFns-DcSCjDG0.cjs → faceFns-D1Sqnlu6.cjs} +3 -3
- package/dist/{faceFns-CyokaCDr.js → faceFns-ub3CugDN.js} +3 -3
- package/dist/{helpers-gMcAmk4y.js → helpers-BSQfs538.js} +6 -6
- package/dist/{helpers-BaT099OL.cjs → helpers-Dje6wrKi.cjs} +6 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +4 -4
- package/dist/io.js +4 -4
- package/dist/kernel/occtAdapter.d.ts +1 -0
- package/dist/kernel/occtAdapter.d.ts.map +1 -1
- package/dist/kernel/transformOps.d.ts +8 -0
- package/dist/kernel/transformOps.d.ts.map +1 -1
- package/dist/kernel/types.d.ts +1 -0
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/{loft-jIkZRqHm.js → loft-BHn7GKm8.js} +4 -4
- package/dist/{loft-8asn63t4.cjs → loft-PMRx9iMG.cjs} +4 -4
- package/dist/{measurement-lRLwaoqD.cjs → measurement-B06hNs89.cjs} +3 -3
- package/dist/{measurement-DWv8kK6J.js → measurement-BfhEneUl.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DgAIL1B-.js → meshFns-BKSPaPXS.js} +1 -1
- package/dist/{meshFns-DWuLC3fk.cjs → meshFns-CFVxKBlE.cjs} +1 -1
- package/dist/{occtBoundary-DHtzU4tz.cjs → occtBoundary-BFAaUtA7.cjs} +41 -0
- package/dist/{occtBoundary-DYsksDtE.js → occtBoundary-CoXB2xvx.js} +41 -0
- package/dist/{operations-CCFPvtd-.cjs → operations-CdGb6IBU.cjs} +5 -5
- package/dist/{operations-BtwU1X9p.js → operations-CjQHEu1h.js} +5 -5
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +5 -5
- package/dist/query.js +6 -6
- package/dist/{shapeTypes-i7VwMRwc.js → shapeTypes-BU2LKv2S.js} +1 -1
- package/dist/{shapeTypes-b_lhwQB7.cjs → shapeTypes-UqVCIO_T.cjs} +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/api.d.ts +9 -1
- package/dist/topology/api.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts +9 -1
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology/wrapperFns.d.ts +2 -1
- package/dist/topology/wrapperFns.d.ts.map +1 -1
- package/dist/{topology-BRq45bhS.js → topology-BFB3LI_y.js} +7 -7
- package/dist/{topology-BpvKYOnc.cjs → topology-D8Au8q4i.cjs} +7 -7
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +29 -29
- package/dist/{vectors-DWLjb9-P.js → vectors-BhfKwL9J.js} +1 -1
- package/dist/{vectors-aQBZK0Sb.cjs → vectors-t1XG4LpL.cjs} +1 -1
- package/dist/vectors.cjs +2 -2
- package/dist/vectors.js +2 -2
- package/package.json +1 -1
package/dist/2d.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Blueprint = require("./Blueprint-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const Blueprint = require("./Blueprint-CTAwjJMN.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-B5axNhjN.cjs");
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
package/dist/2d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Blueprint } from "./Blueprint-
|
|
2
|
-
import { e, C, f } from "./Blueprint-
|
|
3
|
-
import { b, C as C2, c, d, f as f2, e as e2, i, g, o, p, r } from "./boolean2D-
|
|
1
|
+
import { B as Blueprint } from "./Blueprint-D_luVeES.js";
|
|
2
|
+
import { e, C, f } from "./Blueprint-D_luVeES.js";
|
|
3
|
+
import { b, C as C2, c, d, f as f2, e as e2, i, g, o, p, r } from "./boolean2D-vw76Gayn.js";
|
|
4
4
|
function reverseCurve(curve) {
|
|
5
5
|
const cloned = curve.clone();
|
|
6
6
|
cloned.reverse();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const vectors = require("./vectors-
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
2
|
+
const vectors = require("./vectors-t1XG4LpL.cjs");
|
|
3
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
4
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-D1Sqnlu6.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-ByeCqutv.cjs");
|
|
7
7
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
8
|
-
const helpers = require("./helpers-
|
|
9
|
-
const cast = require("./cast-
|
|
8
|
+
const helpers = require("./helpers-Dje6wrKi.cjs");
|
|
9
|
+
const cast = require("./cast-C107o5ow.cjs");
|
|
10
10
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
11
|
-
const curveBuilders = require("./curveBuilders-
|
|
11
|
+
const curveBuilders = require("./curveBuilders-Du03_Yyf.cjs");
|
|
12
12
|
const result = require("./result.cjs");
|
|
13
13
|
function makePlane(plane, origin) {
|
|
14
14
|
if (plane && typeof plane !== "string") {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as resolvePlane } from "./vectors-
|
|
2
|
-
import { g as getKernel, a as toVec3, m as makeOcAx2 } from "./occtBoundary-
|
|
3
|
-
import { t as localGC, u as createFace, e as isFace, y as registerForCleanup, z as unregisterFromCleanup, p as gcWithScope, o as createEdge, n as createWire } from "./shapeTypes-
|
|
4
|
-
import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-
|
|
5
|
-
import { a as getEdges,
|
|
1
|
+
import { r as resolvePlane } from "./vectors-BhfKwL9J.js";
|
|
2
|
+
import { g as getKernel, a as toVec3, m as makeOcAx2 } from "./occtBoundary-CoXB2xvx.js";
|
|
3
|
+
import { t as localGC, u as createFace, e as isFace, y as registerForCleanup, z as unregisterFromCleanup, p as gcWithScope, o as createEdge, n as createWire } from "./shapeTypes-BU2LKv2S.js";
|
|
4
|
+
import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-ub3CugDN.js";
|
|
5
|
+
import { a as getEdges, D as findCurveType, G as getOrientation } from "./curveFns-C5gSZ5EY.js";
|
|
6
6
|
import { e as err, o as occtError, l as ok, a as andThen, x as validationError, u as unwrap, b as computationError } from "./errors-wGhcJMpB.js";
|
|
7
|
-
import { d as distance2d, s as samePoint, k as scalarMultiply2d, i as add2d, n as normalize2d, h as subtract2d, g as getSingleFace } from "./helpers-
|
|
8
|
-
import { c as cast } from "./cast-
|
|
7
|
+
import { d as distance2d, s as samePoint, k as scalarMultiply2d, i as add2d, n as normalize2d, h as subtract2d, g as getSingleFace } from "./helpers-BSQfs538.js";
|
|
8
|
+
import { c as cast } from "./cast-D0OhP1nV.js";
|
|
9
9
|
import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
10
|
-
import { m as makeLine, a as assembleWire$1 } from "./curveBuilders-
|
|
10
|
+
import { m as makeLine, a as assembleWire$1 } from "./curveBuilders-CN72XaIQ.js";
|
|
11
11
|
import { bug } from "./result.js";
|
|
12
12
|
function makePlane(plane, origin) {
|
|
13
13
|
if (plane && typeof plane !== "string") {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const vectors = require("./vectors-
|
|
2
|
+
const vectors = require("./vectors-t1XG4LpL.cjs");
|
|
3
3
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
4
|
-
const cast = require("./cast-
|
|
5
|
-
const occtBoundary = require("./occtBoundary-
|
|
4
|
+
const cast = require("./cast-C107o5ow.cjs");
|
|
5
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
6
6
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
7
|
-
const loft = require("./loft-
|
|
8
|
-
const shapeTypes = require("./shapeTypes-
|
|
9
|
-
const curveFns = require("./curveFns-
|
|
10
|
-
const Blueprint = require("./Blueprint-
|
|
11
|
-
const faceFns = require("./faceFns-
|
|
7
|
+
const loft = require("./loft-PMRx9iMG.cjs");
|
|
8
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
9
|
+
const curveFns = require("./curveFns-ByeCqutv.cjs");
|
|
10
|
+
const Blueprint = require("./Blueprint-CTAwjJMN.cjs");
|
|
11
|
+
const faceFns = require("./faceFns-D1Sqnlu6.cjs");
|
|
12
12
|
const result = require("./result.cjs");
|
|
13
|
-
const helpers = require("./helpers-
|
|
14
|
-
const curveBuilders = require("./curveBuilders-
|
|
13
|
+
const helpers = require("./helpers-Dje6wrKi.cjs");
|
|
14
|
+
const curveBuilders = require("./curveBuilders-Du03_Yyf.cjs");
|
|
15
15
|
function* pointsIteration(intersector) {
|
|
16
16
|
const nPoints = intersector.NbPoints();
|
|
17
17
|
if (!nPoints) return;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as createPlane } from "./vectors-
|
|
1
|
+
import { a as createPlane } from "./vectors-BhfKwL9J.js";
|
|
2
2
|
import { l as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-wGhcJMpB.js";
|
|
3
|
-
import { d as downcast } from "./cast-
|
|
4
|
-
import { g as getKernel, a as toVec3 } from "./occtBoundary-
|
|
3
|
+
import { d as downcast } from "./cast-D0OhP1nV.js";
|
|
4
|
+
import { g as getKernel, a as toVec3 } from "./occtBoundary-CoXB2xvx.js";
|
|
5
5
|
import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
|
|
6
|
-
import { r as revolution, k as complexExtrude, t as twistExtrude, i as basicFaceExtrusion, j as genericSweep, l as loft } from "./loft-
|
|
7
|
-
import { p as gcWithScope, u as createFace, n as createWire, t as localGC, o as createEdge } from "./shapeTypes-
|
|
8
|
-
import {
|
|
9
|
-
import { C as Curve2D, i as make2dSegmentCurve, r as approximateAsBSpline, j as make2dArcFromCenter, s as isPoint2D, o as make2dCircle, t as make2dThreePointArc, e as BoundingBox2d, v as viewbox, u as asSVG, B as Blueprint, m as makeFace, d as makeNewFaceWithinFace, w as make2dEllipseArc, x as make2dTangentArc, y as make2dBezierCurve, f as axis2d, z as zip, A as removeDuplicatePoints } from "./Blueprint-
|
|
10
|
-
import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-
|
|
6
|
+
import { r as revolution, k as complexExtrude, t as twistExtrude, i as basicFaceExtrusion, j as genericSweep, l as loft } from "./loft-BHn7GKm8.js";
|
|
7
|
+
import { p as gcWithScope, u as createFace, n as createWire, t as localGC, o as createEdge } from "./shapeTypes-BU2LKv2S.js";
|
|
8
|
+
import { u as curveStartPoint, o as curveTangentAt, c as curveIsClosed } from "./curveFns-C5gSZ5EY.js";
|
|
9
|
+
import { C as Curve2D, i as make2dSegmentCurve, r as approximateAsBSpline, j as make2dArcFromCenter, s as isPoint2D, o as make2dCircle, t as make2dThreePointArc, e as BoundingBox2d, v as viewbox, u as asSVG, B as Blueprint, m as makeFace, d as makeNewFaceWithinFace, w as make2dEllipseArc, x as make2dTangentArc, y as make2dBezierCurve, f as axis2d, z as zip, A as removeDuplicatePoints } from "./Blueprint-D_luVeES.js";
|
|
10
|
+
import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-ub3CugDN.js";
|
|
11
11
|
import { bug } from "./result.js";
|
|
12
|
-
import { s as samePoint$1, n as normalize2d, h as subtract2d, i as add2d, j as crossProduct2d, k as scalarMultiply2d, b as polarToCartesian, r as rotate2d, l as cartesianToPolar, d as distance2d, p as polarAngle2d, m as PRECISION_INTERSECTION } from "./helpers-
|
|
13
|
-
import { a as assembleWire } from "./curveBuilders-
|
|
12
|
+
import { s as samePoint$1, n as normalize2d, h as subtract2d, i as add2d, j as crossProduct2d, k as scalarMultiply2d, b as polarToCartesian, r as rotate2d, l as cartesianToPolar, d as distance2d, p as polarAngle2d, m as PRECISION_INTERSECTION } from "./helpers-BSQfs538.js";
|
|
13
|
+
import { a as assembleWire } from "./curveBuilders-CN72XaIQ.js";
|
|
14
14
|
function* pointsIteration(intersector) {
|
|
15
15
|
const nPoints = intersector.NbPoints();
|
|
16
16
|
if (!nPoints) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getKernel } from "./occtBoundary-
|
|
2
|
-
import { p as gcWithScope, c as castShape, h as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { g as getKernel } from "./occtBoundary-CoXB2xvx.js";
|
|
2
|
+
import { p as gcWithScope, c as castShape, h as isShape3D } from "./shapeTypes-BU2LKv2S.js";
|
|
3
3
|
import { l as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, p as typeCastError, o as occtError } from "./errors-wGhcJMpB.js";
|
|
4
|
-
import { r as resolvePlane } from "./vectors-
|
|
4
|
+
import { r as resolvePlane } from "./vectors-BhfKwL9J.js";
|
|
5
5
|
import { n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
|
|
6
6
|
function applyGlue(op, optimisation) {
|
|
7
7
|
const oc = getKernel().oc;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
3
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
4
4
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
5
|
-
const vectors = require("./vectors-
|
|
5
|
+
const vectors = require("./vectors-t1XG4LpL.cjs");
|
|
6
6
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
7
7
|
function applyGlue(op, optimisation) {
|
|
8
8
|
const oc = occtBoundary.getKernel().oc;
|
package/dist/brepjs.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
4
4
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
5
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
6
6
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
7
|
-
const Blueprint = require("./Blueprint-
|
|
8
|
-
const curveFns = require("./curveFns-
|
|
9
|
-
const loft$2 = require("./loft-
|
|
10
|
-
const operations = require("./operations-
|
|
11
|
-
const boolean2D = require("./boolean2D-
|
|
7
|
+
const Blueprint = require("./Blueprint-CTAwjJMN.cjs");
|
|
8
|
+
const curveFns = require("./curveFns-ByeCqutv.cjs");
|
|
9
|
+
const loft$2 = require("./loft-PMRx9iMG.cjs");
|
|
10
|
+
const operations = require("./operations-CdGb6IBU.cjs");
|
|
11
|
+
const boolean2D = require("./boolean2D-B5axNhjN.cjs");
|
|
12
12
|
const _2d = require("./2d.cjs");
|
|
13
|
-
const helpers = require("./helpers-
|
|
13
|
+
const helpers = require("./helpers-Dje6wrKi.cjs");
|
|
14
14
|
const io = require("./io.cjs");
|
|
15
|
-
const drawFns = require("./drawFns-
|
|
16
|
-
const vectors = require("./vectors-
|
|
17
|
-
const topology = require("./topology-
|
|
18
|
-
const faceFns = require("./faceFns-
|
|
19
|
-
const meshFns = require("./meshFns-
|
|
20
|
-
const booleanFns = require("./booleanFns-
|
|
21
|
-
const measurement = require("./measurement-
|
|
22
|
-
const curveBuilders = require("./curveBuilders-
|
|
23
|
-
const cast = require("./cast-
|
|
15
|
+
const drawFns = require("./drawFns-CiNxPu6J.cjs");
|
|
16
|
+
const vectors = require("./vectors-t1XG4LpL.cjs");
|
|
17
|
+
const topology = require("./topology-D8Au8q4i.cjs");
|
|
18
|
+
const faceFns = require("./faceFns-D1Sqnlu6.cjs");
|
|
19
|
+
const meshFns = require("./meshFns-CFVxKBlE.cjs");
|
|
20
|
+
const booleanFns = require("./booleanFns-Yc3EBxdm.cjs");
|
|
21
|
+
const measurement = require("./measurement-B06hNs89.cjs");
|
|
22
|
+
const curveBuilders = require("./curveBuilders-Du03_Yyf.cjs");
|
|
23
|
+
const cast = require("./cast-C107o5ow.cjs");
|
|
24
24
|
const query = require("./query.cjs");
|
|
25
25
|
const result = require("./result.cjs");
|
|
26
|
-
const cornerFinder = require("./cornerFinder-
|
|
26
|
+
const cornerFinder = require("./cornerFinder-DuStF5jK.cjs");
|
|
27
27
|
const worker = require("./worker.cjs");
|
|
28
28
|
const errorFactories = {
|
|
29
29
|
OCCT_OPERATION: (code, message, cause) => ({ kind: "OCCT_OPERATION", code, message, cause }),
|
|
@@ -526,6 +526,9 @@ function scale(shape2, factor, options) {
|
|
|
526
526
|
function clone(shape2) {
|
|
527
527
|
return curveFns.clone(resolve(shape2));
|
|
528
528
|
}
|
|
529
|
+
function applyMatrix(shape2, matrix) {
|
|
530
|
+
return curveFns.applyMatrix(resolve(shape2), matrix);
|
|
531
|
+
}
|
|
529
532
|
function transformCopy(shape2, composed) {
|
|
530
533
|
return curveFns.transformCopy(resolve(shape2), composed);
|
|
531
534
|
}
|
|
@@ -869,6 +872,7 @@ function createWrappedBase(val) {
|
|
|
869
872
|
rotate: (angle, opts) => wrapAny(rotate(val, angle, opts)),
|
|
870
873
|
mirror: (opts) => wrapAny(mirror(val, opts)),
|
|
871
874
|
scale: (factor, opts) => wrapAny(scale(val, factor, opts)),
|
|
875
|
+
applyMatrix: (matrix) => wrapAny(applyMatrix(val, matrix)),
|
|
872
876
|
moveX: (d) => wrapAny(translate(val, [d, 0, 0])),
|
|
873
877
|
moveY: (d) => wrapAny(translate(val, [0, d, 0])),
|
|
874
878
|
moveZ: (d) => wrapAny(translate(val, [0, 0, d])),
|
|
@@ -1335,6 +1339,7 @@ exports.registerHandler = worker.registerHandler;
|
|
|
1335
1339
|
exports.rejectAll = worker.rejectAll;
|
|
1336
1340
|
exports.BrepWrapperError = BrepWrapperError;
|
|
1337
1341
|
exports.addHoles = addHoles;
|
|
1342
|
+
exports.applyMatrix = applyMatrix;
|
|
1338
1343
|
exports.bezier = bezier;
|
|
1339
1344
|
exports.boss = boss;
|
|
1340
1345
|
exports.box = box;
|
package/dist/brepjs.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { g as getKernel, b as toOcPnt, a as toVec3 } from "./occtBoundary-
|
|
2
|
-
import { f, h, i, j, r, c, t, w, k, l } from "./occtBoundary-
|
|
1
|
+
import { g as getKernel, b as toOcPnt, a as toVec3 } from "./occtBoundary-CoXB2xvx.js";
|
|
2
|
+
import { f, h, i, j, r, c, t, w, k, l } from "./occtBoundary-CoXB2xvx.js";
|
|
3
3
|
import { l as ok, y as translateOcctError, e as err, q as queryError, u as unwrap, x as validationError, B as BrepErrorCode, d as isErr, o as occtError, p as typeCastError } from "./errors-wGhcJMpB.js";
|
|
4
4
|
import { O, a, c as c2, b, f as f2, i as i2, g, m, h as h2, j as j2, k as k2, z, s, t as t2, n, r as r2, v, w as w2 } from "./errors-wGhcJMpB.js";
|
|
5
|
-
import { c as castShape, s as createSolid, p as gcWithScope, h as isShape3D, e as isFace, d as isEdge, m as isWire } from "./shapeTypes-
|
|
6
|
-
import { D, q, o, u, a as a2, b as b2, v as v2, r as r3, n as n2, x, g as g2, i as i3, f as f3, j as j3, k as k3, l as l2, t as t3, w as w3 } from "./shapeTypes-
|
|
5
|
+
import { c as castShape, s as createSolid, p as gcWithScope, h as isShape3D, e as isFace, d as isEdge, m as isWire } from "./shapeTypes-BU2LKv2S.js";
|
|
6
|
+
import { D, q, o, u, a as a2, b as b2, v as v2, r as r3, n as n2, x, g as g2, i as i3, f as f3, j as j3, k as k3, l as l2, t as t3, w as w3 } from "./shapeTypes-BU2LKv2S.js";
|
|
7
7
|
import { c as vecDistance, D as DEG2RAD, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
8
8
|
import { H, R, v as v3, a as a3, b as b3, d, e, g as g3, h as h3, i as i4, k as k4, l as l3, m as m2, o as o2 } from "./vecOps-ZDdZWbwT.js";
|
|
9
|
-
import { a as addHolesInFace, m as makeFace, b as makeNonPlanarFace, c as makePolygon, d as makeNewFaceWithinFace } from "./Blueprint-
|
|
10
|
-
import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-
|
|
11
|
-
import { c as curveIsClosed, v as vertexPosition, t as translate$1, a as getEdges, b as
|
|
12
|
-
import {
|
|
13
|
-
import { m as makeCompound, a as makeCone, b as makeCylinder, c as makeEllipsoid, d as makeOffset, w as weldShellsAndFaces, e as makeSolid, f as makeSphere, g as makeTorus, h as makeVertex } from "./loft-
|
|
14
|
-
import { i as i6, j as j4, r as r4 } from "./loft-
|
|
15
|
-
import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-
|
|
16
|
-
import { a as a4, b as b4, d as d2, f as f5, g as g6, h as h4, i as i7, j as j5, k as k5, m as m3, n as n3, o as o3, p, q as q2, t as t4, u as u2, v as v4, w as w4, x as x2, y
|
|
17
|
-
import { B as B4, a as a5, b as b5, C as C4, F as F2, S, c as c3, d as d3, f as f6, e as e3, i as i8, g as g7, o as o4, p as p2, r as r5 } from "./boolean2D-
|
|
9
|
+
import { a as addHolesInFace, m as makeFace, b as makeNonPlanarFace, c as makePolygon, d as makeNewFaceWithinFace } from "./Blueprint-D_luVeES.js";
|
|
10
|
+
import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-D_luVeES.js";
|
|
11
|
+
import { c as curveIsClosed, v as vertexPosition, t as translate$1, a as getEdges, b as applyMatrix$1, d as clone$1, e as describe$1, f as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, h as simplify$1, j as toBREP$1, k as transformCopy$1, l as getBounds, n as getFaces, o as curveTangentAt, p as curvePointAt, q as curveEndPoint, u as curveStartPoint, w as curveLength, x as getVertices, y as getWires } from "./curveFns-C5gSZ5EY.js";
|
|
12
|
+
import { z as z2, A, B as B2, C as C2, D as D2, E, F, g as g5, G, H as H2, I, i as i5, J, K, L, M, N } from "./curveFns-C5gSZ5EY.js";
|
|
13
|
+
import { m as makeCompound, a as makeCone, b as makeCylinder, c as makeEllipsoid, d as makeOffset, w as weldShellsAndFaces, e as makeSolid, f as makeSphere, g as makeTorus, h as makeVertex } from "./loft-BHn7GKm8.js";
|
|
14
|
+
import { i as i6, j as j4, r as r4 } from "./loft-BHn7GKm8.js";
|
|
15
|
+
import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-CjQHEu1h.js";
|
|
16
|
+
import { a as a4, b as b4, d as d2, f as f5, g as g6, h as h4, i as i7, j as j5, k as k5, m as m3, n as n3, o as o3, p, q as q2, t as t4, u as u2, v as v4, w as w4, x as x2, y, z as z3, A as A2, B as B3, C as C3, D as D3, E as E2 } from "./operations-CjQHEu1h.js";
|
|
17
|
+
import { B as B4, a as a5, b as b5, C as C4, F as F2, S, c as c3, d as d3, f as f6, e as e3, i as i8, g as g7, o as o4, p as p2, r as r5 } from "./boolean2D-vw76Gayn.js";
|
|
18
18
|
import { createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, getBounds2D, getOrientation2D, isInside2D, mirror2D, reverseCurve, rotate2D, scale2D, sketch2DOnFace, sketch2DOnPlane, stretch2D, toSVGPathD, translate2D } from "./2d.js";
|
|
19
|
-
import { c as createTypedFinder, f as faceFinder } from "./helpers-
|
|
20
|
-
import { g as g8 } from "./helpers-
|
|
19
|
+
import { c as createTypedFinder, f as faceFinder } from "./helpers-BSQfs538.js";
|
|
20
|
+
import { g as g8 } from "./helpers-BSQfs538.js";
|
|
21
21
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
22
|
-
import { C as C5, D as D4, a as a6, S as S2, b as b6, X, Y, c as c4, d as d4, e as e4, f as f7, Z, g as g9, h as h5, i as i9, j as j6, k as k6, l as l4, m as m4, n as n4, o as o5, p as p3, q as q3, r as r6, s as s2, t as t5, u as u3, v as v5, w as w5, x as x3, y as
|
|
23
|
-
import { c as c5, a as a7, p as p4, r as r7, t as t6 } from "./vectors-
|
|
24
|
-
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-
|
|
25
|
-
import { a as a8, b as b7, e as e5, f as f8, d as d5, g as g10, j as j7, s as s3, t as t7, k as k7, l as l5, v as v6, w as w6 } from "./topology-
|
|
26
|
-
import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-
|
|
27
|
-
import { c as c6, a as a9, b as b8, d as d6, p as p5, e as e6, u as u4, h as h6 } from "./faceFns-
|
|
28
|
-
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-
|
|
29
|
-
import { c as c7, b as b9, e as e7, d as d7, f as f9 } from "./meshFns-
|
|
30
|
-
import { c as cut$1, f as fuse$1, i as intersect$1, s as section$1, a as slice$1, b as split$1, d as fuseAll, e as cutAll } from "./booleanFns-
|
|
31
|
-
import { g as g11 } from "./booleanFns-
|
|
32
|
-
import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-
|
|
33
|
-
import { d as d8, e as e8, f as f10, g as g12, h as h7, i as i10 } from "./measurement-
|
|
34
|
-
import { c as makeBezierCurve, d as makeBSplineApproximation, e as makeCircle, f as makeEllipse, g as makeEllipseArc, b as makeHelix, m as makeLine, h as makeTangentArc, i as makeThreePointArc, a as assembleWire } from "./curveBuilders-
|
|
35
|
-
import { i as iterTopo, f as fromBREP$1 } from "./cast-
|
|
36
|
-
import { e as e9, c as c8, d as d9, g as g13, s as s4 } from "./cast-
|
|
22
|
+
import { C as C5, D as D4, a as a6, S as S2, b as b6, X, Y, c as c4, d as d4, e as e4, f as f7, Z, g as g9, h as h5, i as i9, j as j6, k as k6, l as l4, m as m4, n as n4, o as o5, p as p3, q as q3, r as r6, s as s2, t as t5, u as u3, v as v5, w as w5, x as x3, y as y2, z as z4, _, $, a0, A as A3, a1, B as B5, E as E3, a2 as a22, F as F3, G as G2, H as H3, I as I2, J as J2, K as K2, L as L2, M as M2, N as N2, O as O2, P, Q, R as R2, T, U, a3 as a32, V, a4 as a42, W } from "./drawFns-CzBbcoXA.js";
|
|
23
|
+
import { c as c5, a as a7, p as p4, r as r7, t as t6 } from "./vectors-BhfKwL9J.js";
|
|
24
|
+
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-BFB3LI_y.js";
|
|
25
|
+
import { a as a8, b as b7, e as e5, f as f8, d as d5, g as g10, j as j7, s as s3, t as t7, k as k7, l as l5, v as v6, w as w6 } from "./topology-BFB3LI_y.js";
|
|
26
|
+
import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-ub3CugDN.js";
|
|
27
|
+
import { c as c6, a as a9, b as b8, d as d6, p as p5, e as e6, u as u4, h as h6 } from "./faceFns-ub3CugDN.js";
|
|
28
|
+
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-BKSPaPXS.js";
|
|
29
|
+
import { c as c7, b as b9, e as e7, d as d7, f as f9 } from "./meshFns-BKSPaPXS.js";
|
|
30
|
+
import { c as cut$1, f as fuse$1, i as intersect$1, s as section$1, a as slice$1, b as split$1, d as fuseAll, e as cutAll } from "./booleanFns-BhqXpQoZ.js";
|
|
31
|
+
import { g as g11 } from "./booleanFns-BhqXpQoZ.js";
|
|
32
|
+
import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-BfhEneUl.js";
|
|
33
|
+
import { d as d8, e as e8, f as f10, g as g12, h as h7, i as i10 } from "./measurement-BfhEneUl.js";
|
|
34
|
+
import { c as makeBezierCurve, d as makeBSplineApproximation, e as makeCircle, f as makeEllipse, g as makeEllipseArc, b as makeHelix, m as makeLine, h as makeTangentArc, i as makeThreePointArc, a as assembleWire } from "./curveBuilders-CN72XaIQ.js";
|
|
35
|
+
import { i as iterTopo, f as fromBREP$1 } from "./cast-D0OhP1nV.js";
|
|
36
|
+
import { e as e9, c as c8, d as d9, g as g13, s as s4 } from "./cast-D0OhP1nV.js";
|
|
37
37
|
import { edgeFinder } from "./query.js";
|
|
38
38
|
import { BrepBugError, bug } from "./result.js";
|
|
39
|
-
import { c as c9 } from "./cornerFinder-
|
|
39
|
+
import { c as c9 } from "./cornerFinder-CPm2baSJ.js";
|
|
40
40
|
import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
|
|
41
41
|
const errorFactories = {
|
|
42
42
|
OCCT_OPERATION: (code, message, cause) => ({ kind: "OCCT_OPERATION", code, message, cause }),
|
|
@@ -539,6 +539,9 @@ function scale(shape2, factor, options) {
|
|
|
539
539
|
function clone(shape2) {
|
|
540
540
|
return clone$1(resolve(shape2));
|
|
541
541
|
}
|
|
542
|
+
function applyMatrix(shape2, matrix) {
|
|
543
|
+
return applyMatrix$1(resolve(shape2), matrix);
|
|
544
|
+
}
|
|
542
545
|
function transformCopy(shape2, composed) {
|
|
543
546
|
return transformCopy$1(resolve(shape2), composed);
|
|
544
547
|
}
|
|
@@ -882,6 +885,7 @@ function createWrappedBase(val) {
|
|
|
882
885
|
rotate: (angle, opts) => wrapAny(rotate(val, angle, opts)),
|
|
883
886
|
mirror: (opts) => wrapAny(mirror(val, opts)),
|
|
884
887
|
scale: (factor, opts) => wrapAny(scale(val, factor, opts)),
|
|
888
|
+
applyMatrix: (matrix) => wrapAny(applyMatrix(val, matrix)),
|
|
885
889
|
moveX: (d10) => wrapAny(translate(val, [d10, 0, 0])),
|
|
886
890
|
moveY: (d10) => wrapAny(translate(val, [0, d10, 0])),
|
|
887
891
|
moveZ: (d10) => wrapAny(translate(val, [0, 0, d10])),
|
|
@@ -1042,7 +1046,8 @@ export {
|
|
|
1042
1046
|
a8 as adjacentFaces,
|
|
1043
1047
|
a as andThen,
|
|
1044
1048
|
g11 as applyGlue,
|
|
1045
|
-
|
|
1049
|
+
applyMatrix,
|
|
1050
|
+
z2 as approximateCurve,
|
|
1046
1051
|
e9 as asTopo,
|
|
1047
1052
|
b7 as autoHeal,
|
|
1048
1053
|
f4 as axis2d,
|
|
@@ -1069,7 +1074,7 @@ export {
|
|
|
1069
1074
|
c2 as collect,
|
|
1070
1075
|
d2 as collectShapes,
|
|
1071
1076
|
f5 as complexExtrude,
|
|
1072
|
-
|
|
1077
|
+
A as composeTransforms,
|
|
1073
1078
|
compound,
|
|
1074
1079
|
c4 as compoundSketchExtrude,
|
|
1075
1080
|
d4 as compoundSketchFace,
|
|
@@ -1112,9 +1117,9 @@ export {
|
|
|
1112
1117
|
curve2dTangentAt,
|
|
1113
1118
|
curveEndPoint,
|
|
1114
1119
|
curveIsClosed,
|
|
1115
|
-
|
|
1120
|
+
B2 as curveIsPeriodic,
|
|
1116
1121
|
curveLength,
|
|
1117
|
-
|
|
1122
|
+
C2 as curvePeriod,
|
|
1118
1123
|
curvePointAt,
|
|
1119
1124
|
curveStartPoint,
|
|
1120
1125
|
curveTangentAt,
|
|
@@ -1145,7 +1150,7 @@ export {
|
|
|
1145
1150
|
v5 as drawingCut,
|
|
1146
1151
|
w5 as drawingFillet,
|
|
1147
1152
|
x3 as drawingFuse,
|
|
1148
|
-
|
|
1153
|
+
y2 as drawingIntersect,
|
|
1149
1154
|
z4 as drawingToSketchOnPlane,
|
|
1150
1155
|
drill,
|
|
1151
1156
|
edgeFinder,
|
|
@@ -1173,12 +1178,12 @@ export {
|
|
|
1173
1178
|
f8 as facesOfEdge,
|
|
1174
1179
|
filledFace,
|
|
1175
1180
|
fillet,
|
|
1176
|
-
|
|
1181
|
+
D2 as findCurveType,
|
|
1177
1182
|
n3 as findNode,
|
|
1178
1183
|
o3 as findStep,
|
|
1179
1184
|
f2 as flatMap,
|
|
1180
1185
|
d6 as flipFaceOrientation,
|
|
1181
|
-
|
|
1186
|
+
E as flipOrientation,
|
|
1182
1187
|
fromBREP,
|
|
1183
1188
|
f as fromOcDir,
|
|
1184
1189
|
h as fromOcPnt,
|
|
@@ -1192,14 +1197,14 @@ export {
|
|
|
1192
1197
|
j4 as genericSweep,
|
|
1193
1198
|
getBounds,
|
|
1194
1199
|
getBounds2D,
|
|
1195
|
-
|
|
1200
|
+
F as getCurveType,
|
|
1196
1201
|
getEdges,
|
|
1197
1202
|
getFaces,
|
|
1198
1203
|
_ as getFont,
|
|
1199
1204
|
g5 as getHashCode,
|
|
1200
1205
|
p as getHistoryShape,
|
|
1201
1206
|
getKernel,
|
|
1202
|
-
|
|
1207
|
+
G as getOrientation,
|
|
1203
1208
|
getOrientation2D,
|
|
1204
1209
|
g2 as getShapeKind,
|
|
1205
1210
|
g8 as getSingleFace,
|
|
@@ -1218,7 +1223,7 @@ export {
|
|
|
1218
1223
|
importSVGPathD,
|
|
1219
1224
|
j as initFromOC,
|
|
1220
1225
|
innerWires,
|
|
1221
|
-
|
|
1226
|
+
H2 as interpolateCurve,
|
|
1222
1227
|
intersect,
|
|
1223
1228
|
i8 as intersect2D,
|
|
1224
1229
|
g7 as intersectBlueprints,
|
|
@@ -1229,7 +1234,7 @@ export {
|
|
|
1229
1234
|
isDisposeRequest,
|
|
1230
1235
|
isEdge,
|
|
1231
1236
|
isEmpty,
|
|
1232
|
-
|
|
1237
|
+
I as isEqualShape,
|
|
1233
1238
|
isErr,
|
|
1234
1239
|
isErrorResponse,
|
|
1235
1240
|
isFace,
|
|
@@ -1250,11 +1255,11 @@ export {
|
|
|
1250
1255
|
isValid,
|
|
1251
1256
|
l2 as isVertex,
|
|
1252
1257
|
isWire,
|
|
1253
|
-
|
|
1254
|
-
|
|
1258
|
+
J as iterEdges,
|
|
1259
|
+
K as iterFaces,
|
|
1255
1260
|
iterTopo,
|
|
1256
|
-
|
|
1257
|
-
|
|
1261
|
+
L as iterVertices,
|
|
1262
|
+
M as iterWires,
|
|
1258
1263
|
kernelCall,
|
|
1259
1264
|
kernelCallRaw,
|
|
1260
1265
|
line,
|
|
@@ -1289,7 +1294,7 @@ export {
|
|
|
1289
1294
|
occtError,
|
|
1290
1295
|
offset,
|
|
1291
1296
|
offsetFace,
|
|
1292
|
-
|
|
1297
|
+
N as offsetWire2D,
|
|
1293
1298
|
ok,
|
|
1294
1299
|
o4 as organiseBlueprints,
|
|
1295
1300
|
outerWire,
|
|
@@ -1341,7 +1346,7 @@ export {
|
|
|
1341
1346
|
K2 as sketchFace,
|
|
1342
1347
|
L2 as sketchFaceOffset,
|
|
1343
1348
|
M2 as sketchHelix,
|
|
1344
|
-
|
|
1349
|
+
N2 as sketchLoft,
|
|
1345
1350
|
O2 as sketchParametricFunction,
|
|
1346
1351
|
P as sketchPolysides,
|
|
1347
1352
|
Q as sketchRectangle,
|
|
@@ -1355,7 +1360,7 @@ export {
|
|
|
1355
1360
|
solid,
|
|
1356
1361
|
sphere,
|
|
1357
1362
|
split,
|
|
1358
|
-
|
|
1363
|
+
y as stepCount,
|
|
1359
1364
|
z3 as stepsFrom,
|
|
1360
1365
|
stretch2D,
|
|
1361
1366
|
subFace,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
3
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
4
4
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
5
5
|
let _topoMap = null;
|
|
6
6
|
const asTopo = (entity) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as castShape, h as isShape3D$1, m as isWire$1 } from "./shapeTypes-
|
|
2
|
-
import { g as getKernel } from "./occtBoundary-
|
|
1
|
+
import { c as castShape, h as isShape3D$1, m as isWire$1 } from "./shapeTypes-BU2LKv2S.js";
|
|
2
|
+
import { g as getKernel } from "./occtBoundary-CoXB2xvx.js";
|
|
3
3
|
import { e as err, p as typeCastError, l as ok, a as andThen } from "./errors-wGhcJMpB.js";
|
|
4
4
|
let _topoMap = null;
|
|
5
5
|
const asTopo = (entity) => {
|
package/dist/core/types.d.ts
CHANGED
|
@@ -24,4 +24,28 @@ export type Direction = Vec3 | 'X' | 'Y' | 'Z';
|
|
|
24
24
|
* @throws If the string is not a recognised axis name.
|
|
25
25
|
*/
|
|
26
26
|
export declare function resolveDirection(d: Direction): Vec3;
|
|
27
|
+
/** A row of a 4x4 matrix. */
|
|
28
|
+
type Row4 = [number, number, number, number];
|
|
29
|
+
/** 4x4 affine transformation matrix in row-major order. Bottom row must be [0,0,0,1]. */
|
|
30
|
+
export type Matrix4x4 = [Row4, Row4, Row4, Row4];
|
|
31
|
+
/** Structured matrix input: 3x3 linear part + translation vector. */
|
|
32
|
+
export interface MatrixTransform {
|
|
33
|
+
/** 3x3 linear part in row-major order: [r00, r01, r02, r10, r11, r12, r20, r21, r22]. */
|
|
34
|
+
readonly linear: readonly [
|
|
35
|
+
number,
|
|
36
|
+
number,
|
|
37
|
+
number,
|
|
38
|
+
number,
|
|
39
|
+
number,
|
|
40
|
+
number,
|
|
41
|
+
number,
|
|
42
|
+
number,
|
|
43
|
+
number
|
|
44
|
+
];
|
|
45
|
+
/** Translation vector [tx, ty, tz]. */
|
|
46
|
+
readonly translation: Vec3;
|
|
47
|
+
}
|
|
48
|
+
/** Input accepted by `applyMatrix`: either a raw 4x4 array or a structured object. */
|
|
49
|
+
export type MatrixInput = Matrix4x4 | MatrixTransform;
|
|
50
|
+
export {};
|
|
27
51
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0CAA0C;AAC1C,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErD,mCAAmC;AACnC,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,IAAI,GACJ,IAAI,GACJ,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACjC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9B,wCAAwC;AACxC,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAG1C;AAED,kCAAkC;AAClC,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAE1C;AAED,4FAA4F;AAC5F,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAQ/C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAOnD"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0CAA0C;AAC1C,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErD,mCAAmC;AACnC,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,IAAI,GACJ,IAAI,GACJ,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GACjC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9B,wCAAwC;AACxC,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAG1C;AAED,kCAAkC;AAClC,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAE1C;AAED,4FAA4F;AAC5F,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAQ/C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAOnD;AAMD,6BAA6B;AAC7B,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,yFAAyF;AACzF,MAAM,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEjD,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,yFAAyF;IACzF,QAAQ,CAAC,MAAM,EAAE,SAAS;QACxB,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,CAAC;IACF,uCAAuC;IACvC,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B;AAED,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC"}
|
package/dist/core.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
5
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
6
|
-
const vectors = require("./vectors-
|
|
7
|
-
const shapeTypes = require("./shapeTypes-
|
|
6
|
+
const vectors = require("./vectors-t1XG4LpL.cjs");
|
|
7
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
8
8
|
const result = require("./result.cjs");
|
|
9
9
|
exports.resolveDirection = occtBoundary.resolveDirection;
|
|
10
10
|
exports.toVec2 = occtBoundary.toVec2;
|
package/dist/core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r, t, a } from "./occtBoundary-
|
|
1
|
+
import { r, t, a } from "./occtBoundary-CoXB2xvx.js";
|
|
2
2
|
import { D, H, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
import { O, a as a3, c as c2, b as b2, e as e2, f as f2, i as i2, d as d2, g as g2, m as m2, h as h2, j as j2, k as k2, o as o2, l as l2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-wGhcJMpB.js";
|
|
4
|
-
import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-
|
|
5
|
-
import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, w as w2 } from "./shapeTypes-
|
|
4
|
+
import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-BhfKwL9J.js";
|
|
5
|
+
import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, w as w2 } from "./shapeTypes-BU2LKv2S.js";
|
|
6
6
|
import { BrepBugError, bug } from "./result.js";
|
|
7
7
|
export {
|
|
8
8
|
BrepBugError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-
|
|
1
|
+
import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-BSQfs538.js";
|
|
2
2
|
import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
const PI_2 = 2 * Math.PI;
|
|
4
4
|
function positiveHalfAngle(angle) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getKernel, b as toOcPnt, c as toOcVec, m as makeOcAx2, d as makeOcAx3 } from "./occtBoundary-
|
|
2
|
-
import { d as isEdge, m as isWire, n as createWire, o as createEdge, p as gcWithScope } from "./shapeTypes-
|
|
1
|
+
import { g as getKernel, b as toOcPnt, c as toOcVec, m as makeOcAx2, d as makeOcAx3 } from "./occtBoundary-CoXB2xvx.js";
|
|
2
|
+
import { d as isEdge, m as isWire, n as createWire, o as createEdge, p as gcWithScope } from "./shapeTypes-BU2LKv2S.js";
|
|
3
3
|
import { e as err, o as occtError, l as ok, x as validationError } from "./errors-wGhcJMpB.js";
|
|
4
4
|
function makeLine(v1, v2) {
|
|
5
5
|
const oc = getKernel().oc;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
|
|
3
|
+
const shapeTypes = require("./shapeTypes-UqVCIO_T.cjs");
|
|
4
4
|
const errors = require("./errors-DK1VAdP4.cjs");
|
|
5
5
|
function makeLine(v1, v2) {
|
|
6
6
|
const oc = occtBoundary.getKernel().oc;
|