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

Synopsis

polySmooth [-caching boolean] [-constructionHistory boolean] [-continuity float] [-divisions int] [-keepBorder boolean] [-keepHardEdge boolean] [-keepSelectionBorder boolean] [-keepTessellation boolean] [-name string] [-nodeState int] [-osdCreaseMethod int] [-osdFvarBoundary int] [-osdFvarPropagateCorners boolean] [-osdSmoothTriangles boolean] [-osdVertBoundary int] [-propagateEdgeHardness boolean] [-subdivisionType int]

polySmooth is undoable, queryable, and editable.

Smooth a polygonal object. This command works on polygonal objects or faces.

Return value

stringThe node name.

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

Related

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

Flags

caching, constructionHistory, continuity, divisions, keepBorder, keepHardEdge, keepSelectionBorder, keepTessellation, name, nodeState, osdCreaseMethod, osdFvarBoundary, osdFvarPropagateCorners, osdSmoothTriangles, osdVertBoundary, propagateEdgeHardness, subdivisionType
Long name (short name) Argument types Properties
-continuity(-c) float createqueryedit
This flag specifies the smoothness parameter. The minimum value of 0.0 specifies that the faces should only be subdivided. Maximum value of 1.0 smooths the faces as much as possible.
C: Default is 1.0
Q: When queried, this flag returns a float.
-divisions(-dv) int createqueryedit
This flag specifies the number of recursive smoothing steps.
C: Default is 1.
Q: When queried, this flag returns an int.
-keepBorder(-kb) boolean createqueryedit
If on, the border of the object will not move during smoothing operation.
C: Default is "on".
Q: When queried, this flag returns an int.
-keepHardEdge(-khe) boolean createqueryedit
If true, vertices on hard edges will not be modified.
C: Default is false.
Q: When queried, this flag returns a boolean.
-keepSelectionBorder(-ksb) boolean createqueryedit
If true, vertices on border of the selection will not be modified.
C: Default is false.
Q: When queried, this flag returns a boolean.
-keepTessellation(-kt) boolean createqueryedit
If true, the object will be tessellated consistently at each frame. If false, non-starlike faces will be triangulated before being subdivided, to avoid self-overlapping faces.
C: Default is true.
Q: When queried, this flag returns a boolean.
-osdCreaseMethod(-ocr) int createqueryedit
Controls how boundary edges and vertices are interpolated.
-osdFvarBoundary(-ofb) int createqueryedit
Controls how boundaries are treated for face-varying data (UVs and Vertex Colors).
-osdFvarPropagateCorners(-ofc) boolean createqueryedit
-osdSmoothTriangles(-ost) boolean createqueryedit
Apply a special subdivision rule be applied to all triangular faces that was empirically determined to make triangles subdivide more smoothly.
-osdVertBoundary(-ovb) int createqueryedit
Controls how boundary edges and vertices are interpolated.
-propagateEdgeHardness(-peh) boolean createqueryedit
If true, edges which are a result of smoothed edges will be given the same value for their edge hardness. New subdivided edges will always be smooth.
C: Default is false.
Q: When queried, this flag returns a boolean.
-subdivisionType(-sdt) int createqueryedit
The subdivision method used for smoothing.
C: Default is 0.
0: Maya Catmull-Clark
1: OpenSubdiv Catmull-Clark
Common flags
-caching(-cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed.
-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.
-name(-n) string create
Give a name to the resulting node.
-nodeState(-nds) int createqueryedit
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

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

polyCube -n plg1; move -3 0 2;
polyCube -n plg2; move -3 0 -2;
polyCube -n plg3; move 0 0 2; delete plg3.f[1];
polyCube -n plg4; move 0 0 -2; delete plg4.f[1];
polyCube -n plg5; move 3 0 2;
polyCube -n plg6; move 3 0 -2;

polyOptions -ao -db 1;

// only one division:
polySmooth -dv 1 plg1.f[0:5];

// 2 divisions produces a round-ish object
polySmooth -dv 2 plg2.f[0:5];

// keep border edges
select plg3.f[0:4];
polySmooth -kb 1;

// don't keep border edges
select plg4.f[0:4];
polySmooth -kb 0;

// 1 division, continuity 0.2
select plg5;
polySmooth -c 0.2;

// 1 division, continuity 0.8
polySmooth -c 0.8 plg6.f[0:5];