testing indexing of topo4 output
This commit is contained in:
parent
a6993ba038
commit
79f119c354
6 changed files with 30 additions and 12 deletions
|
|
@ -50,6 +50,11 @@ class Point {
|
|||
return this;
|
||||
}
|
||||
|
||||
setA(a) {
|
||||
this.a = a;
|
||||
return this;
|
||||
}
|
||||
|
||||
swapXZ() {
|
||||
let p = this,
|
||||
t = p.x;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue