@thi.ng/geom-tessellate 3.0.93 → 3.0.95
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 -2
- package/package.json +13 -13
- package/tessellation.js +3 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -154,7 +154,7 @@ For Node.js REPL:
|
|
|
154
154
|
const gt = await import("@thi.ng/geom-tessellate");
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 3.
|
|
157
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 3.33 KB
|
|
158
158
|
|
|
159
159
|
## Dependencies
|
|
160
160
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-tessellate",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.95",
|
|
4
4
|
"description": "2D/3D convex polygon tessellators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"tool:viz": "bun tools/visualize.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/api": "^8.12.
|
|
45
|
-
"@thi.ng/checks": "^3.
|
|
46
|
-
"@thi.ng/geom-accel": "^4.1.
|
|
47
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
48
|
-
"@thi.ng/geom-poly-utils": "^3.1.
|
|
49
|
-
"@thi.ng/math": "^5.15.
|
|
50
|
-
"@thi.ng/morton": "^3.1.
|
|
51
|
-
"@thi.ng/transducers": "^9.6.
|
|
52
|
-
"@thi.ng/vectors": "^8.6.
|
|
44
|
+
"@thi.ng/api": "^8.12.20",
|
|
45
|
+
"@thi.ng/checks": "^3.9.0",
|
|
46
|
+
"@thi.ng/geom-accel": "^4.1.88",
|
|
47
|
+
"@thi.ng/geom-isec": "^4.0.85",
|
|
48
|
+
"@thi.ng/geom-poly-utils": "^3.1.22",
|
|
49
|
+
"@thi.ng/math": "^5.15.9",
|
|
50
|
+
"@thi.ng/morton": "^3.1.143",
|
|
51
|
+
"@thi.ng/transducers": "^9.6.33",
|
|
52
|
+
"@thi.ng/vectors": "^8.6.29"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"typedoc": "^0.28.
|
|
55
|
+
"esbuild": "^0.28.0",
|
|
56
|
+
"typedoc": "^0.28.18",
|
|
57
57
|
"typescript": "^5.9.3"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"tag": "tessellation",
|
|
125
125
|
"year": 2013
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
128
128
|
}
|
package/tessellation.js
CHANGED
|
@@ -5,6 +5,8 @@ class ATessellation {
|
|
|
5
5
|
this.points = points;
|
|
6
6
|
this.faces = faces;
|
|
7
7
|
}
|
|
8
|
+
points;
|
|
9
|
+
faces;
|
|
8
10
|
addPoints(points) {
|
|
9
11
|
return points.map((p) => this.addPoint(p));
|
|
10
12
|
}
|
|
@@ -38,6 +40,7 @@ class MeshTessellation extends ATessellation {
|
|
|
38
40
|
);
|
|
39
41
|
this.addPoints(points);
|
|
40
42
|
}
|
|
43
|
+
eps;
|
|
41
44
|
tree;
|
|
42
45
|
empty() {
|
|
43
46
|
return new MeshTessellation(this.tree.dim);
|