brepjs 18.77.0 → 18.78.1
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-BE93BNYE.cjs → blueprint-B59GQsSD.cjs} +5 -5
- package/dist/{blueprint-BVe9JU-L.js → blueprint-BQmmwEKa.js} +5 -5
- package/dist/{blueprintFns-B_7kKwEZ.cjs → blueprintFns-C1kKA5qn.cjs} +2 -2
- package/dist/{blueprintFns-DWinspVK.js → blueprintFns-DSK1nrwo.js} +2 -2
- package/dist/{blueprintSketcher-D75tuXkF.cjs → blueprintSketcher-BJPBKhF3.cjs} +3 -3
- package/dist/{blueprintSketcher-DL-wgnVs.js → blueprintSketcher-EYqKWQh0.js} +3 -3
- package/dist/{boolean2D-C4Txi8U1.cjs → boolean2D-B1Di3Bpn.cjs} +4 -4
- package/dist/{boolean2D-OtHT7POp.js → boolean2D-COHH5tLX.js} +4 -4
- package/dist/brepjs.cjs +152 -151
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-DCXqzH_m.js → cameraFns-BMrhkkOV.js} +2 -2
- package/dist/{cameraFns-DfSRnD1k.cjs → cameraFns-BZ_8L3gd.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-KuLU-4pQ.cjs → cornerFinder-Ey3oibK1.cjs} +1 -1
- package/dist/{cornerFinder-DPkLU1Of.js → cornerFinder-Fi7obttG.js} +1 -1
- package/dist/{curveFns-C0oCmjV2.cjs → curveFns-Ca59CNS0.cjs} +1 -1
- package/dist/{curveFns-B4KEYU1M.js → curveFns-CoD5E2Vl.js} +1 -1
- package/dist/{drawFns-DNokXs9U.cjs → drawFns-DTpCthM5.cjs} +12 -12
- package/dist/{drawFns-BBoTkSta.js → drawFns-D_LwehLr.js} +12 -12
- package/dist/{faceFns-p0lyVuyw.cjs → faceFns-0sI6cbHe.cjs} +2 -2
- package/dist/{faceFns-BJ2hzXJp.js → faceFns-Cuxdy-7R.js} +2 -2
- package/dist/{primitiveFns-ItlGYe3M.cjs → healingFns--PtL9j2K.cjs} +9 -466
- package/dist/{primitiveFns-DWIzRvTY.js → healingFns-Bm-NdBj_.js} +8 -303
- package/dist/{helpers-DTBDjbdR.cjs → helpers-B8mE35Fm.cjs} +6 -6
- package/dist/{helpers-C78MY-s6.js → helpers-CD8EMZ5l.js} +6 -6
- package/dist/{importFns-CUAiLgt_.cjs → importFns-BHEgzDLw.cjs} +2 -2
- package/dist/{importFns-Rv22QSn6.js → importFns-vnxBqXwv.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/occt/geometryQueryOps.d.ts +1 -1
- package/dist/{extrudeFns-CSWqlW-n.js → loftFns-CsHOwded.js} +93 -2
- package/dist/{extrudeFns-BJSW3EaV.cjs → loftFns-DiSsI2PM.cjs} +104 -1
- package/dist/{measureFns-C8c6xRUE.js → measureFns-CdcufPNp.js} +3 -3
- package/dist/{measureFns-DnxobCbD.cjs → measureFns-nF-OXcDV.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CuYzpojl.js → meshFns-BCgtjlbs.js} +3 -3
- package/dist/{meshFns-BawS1xNA.cjs → meshFns-CnckZa6H.cjs} +3 -3
- package/dist/operations/threadFns.d.ts +39 -0
- package/dist/operations.cjs +33 -32
- package/dist/operations.d.ts +1 -0
- package/dist/operations.js +3 -3
- package/dist/{booleanFns-D7Xgt-Og.js → primitiveFns-BSKbI4Kl.js} +301 -7
- package/dist/{booleanFns-CFa3bgbG.cjs → primitiveFns-DEBQdEkG.cjs} +460 -4
- 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-DZ6poxP7.js → shapeFns-BzlBMNRO.js} +2 -2
- package/dist/{shapeFns-D5WNrq3s.cjs → shapeFns-CecvqmYJ.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-BOWP8n4j.cjs → shapeRefFns-BDACYYRr.cjs} +4 -4
- package/dist/{shapeRefFns-ClsyeZp4.js → shapeRefFns-CpRRMBKz.js} +4 -4
- package/dist/{shapeTypes-CxSqNvHA.cjs → shapeTypes-DWxL75W3.cjs} +4 -9
- package/dist/{shapeTypes-CyTY0prh.js → shapeTypes-DfQi9Kvk.js} +4 -9
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-BtEFUFQ9.js → solidBuilders-DnIrQYZd.js} +2 -2
- package/dist/{solidBuilders-diw2zyyN.cjs → solidBuilders-osLCTRG0.cjs} +2 -2
- package/dist/{surfaceBuilders-CPHOXRLE.cjs → surfaceBuilders-B8aVZamB.cjs} +2 -2
- package/dist/{surfaceBuilders-Do0rypyD.js → surfaceBuilders-hTXdNCYm.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-CYc0xi6l.js → textBlueprints-BpqDGwdx.js} +9 -99
- package/dist/{textBlueprints-D31dKTZS.cjs → textBlueprints-CI3k7Izc.cjs} +17 -119
- package/dist/{textMetrics-CjbXCzpg.cjs → textMetrics-C4RrG9jL.cjs} +1 -1
- package/dist/{textMetrics-DfxB-y9A.js → textMetrics-kFw-DE2w.js} +1 -1
- package/dist/{historyFns-Ck2tXVAL.js → threadFns-DGEyXFGP.js} +73 -6
- package/dist/{historyFns-4ggYGJB2.cjs → threadFns-a_C2wGGt.cjs} +79 -6
- package/dist/topology/booleanFns.d.ts +9 -1
- package/dist/topology.cjs +39 -39
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-BomrmBie.js → topologyQueryFns-CqjEReSt.js} +1 -1
- package/dist/{topologyQueryFns-Dzxrwn-E.cjs → topologyQueryFns-DfOxu8tG.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DWxL75W3.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-DfOxu8tG.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-0sI6cbHe.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-CecvqmYJ.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
-
const
|
|
9
|
-
const require_booleanFns = require("./booleanFns-CFa3bgbG.cjs");
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-diw2zyyN.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-DEBQdEkG.cjs");
|
|
11
9
|
//#region src/topology/threeHelpers.ts
|
|
12
10
|
/**
|
|
13
11
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -338,10 +336,10 @@ function getNurbsSurfaceData(face) {
|
|
|
338
336
|
//#endregion
|
|
339
337
|
//#region src/topology/booleanBatchFns.ts
|
|
340
338
|
var REAL_OPS = {
|
|
341
|
-
cut:
|
|
342
|
-
cutAll:
|
|
343
|
-
fuse:
|
|
344
|
-
fuseAll:
|
|
339
|
+
cut: require_primitiveFns.cut,
|
|
340
|
+
cutAll: require_primitiveFns.cutAll,
|
|
341
|
+
fuse: require_primitiveFns.fuse,
|
|
342
|
+
fuseAll: require_primitiveFns.fuseAll
|
|
345
343
|
};
|
|
346
344
|
function freezeTelemetry(t) {
|
|
347
345
|
return {
|
|
@@ -1355,305 +1353,6 @@ function fixSelfIntersection(wire) {
|
|
|
1355
1353
|
}
|
|
1356
1354
|
}
|
|
1357
1355
|
//#endregion
|
|
1358
|
-
//#region src/topology/primitiveFns.ts
|
|
1359
|
-
/**
|
|
1360
|
-
* Create a box with the given dimensions.
|
|
1361
|
-
*
|
|
1362
|
-
* @param width - Size along X.
|
|
1363
|
-
* @param depth - Size along Y.
|
|
1364
|
-
* @param height - Size along Z.
|
|
1365
|
-
*/
|
|
1366
|
-
function box(width, depth, height, options) {
|
|
1367
|
-
const solid = require_shapeTypes.createSolid(require_shapeTypes.getKernel().makeBox(width, depth, height));
|
|
1368
|
-
const center = options?.at ?? (options?.centered ? [
|
|
1369
|
-
0,
|
|
1370
|
-
0,
|
|
1371
|
-
0
|
|
1372
|
-
] : void 0);
|
|
1373
|
-
if (center) return require_shapeFns.translate(solid, [
|
|
1374
|
-
center[0] - width / 2,
|
|
1375
|
-
center[1] - depth / 2,
|
|
1376
|
-
center[2] - height / 2
|
|
1377
|
-
]);
|
|
1378
|
-
return solid;
|
|
1379
|
-
}
|
|
1380
|
-
/**
|
|
1381
|
-
* Create a cylinder with the given radius and height.
|
|
1382
|
-
*/
|
|
1383
|
-
function cylinder(radius, height, options) {
|
|
1384
|
-
const at = options?.at ?? [
|
|
1385
|
-
0,
|
|
1386
|
-
0,
|
|
1387
|
-
0
|
|
1388
|
-
];
|
|
1389
|
-
const axis = options?.axis ?? [
|
|
1390
|
-
0,
|
|
1391
|
-
0,
|
|
1392
|
-
1
|
|
1393
|
-
];
|
|
1394
|
-
let solid = require_solidBuilders.makeCylinder(radius, height, at, axis);
|
|
1395
|
-
if (options?.centered) {
|
|
1396
|
-
const halfShift = [
|
|
1397
|
-
-axis[0] * height * .5,
|
|
1398
|
-
-axis[1] * height * .5,
|
|
1399
|
-
-axis[2] * height * .5
|
|
1400
|
-
];
|
|
1401
|
-
solid = require_shapeFns.translate(solid, halfShift);
|
|
1402
|
-
}
|
|
1403
|
-
return solid;
|
|
1404
|
-
}
|
|
1405
|
-
/**
|
|
1406
|
-
* Create a sphere with the given radius.
|
|
1407
|
-
*/
|
|
1408
|
-
function sphere(radius, options) {
|
|
1409
|
-
let solid = require_solidBuilders.makeSphere(radius);
|
|
1410
|
-
if (options?.at) solid = require_shapeFns.translate(solid, options.at);
|
|
1411
|
-
return solid;
|
|
1412
|
-
}
|
|
1413
|
-
/**
|
|
1414
|
-
* Create a cone (or frustum) with the given radii and height.
|
|
1415
|
-
*
|
|
1416
|
-
* @param bottomRadius - Radius at the base.
|
|
1417
|
-
* @param topRadius - Radius at the top (0 for a full cone).
|
|
1418
|
-
* @param height - Height of the cone.
|
|
1419
|
-
*/
|
|
1420
|
-
function cone(bottomRadius, topRadius, height, options) {
|
|
1421
|
-
const at = options?.at ?? [
|
|
1422
|
-
0,
|
|
1423
|
-
0,
|
|
1424
|
-
0
|
|
1425
|
-
];
|
|
1426
|
-
const axis = options?.axis ?? [
|
|
1427
|
-
0,
|
|
1428
|
-
0,
|
|
1429
|
-
1
|
|
1430
|
-
];
|
|
1431
|
-
let solid = require_solidBuilders.makeCone(bottomRadius, topRadius, height, at, axis);
|
|
1432
|
-
if (options?.centered) {
|
|
1433
|
-
const halfShift = [
|
|
1434
|
-
-axis[0] * height * .5,
|
|
1435
|
-
-axis[1] * height * .5,
|
|
1436
|
-
-axis[2] * height * .5
|
|
1437
|
-
];
|
|
1438
|
-
solid = require_shapeFns.translate(solid, halfShift);
|
|
1439
|
-
}
|
|
1440
|
-
return solid;
|
|
1441
|
-
}
|
|
1442
|
-
/**
|
|
1443
|
-
* Create a torus with the given major and minor radii.
|
|
1444
|
-
*/
|
|
1445
|
-
function torus(majorRadius, minorRadius, options) {
|
|
1446
|
-
return require_solidBuilders.makeTorus(majorRadius, minorRadius, options?.at ?? [
|
|
1447
|
-
0,
|
|
1448
|
-
0,
|
|
1449
|
-
0
|
|
1450
|
-
], options?.axis ?? [
|
|
1451
|
-
0,
|
|
1452
|
-
0,
|
|
1453
|
-
1
|
|
1454
|
-
]);
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* Create an ellipsoid with the given axis half-lengths.
|
|
1458
|
-
*
|
|
1459
|
-
* @param rx - Half-length along X.
|
|
1460
|
-
* @param ry - Half-length along Y.
|
|
1461
|
-
* @param rz - Half-length along Z.
|
|
1462
|
-
*/
|
|
1463
|
-
function ellipsoid(rx, ry, rz, options) {
|
|
1464
|
-
let solid = require_solidBuilders.makeEllipsoid(rx, ry, rz);
|
|
1465
|
-
if (options?.at) solid = require_shapeFns.translate(solid, options.at);
|
|
1466
|
-
return solid;
|
|
1467
|
-
}
|
|
1468
|
-
/** Create a straight edge between two 3D points. */
|
|
1469
|
-
function line(from, to) {
|
|
1470
|
-
return require_surfaceBuilders.makeLine(from, to);
|
|
1471
|
-
}
|
|
1472
|
-
/** Create a circular edge with the given radius. */
|
|
1473
|
-
function circle(radius, options) {
|
|
1474
|
-
const axisDir = options?.axis ?? [
|
|
1475
|
-
0,
|
|
1476
|
-
0,
|
|
1477
|
-
1
|
|
1478
|
-
];
|
|
1479
|
-
return require_surfaceBuilders.makeCircle(radius, options?.at ?? [
|
|
1480
|
-
0,
|
|
1481
|
-
0,
|
|
1482
|
-
0
|
|
1483
|
-
], axisDir);
|
|
1484
|
-
}
|
|
1485
|
-
/**
|
|
1486
|
-
* Create an elliptical edge.
|
|
1487
|
-
*
|
|
1488
|
-
* @returns An error if `minorRadius` exceeds `majorRadius`.
|
|
1489
|
-
*/
|
|
1490
|
-
function ellipse(majorRadius, minorRadius, options) {
|
|
1491
|
-
const axisDir = options?.axis ?? [
|
|
1492
|
-
0,
|
|
1493
|
-
0,
|
|
1494
|
-
1
|
|
1495
|
-
];
|
|
1496
|
-
return require_surfaceBuilders.makeEllipse(majorRadius, minorRadius, options?.at ?? [
|
|
1497
|
-
0,
|
|
1498
|
-
0,
|
|
1499
|
-
0
|
|
1500
|
-
], axisDir, options?.xDir);
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Create a helical wire.
|
|
1504
|
-
*
|
|
1505
|
-
* @param pitch - Vertical distance per full turn.
|
|
1506
|
-
* @param height - Total height.
|
|
1507
|
-
* @param radius - Helix radius.
|
|
1508
|
-
*/
|
|
1509
|
-
function helix(pitch, height, radius, options) {
|
|
1510
|
-
return require_surfaceBuilders.makeHelix(pitch, height, radius, options?.at ?? [
|
|
1511
|
-
0,
|
|
1512
|
-
0,
|
|
1513
|
-
0
|
|
1514
|
-
], options?.axis ?? [
|
|
1515
|
-
0,
|
|
1516
|
-
0,
|
|
1517
|
-
1
|
|
1518
|
-
], options?.lefthand ?? false);
|
|
1519
|
-
}
|
|
1520
|
-
/** Create a circular arc edge passing through three points. */
|
|
1521
|
-
function threePointArc(p1, p2, p3) {
|
|
1522
|
-
return require_surfaceBuilders.makeThreePointArc(p1, p2, p3);
|
|
1523
|
-
}
|
|
1524
|
-
/**
|
|
1525
|
-
* Create an elliptical arc edge between two angles.
|
|
1526
|
-
*
|
|
1527
|
-
* All angles are in **degrees** (unlike the legacy `makeEllipseArc` which used radians).
|
|
1528
|
-
*
|
|
1529
|
-
* @param startAngle - Start angle in degrees.
|
|
1530
|
-
* @param endAngle - End angle in degrees.
|
|
1531
|
-
*/
|
|
1532
|
-
function ellipseArc(majorRadius, minorRadius, startAngle, endAngle, options) {
|
|
1533
|
-
const axisDir = options?.axis ?? [
|
|
1534
|
-
0,
|
|
1535
|
-
0,
|
|
1536
|
-
1
|
|
1537
|
-
];
|
|
1538
|
-
return require_surfaceBuilders.makeEllipseArc(majorRadius, minorRadius, startAngle * require_constants.DEG2RAD, endAngle * require_constants.DEG2RAD, options?.at ?? [
|
|
1539
|
-
0,
|
|
1540
|
-
0,
|
|
1541
|
-
0
|
|
1542
|
-
], axisDir, options?.xDir);
|
|
1543
|
-
}
|
|
1544
|
-
/**
|
|
1545
|
-
* Create a B-spline edge that approximates a set of 3D points.
|
|
1546
|
-
*
|
|
1547
|
-
* @returns An error if the approximation algorithm fails.
|
|
1548
|
-
*/
|
|
1549
|
-
function bsplineApprox(points, config) {
|
|
1550
|
-
return require_surfaceBuilders.makeBSplineApproximation(points, config);
|
|
1551
|
-
}
|
|
1552
|
-
/**
|
|
1553
|
-
* Create a Bezier curve edge from control points.
|
|
1554
|
-
*
|
|
1555
|
-
* @param points - Two or more control points.
|
|
1556
|
-
*/
|
|
1557
|
-
function bezier(points) {
|
|
1558
|
-
return require_surfaceBuilders.makeBezierCurve(points);
|
|
1559
|
-
}
|
|
1560
|
-
/**
|
|
1561
|
-
* Create a circular arc edge tangent to a direction at the start point.
|
|
1562
|
-
*/
|
|
1563
|
-
function tangentArc(startPoint, startTgt, endPoint) {
|
|
1564
|
-
return require_surfaceBuilders.makeTangentArc(startPoint, startTgt, endPoint);
|
|
1565
|
-
}
|
|
1566
|
-
/**
|
|
1567
|
-
* Assemble edges and/or wires into a single connected wire.
|
|
1568
|
-
*/
|
|
1569
|
-
function wire(listOfEdges) {
|
|
1570
|
-
return require_surfaceBuilders.assembleWire(listOfEdges);
|
|
1571
|
-
}
|
|
1572
|
-
/**
|
|
1573
|
-
* Assemble edges into a wire and verify it forms a closed loop.
|
|
1574
|
-
*
|
|
1575
|
-
* Combines {@link wire} + the `closedWire` smart constructor in a single step.
|
|
1576
|
-
* Returns an error if the edges cannot be assembled or the wire is not closed.
|
|
1577
|
-
*
|
|
1578
|
-
* @example
|
|
1579
|
-
* ```ts
|
|
1580
|
-
* const cw = unwrap(wireLoop([e1, e2, e3, e4]));
|
|
1581
|
-
* const f = unwrap(face(cw)); // ClosedWire accepted directly
|
|
1582
|
-
* ```
|
|
1583
|
-
*/
|
|
1584
|
-
function wireLoop(listOfEdges) {
|
|
1585
|
-
return require_errors.andThen(require_surfaceBuilders.assembleWire(listOfEdges), (w) => {
|
|
1586
|
-
if (require_shapeTypes.isClosedWire(w)) return require_errors.ok(w);
|
|
1587
|
-
return require_errors.err(require_errors.validationError("WIRE_NOT_CLOSED", "Assembled wire is not closed: start and end points do not coincide"));
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
/**
|
|
1591
|
-
* Create a planar face from a closed wire, optionally with holes.
|
|
1592
|
-
* The resulting face is always oriented (consistent normal direction).
|
|
1593
|
-
*/
|
|
1594
|
-
function face(w, holes) {
|
|
1595
|
-
return require_surfaceBuilders.makeFace(w, holes);
|
|
1596
|
-
}
|
|
1597
|
-
/**
|
|
1598
|
-
* Create a non-planar face from a wire using surface filling.
|
|
1599
|
-
* The resulting face is always oriented.
|
|
1600
|
-
*/
|
|
1601
|
-
function filledFace(w) {
|
|
1602
|
-
return require_surfaceBuilders.makeNonPlanarFace(w);
|
|
1603
|
-
}
|
|
1604
|
-
/**
|
|
1605
|
-
* Create a face bounded by a wire on an existing face's surface.
|
|
1606
|
-
* The resulting face inherits orientation from the origin face.
|
|
1607
|
-
*/
|
|
1608
|
-
function subFace(originFace, w) {
|
|
1609
|
-
return require_surfaceBuilders.makeNewFaceWithinFace(originFace, w);
|
|
1610
|
-
}
|
|
1611
|
-
/**
|
|
1612
|
-
* Create a polygonal face from three or more coplanar points.
|
|
1613
|
-
* The resulting face is always oriented.
|
|
1614
|
-
*/
|
|
1615
|
-
function polygon(points) {
|
|
1616
|
-
return require_surfaceBuilders.makePolygon(points);
|
|
1617
|
-
}
|
|
1618
|
-
/** Create a vertex at a 3D point. */
|
|
1619
|
-
function vertex(point) {
|
|
1620
|
-
return require_solidBuilders.makeVertex(point);
|
|
1621
|
-
}
|
|
1622
|
-
/**
|
|
1623
|
-
* Build a compound from multiple shapes.
|
|
1624
|
-
*/
|
|
1625
|
-
function compound(shapeArray) {
|
|
1626
|
-
return require_solidBuilders.makeCompound(shapeArray);
|
|
1627
|
-
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Weld faces and shells into a single solid.
|
|
1630
|
-
* The resulting solid is always validated.
|
|
1631
|
-
*/
|
|
1632
|
-
function solid(facesOrShells) {
|
|
1633
|
-
return require_solidBuilders.makeSolid(facesOrShells);
|
|
1634
|
-
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Create an offset shape from a face.
|
|
1637
|
-
*/
|
|
1638
|
-
function offsetFace(f, distance, tolerance) {
|
|
1639
|
-
return require_solidBuilders.makeOffset(f, distance, tolerance);
|
|
1640
|
-
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Weld faces and shells into a single shell.
|
|
1643
|
-
*/
|
|
1644
|
-
function sewShells(facesOrShells, ignoreType) {
|
|
1645
|
-
return require_solidBuilders.weldShellsAndFaces(facesOrShells, ignoreType);
|
|
1646
|
-
}
|
|
1647
|
-
function addHoles(f, holes) {
|
|
1648
|
-
return require_surfaceBuilders.addHolesInFace(f, holes);
|
|
1649
|
-
}
|
|
1650
|
-
//#endregion
|
|
1651
|
-
Object.defineProperty(exports, "addHoles", {
|
|
1652
|
-
enumerable: true,
|
|
1653
|
-
get: function() {
|
|
1654
|
-
return addHoles;
|
|
1655
|
-
}
|
|
1656
|
-
});
|
|
1657
1356
|
Object.defineProperty(exports, "adjacentFaces", {
|
|
1658
1357
|
enumerable: true,
|
|
1659
1358
|
get: function() {
|
|
@@ -1666,24 +1365,6 @@ Object.defineProperty(exports, "autoHeal", {
|
|
|
1666
1365
|
return autoHeal;
|
|
1667
1366
|
}
|
|
1668
1367
|
});
|
|
1669
|
-
Object.defineProperty(exports, "bezier", {
|
|
1670
|
-
enumerable: true,
|
|
1671
|
-
get: function() {
|
|
1672
|
-
return bezier;
|
|
1673
|
-
}
|
|
1674
|
-
});
|
|
1675
|
-
Object.defineProperty(exports, "box", {
|
|
1676
|
-
enumerable: true,
|
|
1677
|
-
get: function() {
|
|
1678
|
-
return box;
|
|
1679
|
-
}
|
|
1680
|
-
});
|
|
1681
|
-
Object.defineProperty(exports, "bsplineApprox", {
|
|
1682
|
-
enumerable: true,
|
|
1683
|
-
get: function() {
|
|
1684
|
-
return bsplineApprox;
|
|
1685
|
-
}
|
|
1686
|
-
});
|
|
1687
1368
|
Object.defineProperty(exports, "chamfer", {
|
|
1688
1369
|
enumerable: true,
|
|
1689
1370
|
get: function() {
|
|
@@ -1708,24 +1389,6 @@ Object.defineProperty(exports, "checkBoolean", {
|
|
|
1708
1389
|
return checkBoolean;
|
|
1709
1390
|
}
|
|
1710
1391
|
});
|
|
1711
|
-
Object.defineProperty(exports, "circle", {
|
|
1712
|
-
enumerable: true,
|
|
1713
|
-
get: function() {
|
|
1714
|
-
return circle;
|
|
1715
|
-
}
|
|
1716
|
-
});
|
|
1717
|
-
Object.defineProperty(exports, "compound", {
|
|
1718
|
-
enumerable: true,
|
|
1719
|
-
get: function() {
|
|
1720
|
-
return compound;
|
|
1721
|
-
}
|
|
1722
|
-
});
|
|
1723
|
-
Object.defineProperty(exports, "cone", {
|
|
1724
|
-
enumerable: true,
|
|
1725
|
-
get: function() {
|
|
1726
|
-
return cone;
|
|
1727
|
-
}
|
|
1728
|
-
});
|
|
1729
1392
|
Object.defineProperty(exports, "cutAllBisect", {
|
|
1730
1393
|
enumerable: true,
|
|
1731
1394
|
get: function() {
|
|
@@ -1738,12 +1401,6 @@ Object.defineProperty(exports, "cutWithEvolution", {
|
|
|
1738
1401
|
return cutWithEvolution;
|
|
1739
1402
|
}
|
|
1740
1403
|
});
|
|
1741
|
-
Object.defineProperty(exports, "cylinder", {
|
|
1742
|
-
enumerable: true,
|
|
1743
|
-
get: function() {
|
|
1744
|
-
return cylinder;
|
|
1745
|
-
}
|
|
1746
|
-
});
|
|
1747
1404
|
Object.defineProperty(exports, "draft", {
|
|
1748
1405
|
enumerable: true,
|
|
1749
1406
|
get: function() {
|
|
@@ -1756,42 +1413,12 @@ Object.defineProperty(exports, "edgesOfFace", {
|
|
|
1756
1413
|
return edgesOfFace;
|
|
1757
1414
|
}
|
|
1758
1415
|
});
|
|
1759
|
-
Object.defineProperty(exports, "ellipse", {
|
|
1760
|
-
enumerable: true,
|
|
1761
|
-
get: function() {
|
|
1762
|
-
return ellipse;
|
|
1763
|
-
}
|
|
1764
|
-
});
|
|
1765
|
-
Object.defineProperty(exports, "ellipseArc", {
|
|
1766
|
-
enumerable: true,
|
|
1767
|
-
get: function() {
|
|
1768
|
-
return ellipseArc;
|
|
1769
|
-
}
|
|
1770
|
-
});
|
|
1771
|
-
Object.defineProperty(exports, "ellipsoid", {
|
|
1772
|
-
enumerable: true,
|
|
1773
|
-
get: function() {
|
|
1774
|
-
return ellipsoid;
|
|
1775
|
-
}
|
|
1776
|
-
});
|
|
1777
|
-
Object.defineProperty(exports, "face", {
|
|
1778
|
-
enumerable: true,
|
|
1779
|
-
get: function() {
|
|
1780
|
-
return face;
|
|
1781
|
-
}
|
|
1782
|
-
});
|
|
1783
1416
|
Object.defineProperty(exports, "facesOfEdge", {
|
|
1784
1417
|
enumerable: true,
|
|
1785
1418
|
get: function() {
|
|
1786
1419
|
return facesOfEdge;
|
|
1787
1420
|
}
|
|
1788
1421
|
});
|
|
1789
|
-
Object.defineProperty(exports, "filledFace", {
|
|
1790
|
-
enumerable: true,
|
|
1791
|
-
get: function() {
|
|
1792
|
-
return filledFace;
|
|
1793
|
-
}
|
|
1794
|
-
});
|
|
1795
1422
|
Object.defineProperty(exports, "fillet", {
|
|
1796
1423
|
enumerable: true,
|
|
1797
1424
|
get: function() {
|
|
@@ -1864,12 +1491,6 @@ Object.defineProperty(exports, "healWire", {
|
|
|
1864
1491
|
return healWire;
|
|
1865
1492
|
}
|
|
1866
1493
|
});
|
|
1867
|
-
Object.defineProperty(exports, "helix", {
|
|
1868
|
-
enumerable: true,
|
|
1869
|
-
get: function() {
|
|
1870
|
-
return helix;
|
|
1871
|
-
}
|
|
1872
|
-
});
|
|
1873
1494
|
Object.defineProperty(exports, "intersectWithEvolution", {
|
|
1874
1495
|
enumerable: true,
|
|
1875
1496
|
get: function() {
|
|
@@ -1882,42 +1503,18 @@ Object.defineProperty(exports, "isValid", {
|
|
|
1882
1503
|
return isValid;
|
|
1883
1504
|
}
|
|
1884
1505
|
});
|
|
1885
|
-
Object.defineProperty(exports, "line", {
|
|
1886
|
-
enumerable: true,
|
|
1887
|
-
get: function() {
|
|
1888
|
-
return line;
|
|
1889
|
-
}
|
|
1890
|
-
});
|
|
1891
1506
|
Object.defineProperty(exports, "offset", {
|
|
1892
1507
|
enumerable: true,
|
|
1893
1508
|
get: function() {
|
|
1894
1509
|
return offset;
|
|
1895
1510
|
}
|
|
1896
1511
|
});
|
|
1897
|
-
Object.defineProperty(exports, "offsetFace", {
|
|
1898
|
-
enumerable: true,
|
|
1899
|
-
get: function() {
|
|
1900
|
-
return offsetFace;
|
|
1901
|
-
}
|
|
1902
|
-
});
|
|
1903
|
-
Object.defineProperty(exports, "polygon", {
|
|
1904
|
-
enumerable: true,
|
|
1905
|
-
get: function() {
|
|
1906
|
-
return polygon;
|
|
1907
|
-
}
|
|
1908
|
-
});
|
|
1909
1512
|
Object.defineProperty(exports, "positionOnCurve", {
|
|
1910
1513
|
enumerable: true,
|
|
1911
1514
|
get: function() {
|
|
1912
1515
|
return positionOnCurve;
|
|
1913
1516
|
}
|
|
1914
1517
|
});
|
|
1915
|
-
Object.defineProperty(exports, "sewShells", {
|
|
1916
|
-
enumerable: true,
|
|
1917
|
-
get: function() {
|
|
1918
|
-
return sewShells;
|
|
1919
|
-
}
|
|
1920
|
-
});
|
|
1921
1518
|
Object.defineProperty(exports, "sharedEdges", {
|
|
1922
1519
|
enumerable: true,
|
|
1923
1520
|
get: function() {
|
|
@@ -1936,48 +1533,18 @@ Object.defineProperty(exports, "shellWithEvolution", {
|
|
|
1936
1533
|
return shellWithEvolution;
|
|
1937
1534
|
}
|
|
1938
1535
|
});
|
|
1939
|
-
Object.defineProperty(exports, "solid", {
|
|
1940
|
-
enumerable: true,
|
|
1941
|
-
get: function() {
|
|
1942
|
-
return solid;
|
|
1943
|
-
}
|
|
1944
|
-
});
|
|
1945
1536
|
Object.defineProperty(exports, "solidFromShell", {
|
|
1946
1537
|
enumerable: true,
|
|
1947
1538
|
get: function() {
|
|
1948
1539
|
return solidFromShell;
|
|
1949
1540
|
}
|
|
1950
1541
|
});
|
|
1951
|
-
Object.defineProperty(exports, "sphere", {
|
|
1952
|
-
enumerable: true,
|
|
1953
|
-
get: function() {
|
|
1954
|
-
return sphere;
|
|
1955
|
-
}
|
|
1956
|
-
});
|
|
1957
|
-
Object.defineProperty(exports, "subFace", {
|
|
1958
|
-
enumerable: true,
|
|
1959
|
-
get: function() {
|
|
1960
|
-
return subFace;
|
|
1961
|
-
}
|
|
1962
|
-
});
|
|
1963
|
-
Object.defineProperty(exports, "tangentArc", {
|
|
1964
|
-
enumerable: true,
|
|
1965
|
-
get: function() {
|
|
1966
|
-
return tangentArc;
|
|
1967
|
-
}
|
|
1968
|
-
});
|
|
1969
1542
|
Object.defineProperty(exports, "thicken", {
|
|
1970
1543
|
enumerable: true,
|
|
1971
1544
|
get: function() {
|
|
1972
1545
|
return thicken;
|
|
1973
1546
|
}
|
|
1974
1547
|
});
|
|
1975
|
-
Object.defineProperty(exports, "threePointArc", {
|
|
1976
|
-
enumerable: true,
|
|
1977
|
-
get: function() {
|
|
1978
|
-
return threePointArc;
|
|
1979
|
-
}
|
|
1980
|
-
});
|
|
1981
1548
|
Object.defineProperty(exports, "toBufferGeometryData", {
|
|
1982
1549
|
enumerable: true,
|
|
1983
1550
|
get: function() {
|
|
@@ -2002,42 +1569,18 @@ Object.defineProperty(exports, "toLineGeometryData", {
|
|
|
2002
1569
|
return toLineGeometryData;
|
|
2003
1570
|
}
|
|
2004
1571
|
});
|
|
2005
|
-
Object.defineProperty(exports, "torus", {
|
|
2006
|
-
enumerable: true,
|
|
2007
|
-
get: function() {
|
|
2008
|
-
return torus;
|
|
2009
|
-
}
|
|
2010
|
-
});
|
|
2011
1572
|
Object.defineProperty(exports, "variableFillet", {
|
|
2012
1573
|
enumerable: true,
|
|
2013
1574
|
get: function() {
|
|
2014
1575
|
return variableFillet;
|
|
2015
1576
|
}
|
|
2016
1577
|
});
|
|
2017
|
-
Object.defineProperty(exports, "vertex", {
|
|
2018
|
-
enumerable: true,
|
|
2019
|
-
get: function() {
|
|
2020
|
-
return vertex;
|
|
2021
|
-
}
|
|
2022
|
-
});
|
|
2023
1578
|
Object.defineProperty(exports, "verticesOfEdge", {
|
|
2024
1579
|
enumerable: true,
|
|
2025
1580
|
get: function() {
|
|
2026
1581
|
return verticesOfEdge;
|
|
2027
1582
|
}
|
|
2028
1583
|
});
|
|
2029
|
-
Object.defineProperty(exports, "wire", {
|
|
2030
|
-
enumerable: true,
|
|
2031
|
-
get: function() {
|
|
2032
|
-
return wire;
|
|
2033
|
-
}
|
|
2034
|
-
});
|
|
2035
|
-
Object.defineProperty(exports, "wireLoop", {
|
|
2036
|
-
enumerable: true,
|
|
2037
|
-
get: function() {
|
|
2038
|
-
return wireLoop;
|
|
2039
|
-
}
|
|
2040
|
-
});
|
|
2041
1584
|
Object.defineProperty(exports, "wiresOfFace", {
|
|
2042
1585
|
enumerable: true,
|
|
2043
1586
|
get: function() {
|