pymel.core.modeling.polyInfo

polyInfo(*args, **kwargs)

Command query’s topological information on polygonal objects and components. So, the command will require the following to be specified: - selection list to query

Flags:

Long Name / Short Name Argument Types Properties
edgeToFace / ef bool ../../../_images/create.gif
  Returns the faces that share the specified edge. Requires edges to be selected.
edgeToVertex / ev bool ../../../_images/create.gif
  Returns the vertices defining an edge. Requires edges to be selected.
faceNormals / fn bool ../../../_images/create.gif
  Returns face normals of the specified object. If faces are selected the command returns the face normals of selected faces. Else it returns the face normals of all the faces of the object.
faceToEdge / fe bool ../../../_images/create.gif
  Returns the edges defining a face. Requires faces to be selected.
faceToVertex / fv bool ../../../_images/create.gif
  Returns the vertices defining a face. Requires faces to be selected.
invalidEdges / ie bool ../../../_images/create.gif
  Find all edges that are not associated with any face in the mesh.
invalidVertices / iv bool ../../../_images/create.gif
  Find all vertices that are not associated with any face in the mesh.
laminaFaces / lf bool ../../../_images/create.gif
  Find all lamina faces in the specified objects.
nonManifoldEdges / nme bool ../../../_images/create.gif
  Find all non-manifold edges in the specified objects.
nonManifoldVertices / nmv bool ../../../_images/create.gif
  Find all non-manifold vertices in the specified objects.
vertexToEdge / ve bool ../../../_images/create.gif
  Returns the Edges connected to a vertex. Requires vertices to be selected.
vertexToFace / vf bool ../../../_images/create.gif
  Returns the faces that share the specified vertex. Requires vertices to be selected. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polyInfo

Example:

import pymel.core as pm

# To find all non-manifold edges on a polygonal object called pPlane1
pm.polyInfo( nme=True )
pPlane1.e[74]
# To find all non-manifold vertices on a polygonal object called pPlane1
pm.polyInfo( nmv=True )
pPlane1.vtx[38] pPlane1.vtx[49]