annotate thin shells for output ordering
This commit is contained in:
parent
e2c5fc4a98
commit
07213ddc79
5 changed files with 62 additions and 19 deletions
|
|
@ -1104,6 +1104,14 @@ export class Polygon {
|
|||
return this.first().isEqual(this.last());
|
||||
}
|
||||
|
||||
closeIf(dist = 1) {
|
||||
if (this.first().distTo2D(this.last()) <= dist) {
|
||||
return this.setClosed();
|
||||
} else {
|
||||
return this.setOpen();
|
||||
}
|
||||
}
|
||||
|
||||
fixClosed() {
|
||||
if (this.appearsClosed()) {
|
||||
this.points.pop();
|
||||
|
|
|
|||
Loading…
Reference in a new issue