The points are objects of type {x,y} instead of an array [x,y] like the types indicate.
example: run this on the web example console.log(CrossSection.square().toPolygons());
output:
Thanks, good find. @pca006132 this makes me wonder if we should do any additional API changes here. We switched from Mesh vector-of-vec3 to MeshGL flat vectors. Should we do something similar with Polygon?
The points are objects of type {x,y} instead of an array [x,y] like the types indicate. example: run this on the web example
console.log(CrossSection.square().toPolygons());
output:expected:
I can look into fixing it later if no one wants to fix it.