quick port of pocket clearZ to trace clearZnew

This commit is contained in:
Stewart Allen 2025-06-21 21:54:58 -04:00
commit 220dc7c439
2 changed files with 61 additions and 3 deletions

View file

@ -1002,6 +1002,10 @@ class Polygon {
return this.z !== undefined ? this.z : this.points[i || 0]?.z || 0;
}
minZ() {
return Math.min(...this.points.map(p => p.z));
}
/**
*/
render(layer, color, recursive, open) {