brepjs 18.33.2 → 18.34.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-CDjFNsmN.cjs → blueprint-Ctq3YI2J.cjs} +5 -5
- package/dist/{blueprint-CNczvCJD.js → blueprint-Dgn4HasF.js} +5 -5
- package/dist/{blueprintFns-HxHdlOrY.cjs → blueprintFns-BSc5kM0e.cjs} +2 -2
- package/dist/{blueprintFns-DT6oP1MU.js → blueprintFns-CJ8_2wwd.js} +2 -2
- package/dist/{blueprintSketcher-C1zl__qM.cjs → blueprintSketcher-DHzyZSgL.cjs} +3 -3
- package/dist/{blueprintSketcher-BvEwuvyJ.js → blueprintSketcher-DfN5LL45.js} +3 -3
- package/dist/{boolean2D-BczOZwlF.js → boolean2D-BDVlp701.js} +4 -4
- package/dist/{boolean2D-DLV8HNif.cjs → boolean2D-DRlzu7K9.cjs} +4 -4
- package/dist/{booleanFns-CLCbionN.cjs → booleanFns-BZEfiLXh.cjs} +4 -4
- package/dist/{booleanFns-lDauFalY.js → booleanFns-CE3u1eIK.js} +4 -4
- package/dist/brepjs.cjs +25 -24
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-Byav4AXt.js → cameraFns-CFnPg5-H.js} +2 -2
- package/dist/{cameraFns-nPL5-xZH.cjs → cameraFns-D8o9TUpN.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CifMFbIN.js → cornerFinder-B1DivYhK.js} +1 -1
- package/dist/{cornerFinder-DPlpHmJl.cjs → cornerFinder-B3DEv78h.cjs} +1 -1
- package/dist/{curveFns-Dvtp5oZA.js → curveFns-CwBnLSGs.js} +1 -1
- package/dist/{curveFns-DbpQH6-9.cjs → curveFns-ZXCrxKal.cjs} +1 -1
- package/dist/{drawFns-uS1tM6dz.cjs → drawFns-B3xmKGqo.cjs} +12 -12
- package/dist/{drawFns-BFi1hoid.js → drawFns-DmDtAGJ3.js} +12 -12
- package/dist/{extrudeFns-CE8C7QRv.js → extrudeFns-B2Jh4xdE.js} +1 -1
- package/dist/{extrudeFns-Bab5Fw_k.cjs → extrudeFns-BCHwL5Rz.cjs} +1 -1
- package/dist/{faceFns-Cfgrt9P9.js → faceFns-43zWb-uD.js} +2 -2
- package/dist/{faceFns-B5C-nw1v.cjs → faceFns-dIScXlyz.cjs} +2 -2
- package/dist/{helpers-Cy-JYZot.js → helpers-BcvfYBlZ.js} +6 -6
- package/dist/{helpers-C7wSoEZ6.cjs → helpers-WD_MY4EK.cjs} +6 -6
- package/dist/{historyFns-qZaNV5QN.js → historyFns-CesKJg-g.js} +4 -4
- package/dist/{historyFns-BDy3Iq3O.cjs → historyFns-D0-tL5u2.cjs} +4 -4
- package/dist/{importFns-CJggKtP3.cjs → importFns-CfXF57GK.cjs} +2 -2
- package/dist/{importFns-B7R0bXrT.js → importFns-nh6XUS6V.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/index.d.ts +3 -4
- package/dist/kernel/manifold/approximations.d.ts +74 -0
- package/dist/kernel/manifold/booleanOps.d.ts +3 -0
- package/dist/kernel/manifold/builderOps.d.ts +3 -0
- package/dist/kernel/manifold/constraintSketchOps.d.ts +3 -0
- package/dist/kernel/manifold/evolutionOps.d.ts +3 -0
- package/dist/kernel/manifold/geometryOps.d.ts +4 -0
- package/dist/kernel/manifold/helpers.d.ts +3 -0
- package/dist/kernel/manifold/ioOps.d.ts +3 -0
- package/dist/kernel/manifold/kernel2dOps.d.ts +3 -0
- package/dist/kernel/manifold/manifoldAdapter.d.ts +9 -0
- package/dist/kernel/manifold/measureOps.d.ts +15 -0
- package/dist/kernel/manifold/meshHandle.d.ts +15 -0
- package/dist/kernel/manifold/meshOps.d.ts +8 -0
- package/dist/kernel/manifold/modifierOps.d.ts +3 -0
- package/dist/kernel/manifold/opGraph.d.ts +35 -0
- package/dist/kernel/manifold/primitiveOps.d.ts +3 -0
- package/dist/kernel/manifold/projectionOps.d.ts +3 -0
- package/dist/kernel/manifold/repairOps.d.ts +3 -0
- package/dist/kernel/manifold/replay.d.ts +11 -0
- package/dist/kernel/manifold/sweepOps.d.ts +3 -0
- package/dist/kernel/manifold/topologyOps.d.ts +3 -0
- package/dist/kernel/manifold/transformOps.d.ts +32 -0
- package/dist/{measureFns-_3tK7mBN.cjs → measureFns-BlNPRAt1.cjs} +3 -3
- package/dist/{measureFns-CcednQHe.js → measureFns-CZPHU8Fq.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BIuX88EN.js → meshFns-44MzVWmw.js} +2 -2
- package/dist/{meshFns-6oVWvaGE.cjs → meshFns-thnWU79u.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-B0DKFED_.js → primitiveFns-7-BpVEfR.js} +7 -7
- package/dist/{primitiveFns-72G-cDZo.cjs → primitiveFns-wcHq2Dpc.cjs} +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-D1LQT1YP.cjs → shapeFns-DpurOSYX.cjs} +2 -2
- package/dist/{shapeFns-B1ThqSpi.js → shapeFns-tYJBM_yH.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-_AmQNqEz.cjs → shapeRefFns-DNlnIVGa.cjs} +4 -4
- package/dist/{shapeRefFns-M9z1C2Te.js → shapeRefFns-DhkB2xrl.js} +4 -4
- package/dist/{shapeTypes-BXXHBHal.cjs → shapeTypes-C16Am1Cu.cjs} +3827 -518
- package/dist/{shapeTypes-DnYvZd61.js → shapeTypes-DgIDUXrS.js} +3629 -326
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BGzd3NKL.cjs → solidBuilders-BRd294hA.cjs} +2 -2
- package/dist/{solidBuilders-C4tUlAlA.js → solidBuilders-oYCo3H_H.js} +2 -2
- package/dist/{surfaceBuilders-Di8LHBU7.js → surfaceBuilders-BuNn7mbE.js} +2 -2
- package/dist/{surfaceBuilders-lVyiCPIU.cjs → surfaceBuilders-C-MXZeRY.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BtPob4Le.js → textBlueprints-4DfEJMBH.js} +7 -7
- package/dist/{textBlueprints-hDFeOHnt.cjs → textBlueprints-ihVTYQz7.cjs} +7 -7
- package/dist/{textMetrics-BAFPvbuw.js → textMetrics-CgtxG_bI.js} +1 -1
- package/dist/{textMetrics-_u9W8BcO.cjs → textMetrics-KvDcXO5Z.cjs} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-mWrJgMdr.js → topologyQueryFns-DNs19Af_.js} +1 -1
- package/dist/{topologyQueryFns-DTVysRV-.cjs → topologyQueryFns-DTvwHQnu.cjs} +1 -1
- package/package.json +6 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Z as getKernel, p as isFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, p as isFace } from "./shapeTypes-DgIDUXrS.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
3
|
+
import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DNs19Af_.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
6
|
-
import { c as normalAt, o as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-
|
|
9
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { c as normalAt, o as getSurfaceType } from "./faceFns-43zWb-uD.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-tYJBM_yH.js";
|
|
8
|
+
import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-CwBnLSGs.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-CZPHU8Fq.js";
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
|
-
const require_faceFns = require("./faceFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_curveFns = require("./curveFns-
|
|
9
|
-
const require_measureFns = require("./measureFns-
|
|
6
|
+
const require_faceFns = require("./faceFns-dIScXlyz.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-ZXCrxKal.cjs");
|
|
9
|
+
const require_measureFns = require("./measureFns-BlNPRAt1.cjs");
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,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-DgIDUXrS.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-BJSTLaDI.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-43zWb-uD.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-tYJBM_yH.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-CE3u1eIK.js";
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.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-dIScXlyz.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-BZEfiLXh.cjs");
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-Ctq3YI2J.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.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-BJSTLaDI.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-Dgn4HasF.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) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* brepjs — Public API
|
|
3
3
|
*/
|
|
4
|
-
export { init, initFromOC, prewarm, getKernel, registerKernel, withKernel, BrepkitAdapter, OcctWasmAdapter, } from './kernel/index.js';
|
|
4
|
+
export { init, initFromOC, initFromManifold, prewarm, getKernel, registerKernel, withKernel, BrepkitAdapter, OcctWasmAdapter, } from './kernel/index.js';
|
|
5
5
|
export type { KernelAdapter, BrepkitHandle, OcctWasmHandle, OcctWasmModule, OcctKernelWasm, SurfaceType, ShapeOrientation, ShapeType, KernelBooleanOps, KernelBuilderOps, KernelCore, KernelCurveOps, KernelEvolutionOps, KernelIOOps, KernelMeasureOps, KernelMeshOps, KernelModifierOps, KernelPrimitiveOps, KernelRepairOps, KernelSurfaceOps, KernelSweepOps, KernelTopologyOps, KernelTransformOps, } from './kernel/index.js';
|
|
6
6
|
export { supportsProjection, supportsConstraintSketch } from './kernel/index.js';
|
|
7
7
|
export type { ProjectionCapability, ConstraintSketchCapability } from './kernel/index.js';
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
2
|
+
const require_meshFns = require("./meshFns-thnWU79u.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-CfXF57GK.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-44MzVWmw.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-nh6XUS6V.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
package/dist/kernel/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { KernelAdapter, KernelInstance } from './types.js';
|
|
2
2
|
import { Kernel2DCapability } from './kernel2dTypes.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
3
|
+
type ManifoldModule = any;
|
|
4
|
+
/** Initialise and register the manifold kernel from a loaded manifold-3d module. */
|
|
5
|
+
export declare function initFromManifold(module: ManifoldModule): void;
|
|
7
6
|
export declare function registerKernel(id: string, adapter: KernelAdapter): void;
|
|
8
7
|
/**
|
|
9
8
|
* Return a kernel adapter by id, or the default kernel if no id is given.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ManifoldSolid } from './meshHandle.js';
|
|
2
|
+
import { ManifoldModule } from './helpers.js';
|
|
3
|
+
export type Vec2 = readonly [number, number];
|
|
4
|
+
export type Vec3 = readonly [number, number, number];
|
|
5
|
+
/** A planar cross-section: a 2D outline plus the world frame it lives in. */
|
|
6
|
+
export interface CrossSection {
|
|
7
|
+
/** Closed outline in the section's local 2D coordinates (no repeated last point). */
|
|
8
|
+
readonly outline: Vec2[];
|
|
9
|
+
/** World-space origin of the section plane. */
|
|
10
|
+
readonly origin: Vec3;
|
|
11
|
+
/** Section local +X axis in world space (maps outline.x). */
|
|
12
|
+
readonly xAxis: Vec3;
|
|
13
|
+
/** Section local +Y axis in world space (maps outline.y). */
|
|
14
|
+
readonly yAxis: Vec3;
|
|
15
|
+
}
|
|
16
|
+
/** A moving frame along a sweep path (origin + section-plane basis). */
|
|
17
|
+
export interface SweepFrame {
|
|
18
|
+
readonly origin: Vec3;
|
|
19
|
+
readonly xAxis: Vec3;
|
|
20
|
+
readonly yAxis: Vec3;
|
|
21
|
+
readonly tangent: Vec3;
|
|
22
|
+
}
|
|
23
|
+
export declare function dot(a: Vec3, b: Vec3): number;
|
|
24
|
+
export declare function cross(a: Vec3, b: Vec3): Vec3;
|
|
25
|
+
export declare function sub(a: Vec3, b: Vec3): Vec3;
|
|
26
|
+
export declare function add(a: Vec3, b: Vec3): Vec3;
|
|
27
|
+
export declare function scaleVec(a: Vec3, s: number): Vec3;
|
|
28
|
+
export declare function length3(a: Vec3): number;
|
|
29
|
+
export declare function normalize3(a: Vec3): Vec3;
|
|
30
|
+
/** Pick any unit vector perpendicular to `n`. */
|
|
31
|
+
export declare function perpendicular(n: Vec3): Vec3;
|
|
32
|
+
/** Build an orthonormal frame (xAxis, yAxis) for a plane with the given normal. */
|
|
33
|
+
export declare function frameForNormal(normal: Vec3): {
|
|
34
|
+
xAxis: Vec3;
|
|
35
|
+
yAxis: Vec3;
|
|
36
|
+
};
|
|
37
|
+
/** Signed area of a 2D loop (CCW positive). */
|
|
38
|
+
export declare function signedArea(outline: readonly Vec2[]): number;
|
|
39
|
+
/** Force CCW winding so generated triangles face outward consistently. */
|
|
40
|
+
export declare function ensureCCW(outline: Vec2[]): Vec2[];
|
|
41
|
+
/**
|
|
42
|
+
* Recover a planar cross-section from a profile handle.
|
|
43
|
+
*
|
|
44
|
+
* Profile handles carry their outline in the op-node params under `outline`
|
|
45
|
+
* (preferred), `polygon`, or `points`, together with an optional plane frame
|
|
46
|
+
* (`origin`/`xAxis`/`yAxis`, or a `normal`). When no polygon is recorded, the
|
|
47
|
+
* outline is derived by projecting the profile's manifold mesh onto the XY plane.
|
|
48
|
+
*/
|
|
49
|
+
export declare function profileCrossSection(profile: unknown): CrossSection;
|
|
50
|
+
/** Monotone-chain 2D convex hull (used only as a mesh-derived fallback outline). */
|
|
51
|
+
export declare function convexHull2D(points: readonly Vec2[]): Vec2[];
|
|
52
|
+
/** Triangle indices that fan a convex/simple closed loop of `vertexCount` points. */
|
|
53
|
+
export declare function fanTriangulate(vertexCount: number): number[];
|
|
54
|
+
/**
|
|
55
|
+
* Place a section's local outline at a world frame, returning a ring of points
|
|
56
|
+
* in correspondence with the section's outline order. `scale` rescales the
|
|
57
|
+
* outline about its frame origin (for tapered/draft sweeps and scale laws).
|
|
58
|
+
*/
|
|
59
|
+
export declare function placeRing(section: CrossSection, frame: SweepFrame, scale?: number): Vec3[];
|
|
60
|
+
/**
|
|
61
|
+
* Skin a sequence of equally-sized rings (each an array of world-space points
|
|
62
|
+
* in correspondence) into a watertight triangle mesh and build a Manifold solid.
|
|
63
|
+
*
|
|
64
|
+
* Every ring must have the same vertex count `m`. Adjacent rings are connected
|
|
65
|
+
* with two triangles per segment; the first and last rings are capped with fans
|
|
66
|
+
* (oriented outward). This is the shared engine behind loft and sweep.
|
|
67
|
+
*/
|
|
68
|
+
export declare function skinRings(module: ManifoldModule, rings: readonly Vec3[][]): ManifoldSolid;
|
|
69
|
+
/**
|
|
70
|
+
* Build rotation-minimizing frames (double-reflection method) along a polyline
|
|
71
|
+
* path. Returns one frame per path point; the section's in-plane axes are
|
|
72
|
+
* carried so the profile keeps a stable orientation around corners.
|
|
73
|
+
*/
|
|
74
|
+
export declare function rotationMinimizingFrames(path: readonly Vec3[], seed: Vec3): SweepFrame[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { KernelCurveOps } from '../interfaces/curveOps.js';
|
|
2
|
+
import { KernelSurfaceOps } from '../interfaces/surfaceOps.js';
|
|
3
|
+
import { ManifoldModule } from './helpers.js';
|
|
4
|
+
export declare function makeGeometryOps(_module: ManifoldModule): KernelCurveOps & KernelSurfaceOps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KernelAdapter } from '../interfaces/index.js';
|
|
2
|
+
import { ManifoldModule } from './helpers.js';
|
|
3
|
+
export interface ManifoldAdapter extends KernelAdapter {
|
|
4
|
+
}
|
|
5
|
+
export declare class ManifoldAdapter {
|
|
6
|
+
readonly oc: any;
|
|
7
|
+
readonly kernelId = "manifold";
|
|
8
|
+
constructor(module: ManifoldModule);
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BulkMeasurement, KernelMeasureOps } from '../interfaces/measureOps.js';
|
|
2
|
+
import { DistanceResult, KernelShape } from '../types.js';
|
|
3
|
+
import { ManifoldModule } from './helpers.js';
|
|
4
|
+
type Vec3 = [number, number, number];
|
|
5
|
+
export declare function volume(shape: KernelShape): number;
|
|
6
|
+
export declare function area(shape: KernelShape): number;
|
|
7
|
+
export declare function boundingBox(shape: KernelShape): {
|
|
8
|
+
min: Vec3;
|
|
9
|
+
max: Vec3;
|
|
10
|
+
};
|
|
11
|
+
export declare function centerOfMass(shape: KernelShape): Vec3;
|
|
12
|
+
export declare function distance(shape1: KernelShape, shape2: KernelShape): DistanceResult;
|
|
13
|
+
export declare function measureBulk(shape: KernelShape, _includeLinear?: boolean): BulkMeasurement;
|
|
14
|
+
export declare function makeMeasureOps(_module: ManifoldModule): KernelMeasureOps;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KernelAdapter } from '../interfaces/index.js';
|
|
2
|
+
import { KernelShape } from '../types.js';
|
|
3
|
+
import { OpNode } from './opGraph.js';
|
|
4
|
+
export type ManifoldSolid = any;
|
|
5
|
+
export interface ManifoldShape {
|
|
6
|
+
readonly manifold: ManifoldSolid;
|
|
7
|
+
readonly node: OpNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function wrap(manifold: ManifoldSolid, node: OpNode): ManifoldShape;
|
|
10
|
+
export declare function unwrap(shape: ManifoldShape): ManifoldSolid;
|
|
11
|
+
export declare function nodeOf(shape: ManifoldShape): OpNode;
|
|
12
|
+
export declare function asManifoldShape(shape: KernelShape): ManifoldShape | undefined;
|
|
13
|
+
export declare function resolveOcct(): KernelAdapter | undefined;
|
|
14
|
+
export declare function occtOrThrow(method: string): KernelAdapter;
|
|
15
|
+
export declare const brepCache: WeakMap<OpNode, KernelShape>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KernelMeshOps } from '../interfaces/meshOps.js';
|
|
2
|
+
import { KernelEdgeMeshResult, KernelMeshResult, KernelShape, MeshOptions } from '../types.js';
|
|
3
|
+
import { ManifoldModule } from './helpers.js';
|
|
4
|
+
export declare function mesh(shape: KernelShape, options: MeshOptions): KernelMeshResult;
|
|
5
|
+
export declare function meshEdges(shape: KernelShape, _tolerance: number, _angularTolerance: number): KernelEdgeMeshResult;
|
|
6
|
+
export declare function hasTriangulation(_shape: KernelShape): boolean;
|
|
7
|
+
export declare function meshShape(_shape: KernelShape, _tolerance: number, _angularTolerance: number): void;
|
|
8
|
+
export declare function makeMeshOps(_module: ManifoldModule): KernelMeshOps;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Op-graph node — the recorded intent behind every manifold shape.
|
|
3
|
+
*
|
|
4
|
+
* Each native manifold operation runs on the mesh AND records an {@link OpNode}
|
|
5
|
+
* capturing its exact parameters (radii, axes, selection predicates, profile
|
|
6
|
+
* outlines). The replay engine ({@link ./replay.js}) walks this graph to
|
|
7
|
+
* reconstruct a true B-rep on another kernel.
|
|
8
|
+
*
|
|
9
|
+
* `OpKind` is intentionally an open string union rather than an enum: op names
|
|
10
|
+
* are validated at replay time against the handler table and the replayable set
|
|
11
|
+
* in {@link ./helpers.js}, not by the type system. The op names currently
|
|
12
|
+
* produced across the adapter are:
|
|
13
|
+
*
|
|
14
|
+
* - primitives: makeBox, makeBoxWithCorners, makeCylinder, makeSphere, makeCone,
|
|
15
|
+
* makeTorus, makeEllipsoid
|
|
16
|
+
* - booleans: makeFuse, makeCut, makeCommon, section, split
|
|
17
|
+
* - transforms: translateShape, rotateShape, scaleShape, mirrorShape,
|
|
18
|
+
* transformShape, generalTransform, generalTransformNonOrthogonal, gridPattern
|
|
19
|
+
* - sweeps: extrude, revolve, revolveVec, loft, loftAdvanced, sweep, simplePipe,
|
|
20
|
+
* sweepWithOptions, sweepPipeShell, helicalSweep, draftPrism
|
|
21
|
+
* - modifiers: fillet, chamfer, chamferDistAngle, shell, thicken, offset,
|
|
22
|
+
* filletVariable, draft, defeature, simplify, reverseShape
|
|
23
|
+
* - builders: hull, hullFromPoints, sewAndSolidify
|
|
24
|
+
* - non-replayable origins: importMesh, importSTEP, importIGES, fromBREP, spine
|
|
25
|
+
*
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
export type OpKind = string;
|
|
29
|
+
export interface OpNode {
|
|
30
|
+
readonly op: OpKind;
|
|
31
|
+
readonly params: Readonly<Record<string, unknown>>;
|
|
32
|
+
readonly inputs: readonly OpNode[];
|
|
33
|
+
readonly replayable: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function makeNode(op: OpKind, params: Readonly<Record<string, unknown>>, inputs: readonly OpNode[]): OpNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KernelAdapter } from '../interfaces/index.js';
|
|
2
|
+
import { KernelShape } from '../types.js';
|
|
3
|
+
import { OpNode } from './opGraph.js';
|
|
4
|
+
/**
|
|
5
|
+
* Replay an op-graph onto `targetKernel`, returning the exact B-rep shape.
|
|
6
|
+
*
|
|
7
|
+
* Memoized post-order: each node's inputs are replayed first (deduplicated via
|
|
8
|
+
* the shared cache so a DAG with reused sub-graphs replays each node once), then
|
|
9
|
+
* the node's own handler runs. Throws on any non-replayable node or unmapped op.
|
|
10
|
+
*/
|
|
11
|
+
export declare function replay(node: OpNode, targetKernel: KernelAdapter, cache?: Map<OpNode, KernelShape>): KernelShape;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { KernelTransformOps, TransformEntry } from '../interfaces/transformOps.js';
|
|
2
|
+
import { KernelShape, KernelType } from '../types.js';
|
|
3
|
+
import { ManifoldModule } from './helpers.js';
|
|
4
|
+
type Vec3 = readonly [number, number, number];
|
|
5
|
+
type Mat3 = readonly [number, number, number, number, number, number, number, number, number];
|
|
6
|
+
export declare function translate(shape: KernelShape, x: number, y: number, z: number): KernelShape;
|
|
7
|
+
export declare function rotate(shape: KernelShape, angle: number, axis?: Vec3, center?: Vec3): KernelShape;
|
|
8
|
+
export declare function mirror(shape: KernelShape, origin: Vec3, normal: Vec3): KernelShape;
|
|
9
|
+
export declare function scale(shape: KernelShape, center: Vec3, factor: number): KernelShape;
|
|
10
|
+
export declare function transform(shape: KernelShape, trsf: KernelType): KernelShape;
|
|
11
|
+
export declare function generalTransform(shape: KernelShape, linear: Mat3, translation: Vec3, isOrthogonal: boolean): KernelShape;
|
|
12
|
+
export declare function generalTransformNonOrthogonal(shape: KernelShape, linear: Mat3, translation: Vec3): KernelShape;
|
|
13
|
+
export declare function composeTransform(ops: Array<{
|
|
14
|
+
type: 'translate';
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
z: number;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'rotate';
|
|
20
|
+
angle: number;
|
|
21
|
+
axis?: Vec3 | undefined;
|
|
22
|
+
center?: Vec3 | undefined;
|
|
23
|
+
}>): {
|
|
24
|
+
handle: KernelType;
|
|
25
|
+
dispose: () => void;
|
|
26
|
+
};
|
|
27
|
+
export declare function linearPattern(shape: KernelShape, direction: [number, number, number], spacing: number, count: number): KernelShape[];
|
|
28
|
+
export declare function circularPattern(shape: KernelShape, center: [number, number, number], axis: [number, number, number], angleStep: number, count: number): KernelShape[];
|
|
29
|
+
export declare function gridPattern(module: ManifoldModule, shape: KernelShape, directionX: [number, number, number], directionY: [number, number, number], spacingX: number, spacingY: number, countX: number, countY: number): KernelShape;
|
|
30
|
+
export declare function transformBatch(entries: TransformEntry[]): KernelShape[];
|
|
31
|
+
export declare function makeTransformOps(module: ManifoldModule): KernelTransformOps;
|
|
32
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-dIScXlyz.cjs");
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DgIDUXrS.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { v as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { v as kernelCallRaw } from "./topologyQueryFns-DNs19Af_.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-43zWb-uD.js";
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-BlNPRAt1.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-CZPHU8Fq.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DgIDUXrS.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-tYJBM_yH.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-D0-tL5u2.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-BCHwL5Rz.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-CesKJg-g.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B2Jh4xdE.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
|
-
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-DgIDUXrS.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-BJSTLaDI.js";
|
|
3
|
-
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
3
|
+
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DNs19Af_.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-43zWb-uD.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-tYJBM_yH.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-BuNn7mbE.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-CE3u1eIK.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-oYCo3H_H.js";
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.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-dIScXlyz.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DpurOSYX.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-C-MXZeRY.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-BZEfiLXh.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-BRd294hA.cjs");
|
|
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-D8o9TUpN.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-CFnPg5-H.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-WD_MY4EK.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-B3DEv78h.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-BcvfYBlZ.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-B1DivYhK.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-DNs19Af_.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
|
/**
|