85. plugins.polygon — Polygonal facets.

85.1. Classes defined in module plugins.polygon

class plugins.polygon.Polygon(border, normal=2, holes=[])[source]

A Polygon is a flat surface bounded by a closed PolyLine.

The border is specified as a Coords object with shape (nvertex,3) specifying the vertex coordinates in order. While the Coords are 3d, only the first 2 components are used.

85.2. Functions defined in module plugins.polygon

plugins.polygon.projected(X, N)[source]

Returns 2-D coordinates of a set of 3D coordinates.

The returned 2D coordinates are still stored in a 3D Coords object. The last coordinate will however (approximately) be zero.