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 Returns the faces that share the specified edge. Requires edges to be selected. edgeToVertex / ev bool Returns the vertices defining an edge. Requires edges to be selected. faceNormals / fn bool 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 Returns the edges defining a face. Requires faces to be selected. faceToVertex / fv bool Returns the vertices defining a face. Requires faces to be selected. invalidEdges / ie bool Find all edges that are not associated with any face in the mesh. invalidVertices / iv bool Find all vertices that are not associated with any face in the mesh. laminaFaces / lf bool Find all lamina faces in the specified objects. nonManifoldEdges / nme bool Find all non-manifold edges in the specified objects. nonManifoldVertices / nmv bool Find all non-manifold vertices in the specified objects. vertexToEdge / ve bool Returns the Edges connected to a vertex. Requires vertices to be selected. vertexToFace / vf bool 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]