replace center average with geometric center. fixed #284
This commit is contained in:
parent
cad64d52f8
commit
5d55cae92a
1 changed files with 2 additions and 1 deletions
|
|
@ -615,7 +615,8 @@ class Polygon {
|
|||
* @returns {Polygon|Point} a new polygon centered on x=0, y=0, z=0
|
||||
*/
|
||||
center(point) {
|
||||
throw "does not work";
|
||||
return this.bounds.center(this.getZ());
|
||||
// throw "does not work";
|
||||
let ap = newPoint(0, 0, 0, null),
|
||||
np = newPolygon(),
|
||||
pa = this.points;
|
||||
|
|
|
|||
Loading…
Reference in a new issue