brepjs 18.63.0 → 18.65.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 +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-DaRszQg-.js → blueprint-1wDhBDmB.js} +5 -5
- package/dist/{blueprint-XEJiK6ON.cjs → blueprint-smNMCQA1.cjs} +5 -5
- package/dist/{blueprintFns-C0ULkqGT.js → blueprintFns-DeCDdsDz.js} +2 -2
- package/dist/{blueprintFns-CTJGTMYw.cjs → blueprintFns-DkHfzzv0.cjs} +2 -2
- package/dist/{blueprintSketcher-DHWmjOmJ.js → blueprintSketcher-BL85kdgo.js} +3 -3
- package/dist/{blueprintSketcher-r0uUFBZZ.cjs → blueprintSketcher-Bpd7nMHt.cjs} +3 -3
- package/dist/{boolean2D-BT3RGDXW.cjs → boolean2D-CHu_3RIB.cjs} +4 -4
- package/dist/{boolean2D-BfavHsXe.js → boolean2D-CWgORqab.js} +4 -4
- package/dist/{booleanFns-B3vIRhjz.cjs → booleanFns-C9olM-r4.cjs} +4 -4
- package/dist/{booleanFns-DNG6xxu8.js → booleanFns-ogc1TMXG.js} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-CQkS1TSY.js → cameraFns-9SLctf9O.js} +2 -2
- package/dist/{cameraFns-CqplcvtL.cjs → cameraFns-Za6Rsnmg.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-ByEss8KB.cjs → cornerFinder-CUhZgX6X.cjs} +1 -1
- package/dist/{cornerFinder-CE1b1IMu.js → cornerFinder-Cchldpsv.js} +1 -1
- package/dist/{curveFns-vZbW7CVb.js → curveFns-DH5NpaKO.js} +1 -1
- package/dist/{curveFns-Dx9ha0n_.cjs → curveFns-DR68aqxR.cjs} +1 -1
- package/dist/{drawFns-DiJFFH16.js → drawFns-Cq6bAjFC.js} +12 -12
- package/dist/{drawFns-ZPhrUGWl.cjs → drawFns-DPE6EU_v.cjs} +12 -12
- package/dist/{extrudeFns-BamV4cSU.js → extrudeFns-DZEN4PPg.js} +1 -1
- package/dist/{extrudeFns-DsvQYfqd.cjs → extrudeFns-yfUN1m7e.cjs} +1 -1
- package/dist/{faceFns-LJ_lU5IE.js → faceFns-Qrz3lIDv.js} +2 -2
- package/dist/{faceFns-DGmQI57P.cjs → faceFns-_m0px2ug.cjs} +2 -2
- package/dist/{helpers-B6abm0X7.cjs → helpers-BXiYZ2Dl.cjs} +6 -6
- package/dist/{helpers-CxZqc5vt.js → helpers-Bk538__I.js} +6 -6
- package/dist/{historyFns-a2plj33G.cjs → historyFns-B-R48Dze.cjs} +4 -4
- package/dist/{historyFns-DpHCn1yw.js → historyFns-BJKkvynn.js} +4 -4
- package/dist/{importFns-CEz6N0mP.js → importFns-Cid57qQ1.js} +2 -2
- package/dist/{importFns-iJZHFevB.cjs → importFns-D8EPeKcC.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/manifold/curveDesc.d.ts +54 -0
- package/dist/kernel/manifold/profileOps.d.ts +2 -1
- package/dist/{measureFns-1vEKylTt.js → measureFns-95m36tbx.js} +3 -3
- package/dist/{measureFns-CvAOj_Io.cjs → measureFns-CqSFeI4R.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CoPoc7dh.js → meshFns-BCggXbKk.js} +3 -3
- package/dist/{meshFns-D2rlqrTt.cjs → meshFns-CR8dRmoo.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-Bi22B25-.cjs → primitiveFns-DFsImECE.cjs} +7 -7
- package/dist/{primitiveFns-OuEHerl6.js → primitiveFns-Fy3scr-a.js} +7 -7
- 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-C3wVDhtn.js → shapeFns-Ct1lekCK.js} +2 -2
- package/dist/{shapeFns-n4A9y80v.cjs → shapeFns-DNqkQ2yJ.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-eqCfRF0P.cjs → shapeRefFns-BB9iWqZb.cjs} +4 -4
- package/dist/{shapeRefFns-CUt56Cul.js → shapeRefFns-CZqzvMgX.js} +4 -4
- package/dist/{shapeTypes-9yfC5Z8_.js → shapeTypes-C-32Klnb.js} +369 -31
- package/dist/{shapeTypes-C_liO43e.cjs → shapeTypes-DAhE_41P.cjs} +369 -31
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-DSAmLmHd.js → solidBuilders-B-gb9ZsJ.js} +2 -2
- package/dist/{solidBuilders-BtfspzpT.cjs → solidBuilders-iapbn6CO.cjs} +2 -2
- package/dist/{surfaceBuilders-6BfGn0MN.cjs → surfaceBuilders-B9kzwe0E.cjs} +2 -2
- package/dist/{surfaceBuilders-ChWLM9Io.js → surfaceBuilders-Cwecm13F.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DTaz774E.cjs → textBlueprints-7KWxP1zT.cjs} +7 -7
- package/dist/{textBlueprints-B_RYPM3J.js → textBlueprints-CyIv54Ac.js} +7 -7
- package/dist/{textMetrics-CEBrAzpE.cjs → textMetrics-BXoJfZKn.cjs} +1 -1
- package/dist/{textMetrics-RRDn50ym.js → textMetrics-D740OLnV.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-nbhh_XJF.js → topologyQueryFns-C0yUIRDE.js} +1 -1
- package/dist/{topologyQueryFns-B6BTVGLX.cjs → topologyQueryFns-CBVVRWvE.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-C9olM-r4.cjs");
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-C-32Klnb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { v as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
4
|
+
import { v as fromBREP } from "./faceFns-Qrz3lIDv.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-Ct1lekCK.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-ogc1TMXG.js";
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-C-32Klnb.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-1wDhBDmB.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-DAhE_41P.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-smNMCQA1.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/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-CR8dRmoo.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-D8EPeKcC.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-BCggXbKk.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-Cid57qQ1.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analytic descriptors for the manifold kernel's standalone profile edges.
|
|
3
|
+
*
|
|
4
|
+
* Profile edges (makeLineEdge / makeCircleEdge / makeArcEdge / makeEllipseEdge /
|
|
5
|
+
* makeBezierEdge) also record an analytic {@link CurveDesc} alongside their
|
|
6
|
+
* sampled polyline, so 1D curve queries (length, type, point/tangent at param,
|
|
7
|
+
* closed/periodic) are answered *exactly* on the mesh kernel — no OCCT replay,
|
|
8
|
+
* no polyline approximation. Conics (circle/arc/ellipse) are unified as a center
|
|
9
|
+
* plus two in-plane unit axes and per-axis radii: `point(θ) = C + rx·cosθ·X +
|
|
10
|
+
* ry·sinθ·Y`, parametrized by angle; lines by signed distance (OCCT convention).
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
type Vec3 = [number, number, number];
|
|
14
|
+
type RVec3 = readonly [number, number, number];
|
|
15
|
+
export type CurveDesc = {
|
|
16
|
+
k: 'line';
|
|
17
|
+
p1: RVec3;
|
|
18
|
+
p2: RVec3;
|
|
19
|
+
} | {
|
|
20
|
+
k: 'conic';
|
|
21
|
+
center: RVec3;
|
|
22
|
+
x: RVec3;
|
|
23
|
+
y: RVec3;
|
|
24
|
+
rx: number;
|
|
25
|
+
ry: number;
|
|
26
|
+
a0: number;
|
|
27
|
+
a1: number;
|
|
28
|
+
} | {
|
|
29
|
+
k: 'bezier';
|
|
30
|
+
points: readonly RVec3[];
|
|
31
|
+
} | {
|
|
32
|
+
k: 'helix';
|
|
33
|
+
center: RVec3;
|
|
34
|
+
axis: RVec3;
|
|
35
|
+
x: RVec3;
|
|
36
|
+
y: RVec3;
|
|
37
|
+
radius: number;
|
|
38
|
+
pitch: number;
|
|
39
|
+
turns: number;
|
|
40
|
+
};
|
|
41
|
+
export declare function descType(d: CurveDesc): string;
|
|
42
|
+
/** Parameter bounds: line → [0, length]; conic → [a0, a1]; helix → [0, 2π·turns]; bezier → [0, 1]. */
|
|
43
|
+
export declare function descBounds(d: CurveDesc): {
|
|
44
|
+
first: number;
|
|
45
|
+
last: number;
|
|
46
|
+
};
|
|
47
|
+
export declare function descPointAt(d: CurveDesc, param: number): Vec3;
|
|
48
|
+
export declare function descTangent(d: CurveDesc, param: number): Vec3;
|
|
49
|
+
/** Exact length where closed-form exists; Ramanujan for full ellipses; numeric otherwise. */
|
|
50
|
+
export declare function descLength(d: CurveDesc): number;
|
|
51
|
+
export declare function descIsClosed(d: CurveDesc): boolean;
|
|
52
|
+
export declare function descIsPeriodic(d: CurveDesc): boolean;
|
|
53
|
+
export declare function descPeriod(d: CurveDesc): number;
|
|
54
|
+
export {};
|
|
@@ -10,10 +10,11 @@ export interface ProfileBuilders {
|
|
|
10
10
|
makeEllipseEdge(center: Vec3, normal: Vec3, majorRadius: number, minorRadius: number, xDir?: Vec3): KernelShape;
|
|
11
11
|
makeBezierEdge(points: Vec3[]): KernelShape;
|
|
12
12
|
makeTangentArc(startPoint: Vec3, startTangent: Vec3, endPoint: Vec3): KernelShape;
|
|
13
|
+
makeHelixWire(pitch: number, height: number, radius: number, center?: Vec3, direction?: Vec3, leftHanded?: boolean): KernelShape;
|
|
13
14
|
makeWire(edges: KernelShape[]): KernelShape;
|
|
14
15
|
makeWireFromMixed(items: KernelShape[]): KernelShape;
|
|
15
16
|
makeFace(wire: KernelShape, planar?: boolean): KernelShape;
|
|
16
17
|
addHolesInFace(face: KernelShape, holeWires: KernelShape[]): KernelShape;
|
|
17
18
|
makePolygonFace(points: Vec3[]): KernelShape;
|
|
18
19
|
}
|
|
19
|
-
export declare function makeProfileBuilders(
|
|
20
|
+
export declare function makeProfileBuilders(module: ManifoldModule): ProfileBuilders;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-C-32Klnb.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 { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { w as kernelCallRaw } from "./topologyQueryFns-C0yUIRDE.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-Qrz3lIDv.js";
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DAhE_41P.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-CBVVRWvE.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
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-CqSFeI4R.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-95m36tbx.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-C-32Klnb.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-C0yUIRDE.js";
|
|
4
|
+
import { O as getFaceOrigins } from "./shapeFns-Ct1lekCK.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-DAhE_41P.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-CBVVRWvE.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* 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-B-R48Dze.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-yfUN1m7e.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-BJKkvynn.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-DZEN4PPg.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,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CBVVRWvE.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-_m0px2ug.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
9
|
-
const require_booleanFns = require("./booleanFns-
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-B9kzwe0E.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-C9olM-r4.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-iapbn6CO.cjs");
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Z 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 { Z 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-C-32Klnb.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-DNWJsfVU.js";
|
|
3
|
-
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-C0yUIRDE.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { _ as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
5
|
+
import { _ as downcast } from "./faceFns-Qrz3lIDv.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Ct1lekCK.js";
|
|
7
7
|
import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
8
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
9
|
-
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-
|
|
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-
|
|
8
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-Cwecm13F.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-ogc1TMXG.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-B-gb9ZsJ.js";
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
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-Za6Rsnmg.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-9SLctf9O.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-BXiYZ2Dl.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-CUhZgX6X.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-Bk538__I.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-Cchldpsv.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-C-32Klnb.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-C0yUIRDE.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-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CBVVRWvE.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-BB9iWqZb.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-CZqzvMgX.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-CBVVRWvE.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-CqSFeI4R.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 { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns-
|
|
2
|
+
import { c as getFaces } from "./topologyQueryFns-C0yUIRDE.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Qrz3lIDv.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-Ct1lekCK.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-95m36tbx.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|