The PolyFaceMesh Design carries with it a large amount of geometric information. A full description is in the Reference section (be sure to follow links to Mixins, as these Designs allow PolyFaceMesh to inherit much of this information).
A Project with a PolyFaceMesh
The PolyFaceMesh Design is useful for defining objects that can be represented by directly adjacent planar faces. Each face can be defined as a number of vertices.
The inputs to this geometric Design are:
1.A vertex array/"vertices": [point1, point2, point3, …] which is a list of vertex points that define the corners of the faces. Each point has an index number starting from 0, for example:
return[p(0,0,0),
p(-1.7634,-2.4271,0),
p(-2.8532,0.9271,0),
p(0,3,0),
p(2.8532,0.9271,0),
p(1.7634,-2.4271,0),
p(0,0,2)]
2.A face array/"faces": [Face-l, Face-j, Face-k, …] where each face contains a list of 3 vertex indices, as defined in the vertex array. Each face must represent a triangle, i.e., it must contain 3 vertices.
return[0,1,2,
0,2,3,
0,3,4,
0,4,5,
0,5,1,
1,6,2,
2,6,3,
3,6,4,
4,6,5,
5,6,1]
The output is a 3D geometric element as defined by the inputs.