Deletes one or more faces from a mesh object.
Rhino.DeleteMeshFace (strObject, intFaceIndex)
Rhino.DeleteMeshFace (strObject, arrFaceIndices)
strObject |
Required. String. The object's identifier. |
intFaceIndex |
Required. Number. The index of the face to delete. |
arrFaceIndices |
Required. Number. The indices of the faces to delete. |
Number |
The number of faces deleted from the mesh object if successful. |
Null |
If not successful, or on error. |
Dim strMesh, arrIndices
strMesh = Rhino.GetObject("Select mesh", 32)
If Not IsNull(strMesh) Then
arrIndices = Rhino.GetMeshFaces(strMesh)
If IsArray(arrIndices) Then
Call Rhino.DeleteMeshFace(strMesh, arrIndices)
End If
End If