@adatechnology/game-shapes-three 0.3.1 → 0.4.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/README.md +2 -0
- package/dist/index.d.ts +18 -2
- package/dist/index.global.js +237 -12
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,6 +40,8 @@ const geometry = toGeometry(THREE, buildPrimitive({ kind: 'torus', radius: 0.3,
|
|
|
40
40
|
| `mergeByMaterial(THREE, root, space)` | Every visible mesh under `root` baked into `space` and joined per material (non-indexed), on game-shapes' merge; the same bytes `game-props3d`'s version gave |
|
|
41
41
|
| `releaseObject3D(roots, { keep })` | Frees the GPU side of trees taken out of the scene for good: geometries, materials, textures (maps and shader uniforms) and skeletons, except what a tree in `keep` (the scene) still uses or what is marked `userData.shared`. Returns how many it freed |
|
|
42
42
|
| `discardObject3D(objects, { keep })` | `removeFromParent()` plus `releaseObject3D` for one object or a list (one walk of the scene), keeping what the rest of its scene draws: the one call for something that leaves the game |
|
|
43
|
+
| `isMesh(object)` | Type guard for a mesh (or a skinned or instanced one) met while walking a tree with `traverse` |
|
|
44
|
+
| `coincidentFacesOf(root, { eps, minArea, includeHidden })` | Faces under `root` that z-fight: triangles on the same plane (within 1 mm), facing the same way, that overlap more than 1 cm². Walks every drawn mesh in world space (instances too; decals with `polygonOffset` are skipped) and names both meshes in each hit. Every package's catalog test runs it on each piece (see `CLAUDE.md` §13) |
|
|
43
45
|
| `markShared(...resources)` | Marks a palette, kit or catalog resource as shared on purpose, so the release never frees it; same as `userData.shared = true` without touching the resource (digests and goldens stay) |
|
|
44
46
|
|
|
45
47
|
## Português
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PrimitiveBuffers, ShapeBatch, ShapePoint, MaterialHint, ShapeBuffers } from '@adatechnology/game-shapes';
|
|
1
|
+
import { PrimitiveBuffers, ShapeBatch, ShapePoint, MaterialHint, ShapeBuffers, CoincidentFacesOptions, CoincidentBatch, CoincidentFaceHit } from '@adatechnology/game-shapes';
|
|
2
|
+
export { CoincidentFaceHit, describeCoincidentFaces } from '@adatechnology/game-shapes';
|
|
2
3
|
import * as THREE_NS from 'three';
|
|
3
4
|
|
|
4
5
|
type Three = typeof THREE_NS;
|
|
@@ -109,4 +110,19 @@ declare function releaseObject3D(roots: THREE_NS.Object3D | readonly THREE_NS.Ob
|
|
|
109
110
|
*/
|
|
110
111
|
declare function discardObject3D(objects: THREE_NS.Object3D | readonly THREE_NS.Object3D[], options?: ReleaseOptions): ReleaseReport;
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
/** A mesh (or a subclass: skinned, instanced) found while walking a tree; three marks them with `isMesh`. */
|
|
114
|
+
declare function isMesh(o: THREE_NS.Object3D | null | undefined): o is THREE_NS.Mesh;
|
|
115
|
+
|
|
116
|
+
interface CoincidentFacesOfOptions extends CoincidentFacesOptions {
|
|
117
|
+
/** Also check meshes that are hidden now (a piece that only shows when the wall breaks). Default false: only what is drawn. */
|
|
118
|
+
readonly includeHidden?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/** The triangles of every drawn mesh under `root`, in world space, ready for `coincidentFaces`. */
|
|
121
|
+
declare function coincidentBatchesOf(root: THREE_NS.Object3D, options?: Pick<CoincidentFacesOfOptions, 'includeHidden'>): CoincidentBatch[];
|
|
122
|
+
/**
|
|
123
|
+
* Faces of `root` that z-fight: same plane, same facing, overlapping. Use it in the catalog test of every package that draws pieces, so a
|
|
124
|
+
* piece that comes back with a lining flush to its body fails the test instead of flickering on screen.
|
|
125
|
+
*/
|
|
126
|
+
declare function coincidentFacesOf(root: THREE_NS.Object3D, options?: CoincidentFacesOfOptions): CoincidentFaceHit[];
|
|
127
|
+
|
|
128
|
+
export { type CoincidentFacesOfOptions, type ReleaseOptions, type ReleaseReport, SHAPE_GEOMETRY_TYPES, type ShapeGeometriesOptions, type ShapeObject, type Three, type ToGeometryOptions, type ToObjectOptions, catenary, coincidentBatchesOf, coincidentFacesOf, createCord, createMaterials, discardObject3D, isMesh, markShared, mergeByMaterial, releaseObject3D, shapeGeometries, toGeometry, toObject3D };
|
package/dist/index.global.js
CHANGED
|
@@ -23,9 +23,13 @@ var GameShapesThree = (() => {
|
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
SHAPE_GEOMETRY_TYPES: () => SHAPE_GEOMETRY_TYPES,
|
|
25
25
|
catenary: () => catenary,
|
|
26
|
+
coincidentBatchesOf: () => coincidentBatchesOf,
|
|
27
|
+
coincidentFacesOf: () => coincidentFacesOf,
|
|
26
28
|
createCord: () => createCord,
|
|
27
29
|
createMaterials: () => createMaterials,
|
|
30
|
+
describeCoincidentFaces: () => describeCoincidentFaces,
|
|
28
31
|
discardObject3D: () => discardObject3D,
|
|
32
|
+
isMesh: () => isMesh,
|
|
29
33
|
markShared: () => markShared,
|
|
30
34
|
mergeByMaterial: () => mergeByMaterial,
|
|
31
35
|
releaseObject3D: () => releaseObject3D,
|
|
@@ -75,7 +79,7 @@ var GameShapesThree = (() => {
|
|
|
75
79
|
return geometry;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
// ../game-shapes/dist/chunk-
|
|
82
|
+
// ../game-shapes/dist/chunk-FZQTELDQ.js
|
|
79
83
|
function colorHex(color2, fallback = 16777215) {
|
|
80
84
|
if (color2 === void 0) return fallback;
|
|
81
85
|
if (typeof color2 === "number") return Math.floor(color2);
|
|
@@ -994,17 +998,19 @@ var GameShapesThree = (() => {
|
|
|
994
998
|
if (p.prevZ) p.prevZ.nextZ = p.nextZ;
|
|
995
999
|
if (p.nextZ) p.nextZ.prevZ = p.prevZ;
|
|
996
1000
|
}
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1001
|
+
var Node = class {
|
|
1002
|
+
constructor(i, x, y) {
|
|
1003
|
+
this.i = i;
|
|
1004
|
+
this.x = x;
|
|
1005
|
+
this.y = y;
|
|
1006
|
+
this.prev = null;
|
|
1007
|
+
this.next = null;
|
|
1008
|
+
this.z = 0;
|
|
1009
|
+
this.prevZ = null;
|
|
1010
|
+
this.nextZ = null;
|
|
1011
|
+
this.steiner = false;
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1008
1014
|
function signedArea(data, start, end, dim) {
|
|
1009
1015
|
let sum = 0;
|
|
1010
1016
|
for (let i = start, j = end - dim; i < end; i += dim) {
|
|
@@ -1550,6 +1556,150 @@ var GameShapesThree = (() => {
|
|
|
1550
1556
|
return { positions, normals, uvs };
|
|
1551
1557
|
}
|
|
1552
1558
|
|
|
1559
|
+
// ../game-shapes/dist/index.js
|
|
1560
|
+
var ZERO = [0, 0, 0];
|
|
1561
|
+
function normalOf(t) {
|
|
1562
|
+
const ax = t[1][0] - t[0][0], ay = t[1][1] - t[0][1], az = t[1][2] - t[0][2];
|
|
1563
|
+
const bx = t[2][0] - t[0][0], by = t[2][1] - t[0][1], bz = t[2][2] - t[0][2];
|
|
1564
|
+
const nx = ay * bz - az * by, ny = az * bx - ax * bz, nz = ax * by - ay * bx;
|
|
1565
|
+
const length = Math.hypot(nx, ny, nz);
|
|
1566
|
+
return length < 1e-12 ? ZERO : [nx / length, ny / length, nz / length];
|
|
1567
|
+
}
|
|
1568
|
+
function dominantAxis(n) {
|
|
1569
|
+
const x = Math.abs(n[0]), y = Math.abs(n[1]), z = Math.abs(n[2]);
|
|
1570
|
+
if (x >= y && x >= z) return 0;
|
|
1571
|
+
return y >= z ? 1 : 2;
|
|
1572
|
+
}
|
|
1573
|
+
function keptAxes(drop) {
|
|
1574
|
+
if (drop === 0) return [1, 2];
|
|
1575
|
+
return drop === 1 ? [0, 2] : [0, 1];
|
|
1576
|
+
}
|
|
1577
|
+
function projectTriangle(t, drop) {
|
|
1578
|
+
const [u, w] = keptAxes(drop);
|
|
1579
|
+
return [[t[0][u], t[0][w]], [t[1][u], t[1][w]], [t[2][u], t[2][w]]];
|
|
1580
|
+
}
|
|
1581
|
+
function unprojectPoint(p, drop, plane2) {
|
|
1582
|
+
const [u, w] = keptAxes(drop);
|
|
1583
|
+
const out = [0, 0, 0];
|
|
1584
|
+
out[u] = p[0];
|
|
1585
|
+
out[w] = p[1];
|
|
1586
|
+
out[drop] = (plane2.offset - plane2.n[u] * p[0] - plane2.n[w] * p[1]) / plane2.n[drop];
|
|
1587
|
+
return out;
|
|
1588
|
+
}
|
|
1589
|
+
function cross2(a, b, c) {
|
|
1590
|
+
return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
|
|
1591
|
+
}
|
|
1592
|
+
function edgeCrossing(p0, p1, e0, e1) {
|
|
1593
|
+
const dx = p1[0] - p0[0], dy = p1[1] - p0[1], ex = e1[0] - e0[0], ey = e1[1] - e0[1];
|
|
1594
|
+
const d = dx * ey - dy * ex;
|
|
1595
|
+
if (Math.abs(d) < 1e-15) return p1;
|
|
1596
|
+
const t = ((e0[0] - p0[0]) * ey - (e0[1] - p0[1]) * ex) / d;
|
|
1597
|
+
return [p0[0] + t * dx, p0[1] + t * dy];
|
|
1598
|
+
}
|
|
1599
|
+
function clipByEdge(polygon, e0, e1) {
|
|
1600
|
+
const out = [];
|
|
1601
|
+
for (let j = 0; j < polygon.length; j++) {
|
|
1602
|
+
const current = polygon[j], previous = polygon[(j + polygon.length - 1) % polygon.length];
|
|
1603
|
+
const currentIn = cross2(e0, e1, current) >= -1e-12, previousIn = cross2(e0, e1, previous) >= -1e-12;
|
|
1604
|
+
if (currentIn !== previousIn) out.push(edgeCrossing(previous, current, e0, e1));
|
|
1605
|
+
if (currentIn) out.push(current);
|
|
1606
|
+
}
|
|
1607
|
+
return out;
|
|
1608
|
+
}
|
|
1609
|
+
function polygonAreaAndCenter(polygon) {
|
|
1610
|
+
let twice = 0, cx = 0, cy = 0;
|
|
1611
|
+
for (let i = 0; i < polygon.length; i++) {
|
|
1612
|
+
const p = polygon[i], q = polygon[(i + 1) % polygon.length];
|
|
1613
|
+
twice += p[0] * q[1] - q[0] * p[1];
|
|
1614
|
+
cx += p[0];
|
|
1615
|
+
cy += p[1];
|
|
1616
|
+
}
|
|
1617
|
+
return { area: Math.abs(twice) / 2, center: [cx / polygon.length, cy / polygon.length] };
|
|
1618
|
+
}
|
|
1619
|
+
function overlapOfTriangles(a, b) {
|
|
1620
|
+
const clip = cross2(b[0], b[1], b[2]) >= 0 ? b : [b[0], b[2], b[1]];
|
|
1621
|
+
let polygon = [...a];
|
|
1622
|
+
for (let i = 0; i < 3 && polygon.length > 0; i++) polygon = clipByEdge(polygon, clip[i], clip[(i + 1) % 3]);
|
|
1623
|
+
if (polygon.length < 3) return void 0;
|
|
1624
|
+
const overlap = polygonAreaAndCenter(polygon);
|
|
1625
|
+
return overlap.area < 1e-12 ? void 0 : overlap;
|
|
1626
|
+
}
|
|
1627
|
+
var NORMAL_STEP = 2e-3;
|
|
1628
|
+
function trianglesOf(batch) {
|
|
1629
|
+
const { positions: p, indices } = batch;
|
|
1630
|
+
const vertex = (i) => [p[i * 3], p[i * 3 + 1], p[i * 3 + 2]];
|
|
1631
|
+
const count = indices ? indices.length : p.length / 3;
|
|
1632
|
+
const out = [];
|
|
1633
|
+
for (let i = 0; i + 2 < count; i += 3) {
|
|
1634
|
+
out.push(indices ? [vertex(indices[i]), vertex(indices[i + 1]), vertex(indices[i + 2])] : [vertex(i), vertex(i + 1), vertex(i + 2)]);
|
|
1635
|
+
}
|
|
1636
|
+
return out;
|
|
1637
|
+
}
|
|
1638
|
+
function directionKey(n) {
|
|
1639
|
+
return n.map((c) => Math.round(c / NORMAL_STEP)).join(",");
|
|
1640
|
+
}
|
|
1641
|
+
function boxOf(t) {
|
|
1642
|
+
const xs = [t[0][0], t[1][0], t[2][0]], ys = [t[0][1], t[1][1], t[2][1]], zs = [t[0][2], t[1][2], t[2][2]];
|
|
1643
|
+
return [Math.min(...xs), Math.min(...ys), Math.min(...zs), Math.max(...xs), Math.max(...ys), Math.max(...zs)];
|
|
1644
|
+
}
|
|
1645
|
+
function boxesTouch(a, b, slack) {
|
|
1646
|
+
return a[0] <= b[3] + slack && b[0] <= a[3] + slack && a[1] <= b[4] + slack && b[1] <= a[4] + slack && a[2] <= b[5] + slack && b[2] <= a[5] + slack;
|
|
1647
|
+
}
|
|
1648
|
+
function bucketFaces(batches, eps) {
|
|
1649
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
1650
|
+
batches.forEach((batch, index) => {
|
|
1651
|
+
const label = batch.label ?? `batch ${index}`;
|
|
1652
|
+
for (const triangle of trianglesOf(batch)) {
|
|
1653
|
+
const n = normalOf(triangle);
|
|
1654
|
+
if (n[0] === 0 && n[1] === 0 && n[2] === 0) continue;
|
|
1655
|
+
const offset = n[0] * triangle[0][0] + n[1] * triangle[0][1] + n[2] * triangle[0][2];
|
|
1656
|
+
const key = `${directionKey(n)}|${Math.floor(offset / eps)}`;
|
|
1657
|
+
const list2 = buckets.get(key) ?? [];
|
|
1658
|
+
list2.push({ triangle, n, offset, label, box: boxOf(triangle) });
|
|
1659
|
+
buckets.set(key, list2);
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
return buckets;
|
|
1663
|
+
}
|
|
1664
|
+
function overlapHit(a, b, minArea) {
|
|
1665
|
+
const drop = dominantAxis(a.n);
|
|
1666
|
+
const overlap = overlapOfTriangles(projectTriangle(a.triangle, drop), projectTriangle(b.triangle, drop));
|
|
1667
|
+
if (!overlap || overlap.area < minArea) return void 0;
|
|
1668
|
+
const point = unprojectPoint(overlap.center, drop, a);
|
|
1669
|
+
return { normal: a.n, offset: a.offset, area: overlap.area, point, labelA: a.label, labelB: b.label };
|
|
1670
|
+
}
|
|
1671
|
+
function coincidentFaces(batches, options = {}) {
|
|
1672
|
+
const eps = options.eps ?? 1e-3;
|
|
1673
|
+
const minArea = options.minArea ?? 1e-4;
|
|
1674
|
+
const maxHits = options.maxHits ?? 200;
|
|
1675
|
+
const buckets = bucketFaces(batches, eps);
|
|
1676
|
+
const hits = [];
|
|
1677
|
+
for (const [key, faces] of buckets) {
|
|
1678
|
+
const [direction, slot] = key.split("|");
|
|
1679
|
+
const next = buckets.get(`${direction}|${Number(slot) + 1}`) ?? [];
|
|
1680
|
+
for (let i = 0; i < faces.length; i++) {
|
|
1681
|
+
const a = faces[i];
|
|
1682
|
+
for (let j = i + 1; j < faces.length + next.length; j++) {
|
|
1683
|
+
const b = j < faces.length ? faces[j] : next[j - faces.length];
|
|
1684
|
+
if (Math.abs(a.offset - b.offset) > eps || !boxesTouch(a.box, b.box, eps)) continue;
|
|
1685
|
+
const hit = overlapHit(a, b, minArea);
|
|
1686
|
+
if (hit) hits.push(hit);
|
|
1687
|
+
if (hits.length >= maxHits) return hits;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
return hits;
|
|
1692
|
+
}
|
|
1693
|
+
function describeCoincidentFaces(hits, limit = 12) {
|
|
1694
|
+
const lines = hits.slice(0, limit).map((h) => {
|
|
1695
|
+
const at = h.point.map((c) => c.toFixed(3)).join(", ");
|
|
1696
|
+
const facing = h.normal.map((c) => c.toFixed(2)).join(", ");
|
|
1697
|
+
return ` ${h.labelA} \xD7 ${h.labelB} at (${at}) facing (${facing}), ${(h.area * 1e4).toFixed(1)} cm\xB2`;
|
|
1698
|
+
});
|
|
1699
|
+
if (hits.length > limit) lines.push(` \u2026 and ${hits.length - limit} more`);
|
|
1700
|
+
return lines.join("\n");
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1553
1703
|
// src/namespace.ts
|
|
1554
1704
|
var SHAPE_GEOMETRY_TYPES = ["BoxGeometry", "CylinderGeometry", "ConeGeometry", "SphereGeometry", "PlaneGeometry", "CircleGeometry", "RingGeometry", "LatheGeometry", "TorusGeometry", "ExtrudeGeometry"];
|
|
1555
1705
|
function linePoints(path) {
|
|
@@ -1923,6 +2073,81 @@ var GameShapesThree = (() => {
|
|
|
1923
2073
|
}
|
|
1924
2074
|
return releaseObject3D(list2, { keep });
|
|
1925
2075
|
}
|
|
2076
|
+
|
|
2077
|
+
// src/guards.ts
|
|
2078
|
+
function isMesh(o) {
|
|
2079
|
+
return !!o && o.isMesh === true;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
// src/coincident.ts
|
|
2083
|
+
function isFartherLevel(o) {
|
|
2084
|
+
const lod = o.parent;
|
|
2085
|
+
return !!lod?.isLOD && lod.levels.length > 0 && lod.levels[0].object !== o;
|
|
2086
|
+
}
|
|
2087
|
+
function isDrawn(node, root) {
|
|
2088
|
+
for (let o = node; o; o = o.parent) {
|
|
2089
|
+
if (!o.visible || isFartherLevel(o)) return false;
|
|
2090
|
+
if (o === root) return true;
|
|
2091
|
+
}
|
|
2092
|
+
return true;
|
|
2093
|
+
}
|
|
2094
|
+
function isOffsetDecal(mesh2) {
|
|
2095
|
+
const materials = Array.isArray(mesh2.material) ? mesh2.material : [mesh2.material];
|
|
2096
|
+
return materials.length > 0 && materials.every((m) => m?.polygonOffset === true);
|
|
2097
|
+
}
|
|
2098
|
+
function labelOf(mesh2, root) {
|
|
2099
|
+
const names = [];
|
|
2100
|
+
for (let o = mesh2; o && o !== root; o = o.parent) {
|
|
2101
|
+
const part = o.userData?.destructionPart;
|
|
2102
|
+
const name = o.name || (typeof part === "string" ? part : "");
|
|
2103
|
+
if (name) names.unshift(name);
|
|
2104
|
+
}
|
|
2105
|
+
const material = Array.isArray(mesh2.material) ? mesh2.material[0] : mesh2.material;
|
|
2106
|
+
const path = names.join("/") || mesh2.type;
|
|
2107
|
+
return material?.name ? `${path} [${material.name}]` : path;
|
|
2108
|
+
}
|
|
2109
|
+
function worldPositions(position, matrix) {
|
|
2110
|
+
const e = matrix.elements;
|
|
2111
|
+
const out = new Float64Array(position.count * 3);
|
|
2112
|
+
for (let i = 0; i < position.count; i++) {
|
|
2113
|
+
const x = position.getX(i), y = position.getY(i), z = position.getZ(i);
|
|
2114
|
+
const w = e[3] * x + e[7] * y + e[11] * z + e[15] || 1;
|
|
2115
|
+
out[i * 3] = (e[0] * x + e[4] * y + e[8] * z + e[12]) / w;
|
|
2116
|
+
out[i * 3 + 1] = (e[1] * x + e[5] * y + e[9] * z + e[13]) / w;
|
|
2117
|
+
out[i * 3 + 2] = (e[2] * x + e[6] * y + e[10] * z + e[14]) / w;
|
|
2118
|
+
}
|
|
2119
|
+
return out;
|
|
2120
|
+
}
|
|
2121
|
+
function batchesOfMesh(mesh2, label) {
|
|
2122
|
+
const geometry = mesh2.geometry;
|
|
2123
|
+
const position = geometry?.getAttribute("position");
|
|
2124
|
+
if (!geometry || !position) return [];
|
|
2125
|
+
const indices = geometry.index?.array;
|
|
2126
|
+
const instanced = mesh2;
|
|
2127
|
+
if (!instanced.isInstancedMesh) return [{ positions: worldPositions(position, mesh2.matrixWorld), ...indices ? { indices } : {}, label }];
|
|
2128
|
+
const batches = [];
|
|
2129
|
+
const instance = mesh2.matrixWorld.clone();
|
|
2130
|
+
for (let i = 0; i < instanced.count; i++) {
|
|
2131
|
+
instanced.getMatrixAt(i, instance);
|
|
2132
|
+
instance.premultiply(mesh2.matrixWorld);
|
|
2133
|
+
batches.push({ positions: worldPositions(position, instance), ...indices ? { indices } : {}, label: `${label} #${i}` });
|
|
2134
|
+
}
|
|
2135
|
+
return batches;
|
|
2136
|
+
}
|
|
2137
|
+
function coincidentBatchesOf(root, options = {}) {
|
|
2138
|
+
root.updateMatrixWorld(true);
|
|
2139
|
+
const batches = [];
|
|
2140
|
+
root.traverse((node) => {
|
|
2141
|
+
if (!isMesh(node) || node.isSprite) return;
|
|
2142
|
+
if (!options.includeHidden && !isDrawn(node, root)) return;
|
|
2143
|
+
if (isOffsetDecal(node)) return;
|
|
2144
|
+
batches.push(...batchesOfMesh(node, labelOf(node, root)));
|
|
2145
|
+
});
|
|
2146
|
+
return batches;
|
|
2147
|
+
}
|
|
2148
|
+
function coincidentFacesOf(root, options = {}) {
|
|
2149
|
+
return coincidentFaces(coincidentBatchesOf(root, options), options);
|
|
2150
|
+
}
|
|
1926
2151
|
return __toCommonJS(src_exports);
|
|
1927
2152
|
})();
|
|
1928
2153
|
//# sourceMappingURL=index.global.js.map
|