Go to: Synopsis. Return value. Related. Flags. MEL examples.
displaySmoothness [-all] [-boundary] [-defaultCreation] [-divisionsU int] [-divisionsV int] [-full] [-hull] [-pointsShaded int] [-pointsWire int] [-polygonObject int] [-renderTessellation boolean] [-simplifyU int] [-simplifyV int]
[objects]
displaySmoothness is undoable, queryable, and NOT editable.
This command is responsible for setting the display smoothness of NURBS curves and surfaces to either predefined or custom values. It also sets display modes for smoothness such as hulls and the hull simplification factors. At present, this command is NOT un-doable.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-all(-all)
|
|
|||
|
||||
-boundary(-bn)
|
|
|||
|
||||
-defaultCreation(-dc)
|
|
|||
|
||||
-divisionsU(-du)
|
int
|
|||
|
||||
-divisionsV(-dv)
|
int
|
|||
|
||||
-full(-f)
|
|
|||
|
||||
-hull(-hl)
|
|
|||
|
||||
-pointsShaded(-ps)
|
int
|
|||
|
||||
-pointsWire(-pw)
|
int
|
|||
|
||||
-polygonObject(-po)
|
int
|
|||
|
||||
-renderTessellation(-rt)
|
boolean
|
|||
|
||||
-simplifyU(-su)
|
int
|
|||
|
||||
-simplifyV(-sv)
|
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. |
// create a surface sphere; // set rough smoothness settings displaySmoothness -du 0 -dv 0 -pw 4 -ps 1; // set medium smoothness settings displaySmoothness -du 1 -dv 1 -pw 8 -ps 2; // set fine smoothness settings displaySmoothness -du 2 -dv 2 -pw 16 -ps 4; // Display surface as a hull displaySmoothness -hull; // Display with reduced number of points displaySmoothness -hull -su 2 -sv 2; // Display rendering tesselation displaySmoothness -rt 1; // Set default value for pointsShaded. // Subsequent surfaces created will have pointsShaded as 2. displaySmoothness -dc -ps 2; // displaySmoothness queries displaySmoothness -q -hull; // query hull display, returns boolean displaySmoothness -q -dc -ps; // query default pointsShaded value displaySmoothness -q -du; // query surface divisionsU value // Only the -pointsWire flag works on curves. circle; // change the number of points displayed per curve span. displaySmoothness -pw 3; // query default pointsWire value for curves. displaySmoothness -q -dc -pw; polyCube; // Query the display resolution displaySmoothness -q -polygonObject; // Result: 0 // Change the display resolution displaySmoothness -polygonObject 2;