brepjs 18.26.0 → 18.28.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-CQ04Ov5Z.js → blueprint-DCaLaW5V.js} +5 -5
- package/dist/{blueprint-BRsNfnfQ.cjs → blueprint-DgVV4JnR.cjs} +5 -5
- package/dist/{blueprintFns-C5DCLCtZ.cjs → blueprintFns-CaBBmBbd.cjs} +2 -2
- package/dist/{blueprintFns-DpPZNhFx.js → blueprintFns-DxDohOso.js} +2 -2
- package/dist/{blueprintSketcher-DaF5OR4M.cjs → blueprintSketcher-CVzRSGDr.cjs} +3 -3
- package/dist/{blueprintSketcher-OwXVDMOb.js → blueprintSketcher-DpZtLWPK.js} +3 -3
- package/dist/{boolean2D-gwOq0VXi.cjs → boolean2D-BT0oRETS.cjs} +4 -4
- package/dist/{boolean2D-BQKMy6dN.js → boolean2D-BdC7YBQP.js} +4 -4
- package/dist/{booleanFns-cmeKRsth.cjs → booleanFns-CsFsde9t.cjs} +4 -4
- package/dist/{booleanFns-CuXl5XQP.js → booleanFns-DQqY4Dss.js} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-LurBny3f.cjs → cameraFns-Bj-i3990.cjs} +2 -2
- package/dist/{cameraFns-DC2ShyXC.js → cameraFns-CDB2SASG.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CF8fVEx2.js → cornerFinder-B2gMJSrd.js} +1 -1
- package/dist/{cornerFinder-BjjFVnDq.cjs → cornerFinder-D6UY4k4j.cjs} +1 -1
- package/dist/{curveFns-BR8gQOAc.cjs → curveFns-Y73GytYk.cjs} +1 -1
- package/dist/{curveFns-Cimni2kq.js → curveFns-qm5yRPDB.js} +1 -1
- package/dist/{drawFns-btYAn61y.cjs → drawFns-9oTTEwVI.cjs} +12 -12
- package/dist/{drawFns-Bh1LGuSX.js → drawFns-DOe4jAxV.js} +12 -12
- package/dist/{extrudeFns-CLrrRprF.cjs → extrudeFns-D_nDWO4O.cjs} +1 -1
- package/dist/{extrudeFns-BmF17qhf.js → extrudeFns-DpPpBy40.js} +1 -1
- package/dist/{faceFns-BFEUkmn7.cjs → faceFns-B_wyCXSR.cjs} +2 -2
- package/dist/{faceFns-D9UAkqPb.js → faceFns-CEZFie5M.js} +2 -2
- package/dist/{helpers-BnF1MObz.cjs → helpers-BeAdQnoh.cjs} +6 -6
- package/dist/{helpers-DnrXynu0.js → helpers-CDzCYf6t.js} +6 -6
- package/dist/{historyFns-DGDKVD6-.js → historyFns-CiOuKAHR.js} +4 -4
- package/dist/{historyFns-BX9Bu5NT.cjs → historyFns-o5YPr6kB.cjs} +4 -4
- package/dist/{importFns-B9RUaVsc.js → importFns-DWXQjwcN.js} +2 -2
- package/dist/{importFns-BMN4KCmX.cjs → importFns-ySU9FOAT.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +15 -11
- package/dist/{measureFns-CaOR1TEA.cjs → measureFns-C7sDwFbi.cjs} +3 -3
- package/dist/{measureFns-CiCx5o_s.js → measureFns-CnNsxJ3r.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CIdP0f35.cjs → meshFns-Bnzdb8Hi.cjs} +2 -2
- package/dist/{meshFns-k-gSXquL.js → meshFns-De5ytGeY.js} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-OvPYb4CU.js → primitiveFns-BW2Z-ol6.js} +7 -7
- package/dist/{primitiveFns-Ds2LNkol.cjs → primitiveFns-DcGUodn_.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-ByuSx62n.js → shapeFns-BSS9CJ76.js} +2 -2
- package/dist/{shapeFns-BD6oYLMM.cjs → shapeFns-DeIskguL.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CybMlSCu.cjs → shapeRefFns-C5Pf5Hq4.cjs} +4 -4
- package/dist/{shapeRefFns-Bv3Jj1vz.js → shapeRefFns-TS1Z4wYF.js} +4 -4
- package/dist/{shapeTypes-D6hfaPZq.cjs → shapeTypes-7h6IgcC-.cjs} +13 -13
- package/dist/{shapeTypes-BdIQ-d5X.js → shapeTypes-BNSmLg5K.js} +13 -13
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-TJZOIga_.js → solidBuilders-BVEXfPe5.js} +2 -2
- package/dist/{solidBuilders-DAHTAqeh.cjs → solidBuilders-DVsQV6gF.cjs} +2 -2
- package/dist/{surfaceBuilders-CzRFME5_.cjs → surfaceBuilders-DlSyRZE7.cjs} +2 -2
- package/dist/{surfaceBuilders-rNgtRqTR.js → surfaceBuilders-T8OQoZ1R.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-D7gWCZ88.cjs → textBlueprints-DMtErtGx.cjs} +7 -7
- package/dist/{textBlueprints-C9eKTxef.js → textBlueprints-f5p3Ltou.js} +7 -7
- package/dist/{textMetrics-B5SN90x5.cjs → textMetrics-BrvEBE7v.cjs} +1 -1
- package/dist/{textMetrics-0y73spLE.js → textMetrics-uXYdyNt0.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-hG0APAJN.cjs → topologyQueryFns-BV0fjpXF.cjs} +1 -1
- package/dist/{topologyQueryFns-Ds2H75YB.js → topologyQueryFns-COoNTJha.js} +1 -1
- package/package.json +2 -2
|
@@ -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-BNSmLg5K.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-CEZFie5M.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-BSS9CJ76.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-DQqY4Dss.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-7h6IgcC-.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-B_wyCXSR.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DeIskguL.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-CsFsde9t.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
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-BNSmLg5K.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-DCaLaW5V.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-7h6IgcC-.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-DgVV4JnR.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-Bnzdb8Hi.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-ySU9FOAT.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-De5ytGeY.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-DWXQjwcN.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type-safe interface for the brepkit WASM kernel (`BrepKernel`).
|
|
3
3
|
*
|
|
4
4
|
* AUTO-GENERATED by `npm run sync:brepkit-types`.
|
|
5
|
-
* Synced against `brepkit-wasm@2.
|
|
5
|
+
* Synced against `brepkit-wasm@2.95.0`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -203,11 +203,11 @@ export interface BrepkitKernel {
|
|
|
203
203
|
fixFaceOrientations(solid: number): number;
|
|
204
204
|
mergeCoincidentVertices(solid: number, tolerance: number): number;
|
|
205
205
|
removeDegenerateEdges(solid: number, tolerance: number): number;
|
|
206
|
-
tessellateFace(face: number, deflection: number): BrepkitMesh;
|
|
206
|
+
tessellateFace(face: number, deflection: number, angularTolerance?: number | null): BrepkitMesh;
|
|
207
207
|
/** @unwired */
|
|
208
|
-
tessellateSolid(solid: number, deflection: number): BrepkitMesh;
|
|
209
|
-
tessellateSolidGrouped(solid: number, deflection: number): string;
|
|
210
|
-
tessellateSolidUV(solid: number, deflection: number): string;
|
|
208
|
+
tessellateSolid(solid: number, deflection: number, angularTolerance?: number | null): BrepkitMesh;
|
|
209
|
+
tessellateSolidGrouped(solid: number, deflection: number, angularTolerance?: number | null): string;
|
|
210
|
+
tessellateSolidUV(solid: number, deflection: number, angularTolerance?: number | null): string;
|
|
211
211
|
/** @unwired */
|
|
212
212
|
tessellateEdge(edge: number, numPoints: number): Float64Array;
|
|
213
213
|
/** @unwired */
|
|
@@ -281,6 +281,10 @@ export interface BrepkitKernel {
|
|
|
281
281
|
convertToElementary(solid: number): number;
|
|
282
282
|
/** @unwired */
|
|
283
283
|
detectCoincidentFaces(a: number, b: number): string;
|
|
284
|
+
/** @unwired */
|
|
285
|
+
getNurbsCurveData(edge: number): string;
|
|
286
|
+
/** @unwired */
|
|
287
|
+
getNurbsSurfaceData(face: number): string;
|
|
284
288
|
makeCircleEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number): number;
|
|
285
289
|
/** @unwired */
|
|
286
290
|
makeCircleEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, rx: number, ry: number, rz: number): number;
|
|
@@ -291,17 +295,17 @@ export interface BrepkitKernel {
|
|
|
291
295
|
/** @unwired */
|
|
292
296
|
toBrepJson(solid: number): string;
|
|
293
297
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
294
|
-
/** @future Not in brepkit-wasm 2.
|
|
298
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
295
299
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
296
|
-
/** @future Not in brepkit-wasm 2.
|
|
300
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
297
301
|
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
298
|
-
/** @future Not in brepkit-wasm 2.
|
|
302
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
299
303
|
copyEdge?(edge: number): number;
|
|
300
|
-
/** @future Not in brepkit-wasm 2.
|
|
304
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
301
305
|
copyFace?(face: number): number;
|
|
302
|
-
/** @future Not in brepkit-wasm 2.
|
|
306
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
303
307
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
304
|
-
/** @future Not in brepkit-wasm 2.
|
|
308
|
+
/** @future Not in brepkit-wasm 2.95.0. Referenced with feature detection in adapter. */
|
|
305
309
|
validateSolidDetails?(solid: number): string;
|
|
306
310
|
/** Release the entire arena. */
|
|
307
311
|
free(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-7h6IgcC-.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-BV0fjpXF.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B_wyCXSR.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-BNSmLg5K.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-COoNTJha.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-CEZFie5M.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-C7sDwFbi.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-CnNsxJ3r.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-7h6IgcC-.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DeIskguL.cjs");
|
|
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
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-BNSmLg5K.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-BSS9CJ76.js";
|
|
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-o5YPr6kB.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-D_nDWO4O.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-CiOuKAHR.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-DpPpBy40.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-BNSmLg5K.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-COoNTJha.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-CEZFie5M.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BSS9CJ76.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-T8OQoZ1R.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-DQqY4Dss.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-BVEXfPe5.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-7h6IgcC-.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BV0fjpXF.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-B_wyCXSR.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DeIskguL.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-DlSyRZE7.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-CsFsde9t.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-DVsQV6gF.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-Bj-i3990.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-CDB2SASG.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-BeAdQnoh.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-D6UY4k4j.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-CDzCYf6t.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-B2gMJSrd.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-BNSmLg5K.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-COoNTJha.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-7h6IgcC-.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BV0fjpXF.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-C5Pf5Hq4.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-TS1Z4wYF.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-BV0fjpXF.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-B_wyCXSR.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DeIskguL.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-C7sDwFbi.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 { s 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 { s as getFaces } from "./topologyQueryFns-COoNTJha.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-CEZFie5M.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-BSS9CJ76.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-CnNsxJ3r.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -9375,13 +9375,13 @@ function makeMeasureOps(bk) {
|
|
|
9375
9375
|
//#endregion
|
|
9376
9376
|
//#region src/kernel/brepkit/meshOps.ts
|
|
9377
9377
|
function mesh(bk, shape, options) {
|
|
9378
|
-
if (options.angularTolerance > 0) warnOnce("mesh-angular", "mesh angularTolerance is not supported; only linear deflection is used.");
|
|
9379
9378
|
const h = unwrap(shape);
|
|
9380
9379
|
const bkHandle = shape;
|
|
9381
9380
|
const deflection = options.tolerance || .01;
|
|
9381
|
+
const angularTol = options.angularTolerance > 0 ? options.angularTolerance : void 0;
|
|
9382
9382
|
let result;
|
|
9383
|
-
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs);
|
|
9384
|
-
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0);
|
|
9383
|
+
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
9384
|
+
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0, angularTol);
|
|
9385
9385
|
else throw new Error(`brepkit: cannot mesh shape of type '${bkHandle.type}'`);
|
|
9386
9386
|
if (options.skipNormals) result.normals = new Float32Array(0);
|
|
9387
9387
|
if (!options.includeUVs) result.uvs = new Float32Array(0);
|
|
@@ -9417,12 +9417,12 @@ function hasTriangulation(_bk, _shape) {
|
|
|
9417
9417
|
return false;
|
|
9418
9418
|
}
|
|
9419
9419
|
/** Tessellate a solid with per-face groups for brepjs mesh format. */
|
|
9420
|
-
function meshSolid(bk, solidId, deflection, includeUVs) {
|
|
9420
|
+
function meshSolid(bk, solidId, deflection, includeUVs, angularTolerance) {
|
|
9421
9421
|
try {
|
|
9422
|
-
return meshSolidGrouped(bk, solidId, deflection, includeUVs);
|
|
9422
|
+
return meshSolidGrouped(bk, solidId, deflection, includeUVs, angularTolerance);
|
|
9423
9423
|
} catch (e) {
|
|
9424
9424
|
console.warn(`brepkit: tessellateSolidGrouped failed (solidId=${solidId}), falling back to per-face:`, e);
|
|
9425
|
-
return meshSolidPerFace(bk, solidId, deflection);
|
|
9425
|
+
return meshSolidPerFace(bk, solidId, deflection, angularTolerance);
|
|
9426
9426
|
}
|
|
9427
9427
|
}
|
|
9428
9428
|
/**
|
|
@@ -9432,8 +9432,8 @@ function meshSolid(bk, solidId, deflection, includeUVs) {
|
|
|
9432
9432
|
* When `includeUVs` is true, makes an additional `tessellateSolidUV` call
|
|
9433
9433
|
* to populate real surface parametrization coordinates.
|
|
9434
9434
|
*/
|
|
9435
|
-
function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
9436
|
-
const json = bk.tessellateSolidGrouped(solidId, deflection);
|
|
9435
|
+
function meshSolidGrouped(bk, solidId, deflection, includeUVs, angularTolerance) {
|
|
9436
|
+
const json = bk.tessellateSolidGrouped(solidId, deflection, angularTolerance);
|
|
9437
9437
|
const data = JSON.parse(json);
|
|
9438
9438
|
const faceIds = toArray(bk.getSolidFaces(solidId));
|
|
9439
9439
|
const groupCount = data.faceOffsets.length - 1;
|
|
@@ -9453,7 +9453,7 @@ function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
|
9453
9453
|
if (includeUVs) {
|
|
9454
9454
|
const expectedUvLen = data.positions.length / 3 * 2;
|
|
9455
9455
|
try {
|
|
9456
|
-
const uvJson = bk.tessellateSolidUV(solidId, deflection);
|
|
9456
|
+
const uvJson = bk.tessellateSolidUV(solidId, deflection, angularTolerance);
|
|
9457
9457
|
const uvData = JSON.parse(uvJson);
|
|
9458
9458
|
if (uvData.uvs.length === expectedUvLen) uvs = new Float32Array(uvData.uvs);
|
|
9459
9459
|
else uvs = new Float32Array(expectedUvLen);
|
|
@@ -9470,7 +9470,7 @@ function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
|
9470
9470
|
};
|
|
9471
9471
|
}
|
|
9472
9472
|
/** Per-face tessellation fallback -- N WASM calls, one per face. */
|
|
9473
|
-
function meshSolidPerFace(bk, solidId, deflection) {
|
|
9473
|
+
function meshSolidPerFace(bk, solidId, deflection, angularTolerance) {
|
|
9474
9474
|
const faceIds = toArray(bk.getSolidFaces(solidId));
|
|
9475
9475
|
const allVertices = [];
|
|
9476
9476
|
const allNormals = [];
|
|
@@ -9479,7 +9479,7 @@ function meshSolidPerFace(bk, solidId, deflection) {
|
|
|
9479
9479
|
const faceGroups = [];
|
|
9480
9480
|
let vertexOffset = 0;
|
|
9481
9481
|
for (const faceId of faceIds) try {
|
|
9482
|
-
const faceMesh = bk.tessellateFace(faceId, deflection);
|
|
9482
|
+
const faceMesh = bk.tessellateFace(faceId, deflection, angularTolerance);
|
|
9483
9483
|
const positions = faceMesh.positions;
|
|
9484
9484
|
const normals = faceMesh.normals;
|
|
9485
9485
|
const indices = faceMesh.indices;
|
|
@@ -9508,8 +9508,8 @@ function meshSolidPerFace(bk, solidId, deflection) {
|
|
|
9508
9508
|
};
|
|
9509
9509
|
}
|
|
9510
9510
|
/** Tessellate a single face and return brepjs mesh format. */
|
|
9511
|
-
function meshSingleFace(bk, faceId, deflection, faceHash) {
|
|
9512
|
-
const faceMesh = bk.tessellateFace(faceId, deflection);
|
|
9511
|
+
function meshSingleFace(bk, faceId, deflection, faceHash, angularTolerance) {
|
|
9512
|
+
const faceMesh = bk.tessellateFace(faceId, deflection, angularTolerance);
|
|
9513
9513
|
const positions = faceMesh.positions;
|
|
9514
9514
|
const normals = faceMesh.normals;
|
|
9515
9515
|
const indices = faceMesh.indices;
|
|
@@ -9367,13 +9367,13 @@ function makeMeasureOps(bk) {
|
|
|
9367
9367
|
//#endregion
|
|
9368
9368
|
//#region src/kernel/brepkit/meshOps.ts
|
|
9369
9369
|
function mesh(bk, shape, options) {
|
|
9370
|
-
if (options.angularTolerance > 0) warnOnce("mesh-angular", "mesh angularTolerance is not supported; only linear deflection is used.");
|
|
9371
9370
|
const h = unwrap(shape);
|
|
9372
9371
|
const bkHandle = shape;
|
|
9373
9372
|
const deflection = options.tolerance || .01;
|
|
9373
|
+
const angularTol = options.angularTolerance > 0 ? options.angularTolerance : void 0;
|
|
9374
9374
|
let result;
|
|
9375
|
-
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs);
|
|
9376
|
-
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0);
|
|
9375
|
+
if (bkHandle.type === "solid") result = meshSolid(bk, h, deflection, !!options.includeUVs, angularTol);
|
|
9376
|
+
else if (bkHandle.type === "face") result = meshSingleFace(bk, h, deflection, 0, angularTol);
|
|
9377
9377
|
else throw new Error(`brepkit: cannot mesh shape of type '${bkHandle.type}'`);
|
|
9378
9378
|
if (options.skipNormals) result.normals = new Float32Array(0);
|
|
9379
9379
|
if (!options.includeUVs) result.uvs = new Float32Array(0);
|
|
@@ -9409,12 +9409,12 @@ function hasTriangulation(_bk, _shape) {
|
|
|
9409
9409
|
return false;
|
|
9410
9410
|
}
|
|
9411
9411
|
/** Tessellate a solid with per-face groups for brepjs mesh format. */
|
|
9412
|
-
function meshSolid(bk, solidId, deflection, includeUVs) {
|
|
9412
|
+
function meshSolid(bk, solidId, deflection, includeUVs, angularTolerance) {
|
|
9413
9413
|
try {
|
|
9414
|
-
return meshSolidGrouped(bk, solidId, deflection, includeUVs);
|
|
9414
|
+
return meshSolidGrouped(bk, solidId, deflection, includeUVs, angularTolerance);
|
|
9415
9415
|
} catch (e) {
|
|
9416
9416
|
console.warn(`brepkit: tessellateSolidGrouped failed (solidId=${solidId}), falling back to per-face:`, e);
|
|
9417
|
-
return meshSolidPerFace(bk, solidId, deflection);
|
|
9417
|
+
return meshSolidPerFace(bk, solidId, deflection, angularTolerance);
|
|
9418
9418
|
}
|
|
9419
9419
|
}
|
|
9420
9420
|
/**
|
|
@@ -9424,8 +9424,8 @@ function meshSolid(bk, solidId, deflection, includeUVs) {
|
|
|
9424
9424
|
* When `includeUVs` is true, makes an additional `tessellateSolidUV` call
|
|
9425
9425
|
* to populate real surface parametrization coordinates.
|
|
9426
9426
|
*/
|
|
9427
|
-
function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
9428
|
-
const json = bk.tessellateSolidGrouped(solidId, deflection);
|
|
9427
|
+
function meshSolidGrouped(bk, solidId, deflection, includeUVs, angularTolerance) {
|
|
9428
|
+
const json = bk.tessellateSolidGrouped(solidId, deflection, angularTolerance);
|
|
9429
9429
|
const data = JSON.parse(json);
|
|
9430
9430
|
const faceIds = toArray(bk.getSolidFaces(solidId));
|
|
9431
9431
|
const groupCount = data.faceOffsets.length - 1;
|
|
@@ -9445,7 +9445,7 @@ function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
|
9445
9445
|
if (includeUVs) {
|
|
9446
9446
|
const expectedUvLen = data.positions.length / 3 * 2;
|
|
9447
9447
|
try {
|
|
9448
|
-
const uvJson = bk.tessellateSolidUV(solidId, deflection);
|
|
9448
|
+
const uvJson = bk.tessellateSolidUV(solidId, deflection, angularTolerance);
|
|
9449
9449
|
const uvData = JSON.parse(uvJson);
|
|
9450
9450
|
if (uvData.uvs.length === expectedUvLen) uvs = new Float32Array(uvData.uvs);
|
|
9451
9451
|
else uvs = new Float32Array(expectedUvLen);
|
|
@@ -9462,7 +9462,7 @@ function meshSolidGrouped(bk, solidId, deflection, includeUVs) {
|
|
|
9462
9462
|
};
|
|
9463
9463
|
}
|
|
9464
9464
|
/** Per-face tessellation fallback -- N WASM calls, one per face. */
|
|
9465
|
-
function meshSolidPerFace(bk, solidId, deflection) {
|
|
9465
|
+
function meshSolidPerFace(bk, solidId, deflection, angularTolerance) {
|
|
9466
9466
|
const faceIds = toArray(bk.getSolidFaces(solidId));
|
|
9467
9467
|
const allVertices = [];
|
|
9468
9468
|
const allNormals = [];
|
|
@@ -9471,7 +9471,7 @@ function meshSolidPerFace(bk, solidId, deflection) {
|
|
|
9471
9471
|
const faceGroups = [];
|
|
9472
9472
|
let vertexOffset = 0;
|
|
9473
9473
|
for (const faceId of faceIds) try {
|
|
9474
|
-
const faceMesh = bk.tessellateFace(faceId, deflection);
|
|
9474
|
+
const faceMesh = bk.tessellateFace(faceId, deflection, angularTolerance);
|
|
9475
9475
|
const positions = faceMesh.positions;
|
|
9476
9476
|
const normals = faceMesh.normals;
|
|
9477
9477
|
const indices = faceMesh.indices;
|
|
@@ -9500,8 +9500,8 @@ function meshSolidPerFace(bk, solidId, deflection) {
|
|
|
9500
9500
|
};
|
|
9501
9501
|
}
|
|
9502
9502
|
/** Tessellate a single face and return brepjs mesh format. */
|
|
9503
|
-
function meshSingleFace(bk, faceId, deflection, faceHash) {
|
|
9504
|
-
const faceMesh = bk.tessellateFace(faceId, deflection);
|
|
9503
|
+
function meshSingleFace(bk, faceId, deflection, faceHash, angularTolerance) {
|
|
9504
|
+
const faceMesh = bk.tessellateFace(faceId, deflection, angularTolerance);
|
|
9505
9505
|
const positions = faceMesh.positions;
|
|
9506
9506
|
const normals = faceMesh.normals;
|
|
9507
9507
|
const indices = faceMesh.indices;
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-DMtErtGx.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CVzRSGDr.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-9oTTEwVI.cjs");
|
|
5
5
|
//#region 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 Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DpZtLWPK.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-DOe4jAxV.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-f5p3Ltou.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-BNSmLg5K.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-CEZFie5M.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-7h6IgcC-.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-B_wyCXSR.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-7h6IgcC-.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-B_wyCXSR.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-BNSmLg5K.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-CEZFie5M.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-DMtErtGx.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-BrvEBE7v.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|
package/dist/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-
|
|
2
|
-
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-
|
|
1
|
+
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-f5p3Ltou.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-uXYdyNt0.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|