testing indexing of topo4 output

This commit is contained in:
Stewart Allen 2023-01-17 22:42:24 -05:00
commit 79f119c354
6 changed files with 30 additions and 12 deletions

View file

@ -50,6 +50,11 @@ class Point {
return this;
}
setA(a) {
this.a = a;
return this;
}
swapXZ() {
let p = this,
t = p.x;

View file

@ -824,6 +824,18 @@ class Polygon {
return this;
}
setA(a) {
for (let p of this.points) {
p.setA(a);
}
if (this.inner) {
for (let inner of this.inner) {
inner.setA(a);
}
}
return this;
}
/**
* set all points' z value
*