Go to: Return value. Related commands. Flags. Examples.

Synopsis

polySmooth [flags]

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

Return value

string The node name.

Related commands

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

Flags

constructionHistory, continuity, divisions, keepBorder, keepHardEdge, keepSelectionBorder, keepTessellation, name

Long name (short name)[argument types]Properties
-continuity (-c) floatquerycreateedit
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) intquerycreateedit
This flag specifies the number of recursive smoothing steps.
C: Default is 1.
Q: When queried, this flag returns an int.
-keepBorder (-kb) booleanquerycreateedit
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.
-keepSelectionBorder (-ksb) booleanquerycreateedit
If true, vertices on border of the selection will not be modified.
C: Default is false.
Q: When queried, this flag returns a boolean.
-keepHardEdge (-khe) booleanquerycreateedit
If true, vertices on hard edges will not be modified.
C: Default is false.
Q: When queried, this flag returns a boolean.
-keepTessellation (-kt) booleanquerycreateedit
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.

Common flags

-name (-n) stringcreate
Name the resulting object.
-constructionHistory (-ch) booleanquerycreate
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

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

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];