Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

polyAppendVertex [-append float float float] [-constructionHistory boolean] [-hole] [-name string] [-point float float float] [-texture int] [-vertex int]

polyAppendVertex is undoable, queryable, and editable.

Appends a new face to the selected polygonal object. The direction of the normal is given by the vertex order: the face normal points towards the user when the vertices rotate counter clockwise. Note that holes must be described in the opposite direction.
Only works with one object selected.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

polyAppend, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polyExtrudeFacet, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate

Flags

append, constructionHistory, hole, name, point, texture, vertex
Long name (short name) Argument types Properties
-append(-a) float float float createmultiuse
Append a vertex or a point to the selected object, or mark the start of a hole.
This flag may also be used in place of the "hole", "vertex" and "point" flags. If no argument is passed to the "append" flag, then it marks the beginning of a hole (use an empty tuple in Python '()'). If one argument is passed, then the argument is considered to be an index into the vertices of the selected object, as with the "vertex" flag. If three arguments are passed, then it is interpreted as the coordinates of a new point which will be inserted, as with the "point" flag.
-vertex(-v) int createmultiuse
Adds the given vertex of the selected object to the new face. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass one argument.
-point(-p) float float float createmultiuse
Adds a new point to the new face. Coordinates of free points are given in the local object reference. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass three arguments.
-texture(-tx) int createqueryedit
Specifies how new faces are mapped.
0 - None; 1 - Normalize; 2 - Unitize
C: Default is 0 (no mapping).
Q: When queried, this flag returns an int
-hole(-h) createmultiuse
Add a hole. The following points and edges will define a hole. Note that this flag should be avoided in Python. You may use the "append" flag instead and pass an empty tuple '()' to specify the start of a hole.
Common flags
-name(-n) string create
Give a name to the resulting node.
-constructionHistory(-ch) boolean createquery
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.
Note: If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

polyPlane -sx 3 -sy 3;

// add a new face
polyAppendVertex -v 6 -v 10 -p .167 .3 -.167 -p .167 .3 .167;

// add a new holed face
polyAppendVertex -v 9 -v 5 -p -.167 .3 .167 -p -.167 .3 -.167 -h -p -.167 .2 .1 -p -.167 .1 0 -p -.167 .2 -.1;

// connect the two new faces
polyAppendVertex -v 18 -v 17 -v 16 -v 19;

// add a new unconnected quad
polyAppendVertex -p -.5 .5 -.5 -p .5 .5 -.5 -p .5 .5 .5 -p -.5 .5 .5;