polyop.deleteVerts <Poly poly> <vertlist>
Deletes the specified vertices.
polyop.deleteFaces <Poly poly> <facelist> \
delIsoVerts:<boolean=true>
Deletes the specified faces.
If <delIsoVerts>
is true
, any vertices that are no longer used by faces are also deleted.
polyop.deleteEdges <Poly poly> <edgelist> \
delIsoVerts:<boolean=true>
Deletes the specified edges.
If <delIsoVerts>
is true
, any vertices that are no longer used by edges are also deleted.
The behavior of the methods PolyOp.deleteEdges()
, PolyOp.deleteVerts()
, and PolyOp.deleteFaces()
changed in 3ds Max 5. When using these methods, all sub-object elements that use the deleted elements are also deleted. What used to be the (internal) Delete method is now the (internal) Remove method. This new method is not exposed through the polyOp
structure, so you need to work through the EditablePoly interface, Remove method.
An example replacement function which works in both version 4 and higher is:
EXAMPLE
fn polyop_deleteEdges obj which delIsoVerts = ( if (MaxVersion())[1] >= 5000 then ( local bit30 = bit.set 0 30 true polyop.setEdgeFlags obj which bit30 obj.EditablePoly.remove selLevel:#edge flag:bit30 if delIsoVerts == true do polyop.deleteIsoVerts obj ) else polyop.deleteEdges obj which delIsoVerts:delIsoVerts )
polyop.deleteIsoVerts <Poly poly>
Deletes any vertices not used by any faces.