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

Synopsis

polyDelVertex([constructionHistory=boolean], [name=string])

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

polyDelVertex is undoable, queryable, and editable.

Deletes vertices. Joins two edges which have a common vertex. The vertices must be connected to exactly two edges (so-called "winged").

Flags

constructionHistory, name
Long name (short name) [argument types] Properties
name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.


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 node name.

Related

polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyMergeEdge, polyMergeFacet, polyMergeVertex, polyQuad, polyReduce, polySewEdge

Python examples

import maya.cmds as cmds

cmds.polyPlane( n='plg' )
cmds.select( 'plg.vtx[59:61]' )
#These vertices are not winged, so they can not be deleted
cmds.polyDelVertex()

cmds.select( 'plg.e[93]', 'plg.e[95]', 'plg.e[97]', 'plg.e[114]', 'plg.e[116]', 'plg.e[118]' )
cmds.delete()
cmds.select( 'plg.vtx[59:61]' )
#Now they are winged, as they are only connected to two edges.
cmds.polyDelVertex()

#Corners are winged, so they can be deleted
cmds.select( 'plg.vtx[0]', 'plg.vtx[10]', 'plg.vtx[107]', 'plg.vtx[117]' )
cmds.polyDelVertex()

cmds.select( 'plg' )
cmds.polyOptions( ao=True, dv=True )