polyop.createVert <Poly poly> <point3 pos> \
node:<node=unsupplied>
Creates a vertex as the specified position.
If <poly>
is a node, or if <poly>
is an Editable Poly and <node>
is specified, the position is in the current coordinate system context.
If <poly>
is an Editable Poly and <node>
is not specified, the position is in the poly's local coordinate system.
Returns the index of the created vertex or undefined if no vertex was created.
polyop.createEdge <Poly poly> <int vert1> <int vert2>
Creates an edge using the two specified vertices.
The vertices must be used by a common face.
Returns the index of the created edge or undefined
if no edge was created.
polyop.createPolygon <Poly poly> <vertex array>
Creates a face using the specified vertices.
The order of the vertices in the face is the order in the vertex array. For each successive vertex pair, at most one edge might exist between the vertices and that edge must not go from the first to second vertex.
The default triangulation for a face with the specified number of vertices is used if the face is not convex. This triangulation might be inappropriate.
If this is the case, call retriangulate()
on this face after it is created.
Returns the index of the created face or undefined if no face was created.
polyop.createShape <Poly poly> <edgelist> \
smooth:<boolean=false> name:<string="Shape01"> node:<node=unsupplied>
Creates a shape node from the specified edges.
If <smooth>
is true
, the shape is created as a smooth curve.
The name of the new node is specified by <name>
.
If <poly>
is an Editable Poly (not a node), <node>
must be specified.