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

Synopsis

polyCreateFacet [-constructionHistory boolean] [-hole] [-name string] [-point float float float] [-subdivision int] [-texture int]

polyCreateFacet is undoable, queryable, and editable.

Create a new polygonal object with the specified face, which will be closed. List of arguments must have at least 3 points.

Flags

constructionHistory, hole, name, point, subdivision, texture
Long name (short name) [argument types] Properties
-point(-p) float float float createmultiuse
Adds a new point to the face. Coordinates of points are given in world reference. The point flag may also be passed with no arguments. That indicates that the following points will specify a hole. Passing the point flag with no arguments is the same as using the "hole" flag, except that it will work in Python.
-texture(-tx) int createqueryedit
Specifies how the face is mapped.
0 - None; 1 - Normalize; 2 - Unitize
C: Default is 0 (no mapping).
Q: When queried, this flag returns an int

In query mode, this flag needs a value.

-subdivision(-s) int createqueryedit
This flag specifies the level of subdivision. Subdivides edges into the given number of edges.
C: Default is 1 (no subdivision).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.

-hole(-hl) createmultiuse
Add a hole. The following points will define a hole. Holes can be defined either clockwise or counterclockwise. Note that this flag is not recommended for use in Python. When specifying facets with the point flag in Python, pass in an empty point "()" when you want to start specifying a hole.
-name(-n) string create
Name the resulting object.
-constructionHistory(-ch) boolean createquery
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.


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

Return value


string string Object name and node name.

Related

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

MEL examples

// Create a triangular facet
polyCreateFacet -p 0.0 0.0 0.0 -p 10.0 0.0 0.0 -p 10.0 10.0 0.0;

// Create a quadrangular facet with two triangular holes inside
polyCreateFacet -p 0 0 0 -p 10 0 0 -p 10 10 0 -p 0 10 0
    -hl -p 4 2 0 -p 5 4 0 -p 6 2 0 -hl -p 5 6 0 -p 4 8 0 -p 6 8 0;
move -r 0 0 10;