[Howto] Getting started with FaceHelper.removeFaces

Software: Away3D 4.x

Ontheronix, Jr. Member
Posted: 17 March 2012 07:02 PM   Total Posts: 37

I’m stuck on how removeFace and removeFaces work, I don’t get i t figured out:

for (var i:int=0300;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!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X