Your Ad Here

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

Synopsis

subdToPoly( [subd] , [applyMatrixToResult=boolean], [connectShaders=boolean], [constructionHistory=boolean], [convertComp=boolean], [copyUVTopology=boolean], [depth=int], [extractPointPosition=boolean], [format=int], [inSubdCVId=int], [inSubdCVIdLeft=int], [inSubdCVIdRight=int], [level=int], [maxPolys=int], [name=string], [object=boolean], [outSubdCVId=int], [outSubdCVIdLeft=int], [outSubdCVIdRight=int], [outv=int], [polygonType=int], [sampleCount=int], [shareUVs=boolean], [subdNormals=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

subdToPoly is undoable, queryable, and editable.

This command tessellates a subdivision surface and produces polygon. The name of the new polygon is returned. If construction history is ON, then the name of the new dependency node is returned as well.

Flags

applyMatrixToResult, connectShaders, constructionHistory, convertComp, copyUVTopology, depth, extractPointPosition, format, inSubdCVId, inSubdCVIdLeft, inSubdCVIdRight, level, maxPolys, name, object, outSubdCVId, outSubdCVIdLeft, outSubdCVIdRight, outv, polygonType, sampleCount, shareUVs, subdNormals
Long name (short name) [argument types] Properties
format(f) int queryedit
Format: 0 - Constant Depth, 1 - Leaf Geometry, 2 - Polygon Count 3 - Vertices
Default: kConstantDepth

In query mode, this flag needs a value.

polygonType(pt) int queryedit
Polygon type: 0 - Triangles, 1 - Quads, 2 - Polygons
Default: kPolygons

In query mode, this flag needs a value.

extractPointPosition(epp) boolean queryedit
Determines how the position of a mesh point is calculated If on the position of the mesh point is returned. If off the position of the point of the surface is returned.
Default: false

In query mode, this flag needs a value.

sampleCount(sc) int queryedit
The number of samples per face
Default: 1

In query mode, this flag needs a value.

depth(d) int queryedit
The depth at which constant-depth tessellates the surface
Default: 0

In query mode, this flag needs a value.

maxPolys(mp) int queryedit
The maximum number of polygons at which by polygons tessellates. If this attribute is greater than zero, it will override the sample count and depth attributes.
Default: 0

In query mode, this flag needs a value.

subdNormals(un) boolean queryedit
Keep subdiv surface normals
Default: false

In query mode, this flag needs a value.

copyUVTopology(cut) boolean queryedit
Copy over uv topology (shared/unshared) from the original subdivision surface to the converted polygonal mesh.
Default: false

In query mode, this flag needs a value.

shareUVs(suv) boolean queryedit
Force sharing of uvs on all common vertices - the value of this attribute gets overridden by the value of the copyUVTopology attribute.
Default: false

In query mode, this flag needs a value.

level(l) int queryedit
The depth from which to extract the CVs of the polyMesh (Used only when the extractPointPosition is set to true) *** CAUTION *** :Setting to higher values will be both memory-time expensive
Default: 0

In query mode, this flag needs a value.

convertComp(cc) boolean queryedit
Convert the componentIds back and forth A mapping that can be used to get the one-to-one association between the poly and the SubD component Ids
Default: false

In query mode, this flag needs a value.

outSubdCVId(os) int queryeditmultiuse
Output CV Id

In query mode, this flag needs a value.

outSubdCVIdLeft(osl) int queryedit
Higher 32 bit integer of the output CV Id

In query mode, this flag needs a value.

outSubdCVIdRight(osr) int queryedit
Lower 32 bit integer of the output CV Id

In query mode, this flag needs a value.

inSubdCVId(inSubdCVId) int queryeditmultiuse
Input CV Id

In query mode, this flag needs a value.

inSubdCVIdLeft(isl) int queryedit
Higher 32 bit integer of the input CV Id

In query mode, this flag needs a value.

inSubdCVIdRight(isr) int queryedit
Lower 32 bit integer of the input CV Id

In query mode, this flag needs a value.

outv(ov) int queryeditmultiuse
Out Vertices corresponding to the inSubDCVs.

In query mode, this flag needs a value.

applyMatrixToResult(amr) boolean queryedit
If true, the matrix on the input geometry is applied to the object and the resulting geometry will have identity matrix on it. If false the conversion is done on the local space object and the resulting geometry has the input object's matrix on it.
Default: true

In query mode, this flag needs a value.

name(n) string create
Name the resulting object
constructionHistory(ch) boolean create
Turn the construction history on or off (where applicable)
object(o) boolean create
Create the result, or just the dep. node (where applicable)
connectShaders(cs) boolean create
If true, all shader assignment will be copied from the original subdiv surface to the converted polygonal surface.
Default: true

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 have multiple arguments, passed either as a tuple or a list.

Return value


[string] - the polygon and optionally the dependency node name

Related

changeSubdivComponentDisplayLevel, changeSubdivRegion, createSubdivRegion, nurbsToSubdiv, polyToSubdiv, querySubdiv, refineSubdivSelectionList, subdCollapse, subdToBlind, subdiv, subdivCrease, subdivDisplaySmoothness

Return to Autodesk Index


Your Ad Here