I’m stuck on how removeFace and removeFaces work, I don’t get i t figured out:
for (var i:int=0; i < 300;i++){
FaceHelper.removeFace(msh,i,0);
}
The docs say the following:
public static function removeFace(mesh:Mesh, index:uint, subGeomIndice:uint):void
mesh:Mesh — Mesh. The mesh to remove a face from
index:uint — uint. Index of the face in vertices. The value represents the position in indices vector divided by 3. For instance, to edit face [1], the parameter indice will be 1. The x value of the v0 at position 3 in vertice vector is then extracted from vertices[indices[indice]]
subGeomIndice:uint — uint. Index of vertex 1 of the face
Has anyone a working example or code snippet on this?
Thanks in advance!