brepjs 20.12.13 → 20.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-DBN26xm_.js → adjacencyFns-DT8YVOtE.js} +3 -3
- package/dist/{adjacencyFns-Djv832MP.cjs → adjacencyFns-DyHi1paM.cjs} +3 -3
- package/dist/{blueprint-BTccTqFy.js → blueprint-BzgIBZly.js} +5 -5
- package/dist/{blueprint-nVQsEilp.cjs → blueprint-CGBIm-Xk.cjs} +5 -5
- package/dist/{blueprintFns-DX7yLZpR.js → blueprintFns-CN6koAgD.js} +2 -2
- package/dist/{blueprintFns-DFDOgqqe.cjs → blueprintFns-Crktz0-W.cjs} +2 -2
- package/dist/{blueprintSketcher-rk64lh8e.js → blueprintSketcher-C28vnWYu.js} +3 -3
- package/dist/{blueprintSketcher-CoGp1dM9.cjs → blueprintSketcher-C5Nn6Yi7.cjs} +3 -3
- package/dist/{boolean2D-DP2DiMfT.cjs → boolean2D-BRmFbYsb.cjs} +4 -4
- package/dist/{boolean2D-Dv-57m9d.js → boolean2D-BWpQMVia.js} +4 -4
- package/dist/{booleanFns-ewBwy7V_.cjs → booleanFns-CvBttd1y.cjs} +5 -5
- package/dist/{booleanFns-CjIZaNBh.js → booleanFns-Dcv_aMcv.js} +5 -5
- package/dist/brepjs.cjs +54 -50
- package/dist/brepjs.js +54 -50
- package/dist/{cameraFns-DmIQsPIr.cjs → cameraFns-Ds_tNjP7.cjs} +3 -3
- package/dist/{cameraFns-D0JDXxwO.js → cameraFns-xIy84D75.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-Df7ajnlz.js → cornerFinder-BEUeERZd.js} +1 -1
- package/dist/{cornerFinder-CZ1XbVx7.cjs → cornerFinder-BUj9Ms_n.cjs} +1 -1
- package/dist/{curveFns-CUrIF9LG.js → curveFns-DR1JAITD.js} +1 -1
- package/dist/{curveFns-DK5eG57I.cjs → curveFns-Dneh4D9N.cjs} +1 -1
- package/dist/{drawFns-BKKWQ4JW.js → drawFns-BPskIgvL.js} +12 -12
- package/dist/{drawFns-B2CPxqd1.cjs → drawFns-CkHnrB4o.cjs} +12 -12
- package/dist/{faceFns-C1Ii1MJ-.cjs → faceFns-ClpZLuHU.cjs} +2 -2
- package/dist/{faceFns-B3vblI_s.js → faceFns-Ek2vnYA8.js} +2 -2
- package/dist/{healingFns-CqiHrJcx.js → healingFns-CTPsDQkF.js} +5 -5
- package/dist/{healingFns-sfguIlrW.cjs → healingFns-CVGVC3-a.cjs} +5 -5
- package/dist/{helpers-CTxyRIoE.cjs → helpers-ClWqvNl5.cjs} +6 -6
- package/dist/{helpers-Dy1moMMd.js → helpers-TeE5hIEo.js} +6 -6
- package/dist/{importFns-C3ILnGTv.cjs → importFns-1qi--R8S.cjs} +479 -57
- package/dist/{importFns-BXiAHbyn.js → importFns-DTyCvMc3.js} +479 -57
- package/dist/io/importFns.d.ts +6 -4
- package/dist/io/ioUtils.d.ts +23 -5
- package/dist/io/meshNesting.d.ts +25 -4
- package/dist/io/meshTopology.d.ts +33 -0
- package/dist/io/stlTriangles.d.ts +10 -0
- package/dist/io/threemfImportFns.d.ts +9 -6
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/capabilities.d.ts +9 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/{loftFns-CzERU_TY.cjs → loftFns-BqA5gWFR.cjs} +1 -1
- package/dist/{loftFns-BJqF1p_f.js → loftFns-DbXEtPKz.js} +1 -1
- package/dist/{measureFns-CT2TRojo.js → measureFns-NLCrquKi.js} +3 -3
- package/dist/{measureFns-DN5YMfKZ.cjs → measureFns-_Q-bggOu.cjs} +3 -3
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-Cp8uEpVt.js → meshFns-DBN_h_7v.js} +4 -4
- package/dist/{meshFns-BDn_nIVv.cjs → meshFns-DmKYxmT_.cjs} +4 -4
- package/dist/{occtWasmAdapter-C-Qi-jxS.js → occtWasmAdapter-Be-xZvbQ.js} +3 -2
- package/dist/{occtWasmAdapter-BK--kx4R.cjs → occtWasmAdapter-TX9M5rkb.cjs} +3 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BzJi89Y6.js → primitiveFns-D53I6iYC.js} +5 -5
- package/dist/{primitiveFns-1FcmvZ6Y.cjs → primitiveFns-u5Vnoanh.cjs} +5 -5
- package/dist/{principalBoxFns-farY7tvh.js → principalBoxFns-B3NAkStp.js} +3 -3
- package/dist/{principalBoxFns-DT4ngNuy.cjs → principalBoxFns-Cs3z4CmX.cjs} +3 -3
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-By31fyEv.cjs → refResolveFns-CEx0Xso0.cjs} +6 -6
- package/dist/{refResolveFns-dNAt7W9t.js → refResolveFns-LMvuE8em.js} +6 -6
- package/dist/{shapeFns-381QqZ8n.js → shapeFns-24B0u4KE.js} +2 -2
- package/dist/{shapeFns-DhTfkxbN.cjs → shapeFns-CahtmyZr.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-C0NcoN5g.cjs → shapeTypes-6tBG0xrR.cjs} +1 -1
- package/dist/{shapeTypes-DfBx__EF.js → shapeTypes-DZGS7hgn.js} +1 -1
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BZ1qXlFZ.js → solidBuilders-BHGa-BWa.js} +3 -3
- package/dist/{solidBuilders-VPkj5ChQ.cjs → solidBuilders-Dl6d8fGZ.cjs} +3 -3
- package/dist/{surfaceBuilders-sBre5aYy.js → surfaceBuilders-BVyLEFoG.js} +3 -3
- package/dist/{surfaceBuilders-DQre19g8.cjs → surfaceBuilders-BtYpRGXh.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-ChDNr0L4.cjs → textBlueprints-C1aPqvXX.cjs} +8 -8
- package/dist/{textBlueprints-DCorV4gM.js → textBlueprints-CihV6AGR.js} +8 -8
- package/dist/{textMetrics-C0qTX3sH.cjs → textMetrics-BhTII8oU.cjs} +1 -1
- package/dist/{textMetrics-ByzyMC1I.js → textMetrics-CTA6sIE_.js} +1 -1
- package/dist/{threadFns-AJP69FU6.js → threadFns-B2Foaws1.js} +7 -7
- package/dist/{threadFns-CzWqzDN_.cjs → threadFns-BK2TDl2R.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-CTCsQIH_.js → topologyQueryFns-BRXpZFCi.js} +1 -1
- package/dist/{topologyQueryFns-svM8Yfsk.cjs → topologyQueryFns-t8CbgIAS.cjs} +1 -1
- package/dist/{validityTypes-BCUWXQNA.cjs → validityTypes-CT2goK1c.cjs} +1 -1
- package/dist/{validityTypes-DrWg6_qM.js → validityTypes-OSx482aJ.js} +1 -1
- package/package.json +1 -1
package/dist/io/ioUtils.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { KernelShape } from '../kernel/types.js';
|
|
2
2
|
import { UnknownDimShape } from '../core/shapeTypes.js';
|
|
3
3
|
import { Result } from '../core/result.js';
|
|
4
|
+
import { MeshTopology } from './meshTopology.js';
|
|
5
|
+
type Vec3 = [number, number, number];
|
|
4
6
|
/**
|
|
5
7
|
* Sew faces into one solid per closed body.
|
|
6
8
|
*
|
|
@@ -10,18 +12,34 @@ import { Result } from '../core/result.js';
|
|
|
10
12
|
* inward-facing closed shell inside another body is a cavity, cut from that
|
|
11
13
|
* body. The caller keeps ownership of `faces`.
|
|
12
14
|
*
|
|
15
|
+
* Pass `mesh`, the {@link sewableTopology} of the triangles `faces` were built
|
|
16
|
+
* from (face `i` from triangle `i`), to skip the kernel's orientation
|
|
17
|
+
* repair, which is nearly all of the time: when the sewn faces have exactly the
|
|
18
|
+
* vertices, edges, and shells it predicts, each closed body becomes a solid
|
|
19
|
+
* straight from its shell.
|
|
20
|
+
*
|
|
13
21
|
* @throws When the kernel cannot sew the faces at all.
|
|
14
22
|
*/
|
|
15
|
-
export declare function sewFacesIntoSolids(faces: KernelShape[], tolerance: number): UnknownDimShape;
|
|
23
|
+
export declare function sewFacesIntoSolids(faces: KernelShape[], tolerance: number, mesh?: MeshTopology | null): UnknownDimShape;
|
|
24
|
+
/**
|
|
25
|
+
* The {@link analyzeMesh} topology of the triangles in `positions` (nine
|
|
26
|
+
* coordinates per triangle) for {@link sewFacesIntoSolids}, or `null` when the
|
|
27
|
+
* mesh fails the analysis or the kernel's sewing may reorient faces.
|
|
28
|
+
*/
|
|
29
|
+
export declare function sewableTopology(positions: ArrayLike<number> | null): MeshTopology | null;
|
|
16
30
|
/**
|
|
17
|
-
* Build triangular B-Rep faces from vertex data and sew them into solids
|
|
31
|
+
* Build triangular B-Rep faces from vertex data and sew them into solids with
|
|
32
|
+
* {@link sewFacesIntoSolids}.
|
|
18
33
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
34
|
+
* A mesh with a {@link sewableTopology} gets its faces from the kernel's STL
|
|
35
|
+
* reader, already sharing edges, when the kernel reads an STL into faces.
|
|
36
|
+
* Otherwise `kernel.buildTriFace` builds a planar face per triangle.
|
|
21
37
|
*
|
|
22
38
|
* @param triangles - Array of vertex triples, each triple being three [x,y,z] tuples.
|
|
23
39
|
* @param errorCode - The error code to use in any returned errors.
|
|
24
40
|
* @param tolerance - Sewing tolerance (default 1e-6).
|
|
41
|
+
* @param mesh - The triangles' {@link sewableTopology}, when the caller already has it.
|
|
25
42
|
* @returns A `Result` wrapping the sewn shape, or an error.
|
|
26
43
|
*/
|
|
27
|
-
export declare function sewMeshToSolid(triangles: Array<[
|
|
44
|
+
export declare function sewMeshToSolid(triangles: Array<[Vec3, Vec3, Vec3]>, errorCode: string, tolerance?: number, mesh?: MeshTopology | null): Result<UnknownDimShape>;
|
|
45
|
+
export {};
|
package/dist/io/meshNesting.d.ts
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import { AnyShape, Dimension, Shell } from '../core/shapeTypes.js';
|
|
2
2
|
type Body = AnyShape<Dimension>;
|
|
3
|
+
type Vec3 = [number, number, number];
|
|
4
|
+
export interface Box {
|
|
5
|
+
min: Vec3;
|
|
6
|
+
max: Vec3;
|
|
7
|
+
}
|
|
8
|
+
/** Triangles as vertex coordinates (three per vertex) and vertex indices (three per triangle). */
|
|
9
|
+
interface Triangles {
|
|
10
|
+
vertices: ArrayLike<number>;
|
|
11
|
+
triangles: ArrayLike<number>;
|
|
12
|
+
}
|
|
13
|
+
/** What nesting needs to know about a closed body. */
|
|
14
|
+
export interface BodyOutline {
|
|
15
|
+
box(): Box;
|
|
16
|
+
/** The body's boundary as triangles. */
|
|
17
|
+
mesh(): Triangles;
|
|
18
|
+
/** Whether the body's triangles faced inward before it was solidified. */
|
|
19
|
+
facesInward(): boolean;
|
|
20
|
+
}
|
|
21
|
+
/** The outline of `body`, read from the kernel; `shell` is the sewn shell it was built from. */
|
|
22
|
+
export declare function shellOutline(body: Body, shell: Shell): BodyOutline;
|
|
3
23
|
/**
|
|
4
|
-
* The parts to keep: `bodies` (each
|
|
5
|
-
* with every cavity cut from the body around it and left out. Cut
|
|
6
|
-
* pushed to `owned` for the caller to dispose; no input is disposed
|
|
24
|
+
* The parts to keep: `bodies` (each described by the same-index entry of
|
|
25
|
+
* `outlines`) with every cavity cut from the body around it and left out. Cut
|
|
26
|
+
* results are pushed to `owned` for the caller to dispose; no input is disposed
|
|
27
|
+
* here.
|
|
7
28
|
*
|
|
8
29
|
* @throws When meshing or a cut fails, rather than leave a cavity filled.
|
|
9
30
|
*/
|
|
10
|
-
export declare function carveCavities(bodies: Body[],
|
|
31
|
+
export declare function carveCavities(bodies: Body[], outlines: Array<BodyOutline | undefined>, owned: Body[]): Body[];
|
|
11
32
|
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BodyOutline } from './meshNesting.js';
|
|
2
|
+
/** Triangles joined edge to edge. */
|
|
3
|
+
export interface MeshBody {
|
|
4
|
+
/** Indices of the body's triangles in the mesh. */
|
|
5
|
+
readonly triangles: readonly number[];
|
|
6
|
+
readonly vertexCount: number;
|
|
7
|
+
readonly edgeCount: number;
|
|
8
|
+
/** Every edge joins two of the body's triangles. */
|
|
9
|
+
readonly closed: boolean;
|
|
10
|
+
/** Enclosed volume, negative when the triangles face inward. Zero for an open body. */
|
|
11
|
+
readonly volume: number;
|
|
12
|
+
}
|
|
13
|
+
export interface MeshTopology {
|
|
14
|
+
readonly vertexCount: number;
|
|
15
|
+
readonly edgeCount: number;
|
|
16
|
+
readonly bodies: readonly MeshBody[];
|
|
17
|
+
/** Welded vertex coordinates, three per vertex. */
|
|
18
|
+
readonly vertices: Float64Array;
|
|
19
|
+
/** Welded vertex indices, three per triangle in the mesh's order. */
|
|
20
|
+
readonly corners: Uint32Array;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The topology of the triangles in `positions` (nine coordinates per triangle),
|
|
24
|
+
* welding vertices whose coordinates are identical.
|
|
25
|
+
*
|
|
26
|
+
* Returns `null` for a mesh that sewing might change rather than reproduce: a
|
|
27
|
+
* non-finite coordinate, a triangle with a repeated vertex or no area, an edge
|
|
28
|
+
* shared by more than two triangles, two triangles running the same direction
|
|
29
|
+
* along their shared edge, or a closed body that encloses no volume.
|
|
30
|
+
*/
|
|
31
|
+
export declare function analyzeMesh(positions: ArrayLike<number>): MeshTopology | null;
|
|
32
|
+
/** What nesting needs to know about a closed body of `mesh`, read from its triangles. */
|
|
33
|
+
export declare function meshBodyOutline(mesh: MeshTopology, body: MeshBody): BodyOutline;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The triangles of an STL file, read in JavaScript so the importer can check the
|
|
3
|
+
* mesh's topology before the kernel sews it.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The corner coordinates of every facet, nine per triangle in file order, or
|
|
7
|
+
* `null` when the file is malformed. Text versus binary is decided as OCCT's
|
|
8
|
+
* reader decides it: binary when any of the first 134 bytes is above `~`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function stlTrianglePositions(data: ArrayBuffer): Float64Array | null;
|
|
@@ -3,14 +3,17 @@ import { Result } from '../core/result.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Import a 3MF file from a Blob.
|
|
5
5
|
*
|
|
6
|
-
* Extracts the model XML from the ZIP archive and builds
|
|
7
|
-
* object by sewing its triangles
|
|
8
|
-
*
|
|
6
|
+
* Extracts the model XML from the ZIP archive and builds a shape per placed
|
|
7
|
+
* object by sewing its triangles as `importSTL` sews a file: a `Solid` per
|
|
8
|
+
* closed body, a `Shell` per open one, and each sealed cavity cut from the body
|
|
9
|
+
* around it. Build-item and component transforms are applied, and coordinates
|
|
10
|
+
* are scaled from the model `unit` to millimeters.
|
|
9
11
|
*
|
|
10
12
|
* @param blob - A Blob or File containing 3MF data (.3mf).
|
|
11
|
-
* @returns A `Result` wrapping the imported
|
|
12
|
-
*
|
|
13
|
-
* expands to more than 100,000 placed objects or
|
|
13
|
+
* @returns A `Result` wrapping the imported shape (a `Compound` when the build
|
|
14
|
+
* places several objects or an object holds several bodies), or an error if
|
|
15
|
+
* parsing fails or the build expands to more than 100,000 placed objects or
|
|
16
|
+
* 2,000,000 triangles.
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* ```ts
|
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-DmKYxmT_.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-1qi--R8S.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 exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-DBN_h_7v.js";
|
|
2
|
+
import { a as exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-DTyCvMc3.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -30,10 +30,18 @@ export interface KernelCapabilities {
|
|
|
30
30
|
* or fillet. Kernels that rebuild the maps by geometric matching leave it unset.
|
|
31
31
|
*/
|
|
32
32
|
readonly nativeHistory?: boolean | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* `sew` keeps every face's orientation, so faces wound consistently sew into a
|
|
35
|
+
* consistently oriented shell, and `solidFromShell` bounds the solid by that
|
|
36
|
+
* shell as it is (after `reverseShape`, by its inside-out twin). Mesh import
|
|
37
|
+
* relies on it to build solids without an orientation repair pass. Kernels
|
|
38
|
+
* that reorient while sewing leave it unset.
|
|
39
|
+
*/
|
|
40
|
+
readonly sewKeepsOrientation?: boolean | undefined;
|
|
33
41
|
}
|
|
34
42
|
/** Default for an exact B-rep kernel (OCCT family, brepkit). */
|
|
35
43
|
export declare const EXACT_BREP_CAPABILITIES: KernelCapabilities;
|
|
36
|
-
/** OCCT-family kernels: exact B-rep with OCCT's own shape history. */
|
|
44
|
+
/** OCCT-family kernels: exact B-rep with OCCT's own shape history and sewing. */
|
|
37
45
|
export declare const OCCT_CAPABILITIES: KernelCapabilities;
|
|
38
46
|
/**
|
|
39
47
|
* Conservative fallback for a kernel that doesn't declare capabilities: assume
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_occtWasmAdapter = require("../../occtWasmAdapter-
|
|
2
|
+
const require_occtWasmAdapter = require("../../occtWasmAdapter-TX9M5rkb.cjs");
|
|
3
3
|
exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-
|
|
1
|
+
export { t as OcctWasmAdapter } from "../../occtWasmAdapter-Be-xZvbQ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
3
|
const require_types = require("./types-CjF9Rofr.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
3
|
import { r as toVec3 } from "./types-CKXsIm9-.js";
|
|
4
4
|
import { c as vecLength, t as vecAdd } from "./vecOps-S-m9H_fe.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-BRXpZFCi.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-Ek2vnYA8.js";
|
|
5
5
|
// src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-ClpZLuHU.cjs");
|
|
5
5
|
// src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
3
|
-
const require_principalBoxFns = require("./principalBoxFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-_Q-bggOu.cjs");
|
|
3
|
+
const require_principalBoxFns = require("./principalBoxFns-Cs3z4CmX.cjs");
|
|
4
4
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
5
5
|
exports.measureArea = require_measureFns.measureArea;
|
|
6
6
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
2
|
-
import { t as principalBoundingBox } from "./principalBoxFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-NLCrquKi.js";
|
|
2
|
+
import { t as principalBoundingBox } from "./principalBoxFns-B3NAkStp.js";
|
|
3
3
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, principalBoundingBox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-
|
|
2
|
-
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-
|
|
1
|
+
import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-DZGS7hgn.js";
|
|
2
|
+
import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-Be-xZvbQ.js";
|
|
3
3
|
import { E as ok, g as err, r as ioError, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
5
|
-
import { d as getFaceOrigins } from "./solidBuilders-
|
|
4
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-BRXpZFCi.js";
|
|
5
|
+
import { d as getFaceOrigins } from "./solidBuilders-BHGa-BWa.js";
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-TX9M5rkb.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-Dl6d8fGZ.cjs");
|
|
6
6
|
// src/topology/meshCache.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -7,10 +7,11 @@ var EXACT_BREP_CAPABILITIES = {
|
|
|
7
7
|
exactMeasurement: true,
|
|
8
8
|
tessellationModel: "extract-time"
|
|
9
9
|
};
|
|
10
|
-
/** OCCT-family kernels: exact B-rep with OCCT's own shape history. */
|
|
10
|
+
/** OCCT-family kernels: exact B-rep with OCCT's own shape history and sewing. */
|
|
11
11
|
var OCCT_CAPABILITIES = {
|
|
12
12
|
...EXACT_BREP_CAPABILITIES,
|
|
13
|
-
nativeHistory: true
|
|
13
|
+
nativeHistory: true,
|
|
14
|
+
sewKeepsOrientation: true
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Conservative fallback for a kernel that doesn't declare capabilities: assume
|
|
@@ -7,10 +7,11 @@ var EXACT_BREP_CAPABILITIES = {
|
|
|
7
7
|
exactMeasurement: true,
|
|
8
8
|
tessellationModel: "extract-time"
|
|
9
9
|
};
|
|
10
|
-
/** OCCT-family kernels: exact B-rep with OCCT's own shape history. */
|
|
10
|
+
/** OCCT-family kernels: exact B-rep with OCCT's own shape history and sewing. */
|
|
11
11
|
var OCCT_CAPABILITIES = {
|
|
12
12
|
...EXACT_BREP_CAPABILITIES,
|
|
13
|
-
nativeHistory: true
|
|
13
|
+
nativeHistory: true,
|
|
14
|
+
sewKeepsOrientation: true
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Conservative fallback for a kernel that doesn't declare capabilities: assume
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_threadFns = require("./threadFns-
|
|
3
|
-
const require_loftFns = require("./loftFns-
|
|
2
|
+
const require_threadFns = require("./threadFns-BK2TDl2R.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-BqA5gWFR.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as updateNode } from "./threadFns-
|
|
2
|
-
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as updateNode } from "./threadFns-B2Foaws1.js";
|
|
2
|
+
import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-DbXEtPKz.js";
|
|
3
3
|
export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { n as isClosedWire } from "./validityTypes-
|
|
3
|
+
import { n as isClosedWire } from "./validityTypes-OSx482aJ.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-iraOnb2p.js";
|
|
5
5
|
import { d as vecNormalize, h as vecScale } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
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-
|
|
7
|
-
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-
|
|
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-
|
|
6
|
+
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-BHGa-BWa.js";
|
|
7
|
+
import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-Dcv_aMcv.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-BVyLEFoG.js";
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-CT2goK1c.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_booleanFns = require("./booleanFns-
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-Dl6d8fGZ.cjs");
|
|
7
|
+
const require_booleanFns = require("./booleanFns-CvBttd1y.cjs");
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BtYpRGXh.cjs");
|
|
9
9
|
// src/topology/transformFns.ts
|
|
10
10
|
/**
|
|
11
11
|
* Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { i as wasmIndex } from "./bug-ClMTAJhe.js";
|
|
3
3
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
|
|
4
|
-
import { E as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
+
import { E as kernelCallRaw } from "./topologyQueryFns-BRXpZFCi.js";
|
|
5
5
|
import { r as vecCross } from "./vecOps-S-m9H_fe.js";
|
|
6
|
-
import { f as withCompoundOf, h as setCachedMeasurement, m as getCachedMeasurement, p as withSubShapes } from "./measureFns-
|
|
6
|
+
import { f as withCompoundOf, h as setCachedMeasurement, m as getCachedMeasurement, p as withSubShapes } from "./measureFns-NLCrquKi.js";
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_bug = require("./bug-CBcpIPuf.cjs");
|
|
3
3
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
4
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_measureFns = require("./measureFns-_Q-bggOu.cjs");
|
|
7
7
|
// src/measurement/principalBoxFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Principal-axes bounding box: a solid's extent measured in the frame of its
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-Ds_tNjP7.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-
|
|
1
|
+
export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-xIy84D75.js";
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-ClWqvNl5.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-BUj9Ms_n.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-TeE5hIEo.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-BEUeERZd.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-ClpZLuHU.cjs");
|
|
4
4
|
const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_measureFns = require("./measureFns-
|
|
7
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
5
|
+
const require_shapeFns = require("./shapeFns-CahtmyZr.cjs");
|
|
6
|
+
const require_measureFns = require("./measureFns-_Q-bggOu.cjs");
|
|
7
|
+
const require_adjacencyFns = require("./adjacencyFns-DyHi1paM.cjs");
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
1
|
+
import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-DZGS7hgn.js";
|
|
2
|
+
import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-BRXpZFCi.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Ek2vnYA8.js";
|
|
4
4
|
import { t as getFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
|
|
5
|
-
import { n as getHashCode } from "./shapeFns-
|
|
6
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
7
|
-
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-
|
|
5
|
+
import { n as getHashCode } from "./shapeFns-24B0u4KE.js";
|
|
6
|
+
import { n as measureArea, s as measureLength } from "./measureFns-NLCrquKi.js";
|
|
7
|
+
import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-DT8YVOtE.js";
|
|
8
8
|
// src/topology/shapeRef/scoring.ts
|
|
9
9
|
/**
|
|
10
10
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { t as BrepErrorCode } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-
|
|
3
|
+
import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-BRXpZFCi.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
5
|
// src/topology/shapeFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
5
|
// src/topology/shapeFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
2
|
+
const require_refResolveFns = require("./refResolveFns-CEx0Xso0.cjs");
|
|
3
3
|
exports.assignRoles = require_refResolveFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_refResolveFns.captureHint;
|
|
5
5
|
exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-LMvuE8em.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as UnsupportedKernelOperationError, C as reverseCurve2d$2, D as tangentCurve2d, E as serializeCurve2d$2, N as EXACT_BREP_CAPABILITIES, O as translateCurve2d$2, P as OCCT_CAPABILITIES, S as offsetCurve2d$2, T as scaleCurve2d$2, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as isUnsupportedKernelOperationError, k as quickHull, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as rotateCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-
|
|
1
|
+
import { A as UnsupportedKernelOperationError, C as reverseCurve2d$2, D as tangentCurve2d, E as serializeCurve2d$2, N as EXACT_BREP_CAPABILITIES, O as translateCurve2d$2, P as OCCT_CAPABILITIES, S as offsetCurve2d$2, T as scaleCurve2d$2, _ as makeCircle2d$2, a as buildAsciiSTL, b as mirrorAcrossAxis, c as createBBox2d, d as deserializeCurve2d$2, f as evaluateCurve2d$2, g as makeBezier2d$2, h as makeArc2dThreePoints, i as DEFAULT_STL_TOLERANCE, j as isUnsupportedKernelOperationError, k as quickHull, l as curveBounds, m as makeArc2dTangent, o as buildBinarySTL, p as intersectCurves2dFn, r as DEFAULT_STL_ANGULAR_TOLERANCE, s as addCurveToBBox, t as OcctWasmAdapter, u as curveTypeName, v as makeEllipse2d$2, w as rotateCurve2d$2, x as mirrorAtPoint, y as makeLine2d$2 } from "./occtWasmAdapter-Be-xZvbQ.js";
|
|
2
2
|
import { i as wasmIndex, r as vec3At } from "./bug-ClMTAJhe.js";
|
|
3
3
|
// src/kernel/quality.ts
|
|
4
4
|
/**
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-C5Nn6Yi7.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-CkHnrB4o.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-C1aPqvXX.cjs");
|
|
5
5
|
// src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-C28vnWYu.js";
|
|
2
|
+
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BPskIgvL.js";
|
|
3
|
+
import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-CihV6AGR.js";
|
|
4
4
|
// src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { E as ok, g as err, l as typeCastError, m as andThen } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-
|
|
3
|
+
import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-BRXpZFCi.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
|
|
5
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
5
|
+
import { _ as cast, y as downcast } from "./faceFns-Ek2vnYA8.js";
|
|
6
6
|
// src/topology/metadata/originTrackingFns.ts
|
|
7
7
|
/**
|
|
8
8
|
* Face origin tracking — tag faces with integer origins and propagate
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-6tBG0xrR.cjs");
|
|
2
2
|
const require_errors = require("./errors-O_blYTWT.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-t8CbgIAS.cjs");
|
|
4
4
|
const require_constants = require("./constants-oee0S_x6.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
+
const require_faceFns = require("./faceFns-ClpZLuHU.cjs");
|
|
6
6
|
// src/topology/metadata/originTrackingFns.ts
|
|
7
7
|
/**
|
|
8
8
|
* Face origin tracking — tag faces with integer origins and propagate
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-DZGS7hgn.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-BTccWbtE.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-OSx482aJ.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-Ek2vnYA8.js";
|
|
5
5
|
// src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|