polygon2.onPlane

The ring placed on a plane, as points in space.

Value helperSince 0.4.0

Usage

TypeScript
polygon.onPlane(plane: Plane): Point3[]

Parameters

  • planePlane

    The 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

TypeScript
Polygon2.rectangle(2, 2).value.onPlane(Plane.worldZX)[0] // → { x: -1, y: 0, z: -1 }

See also