polygon2.onPlane
The ring placed on a plane, as points in space.
Usage
polygon.onPlane(plane: Plane): Point3[]Parameters
planePlaneThe plane: x runs along its x axis, y along its y axis, from its origin. Required. In model.
Returns
cornerCount points, origin + x·xAxis + y·yAxis for each corner.
Example
Polygon2.rectangle(2, 2).value.onPlane(Plane.worldZX)[0] // → { x: -1, y: 0, z: -1 }