What became SubGeometry.updateIndexData in the latest version ?

Software: Away3D 4.x

dj_ouf, Newbie
Posted: 12 February 2014 05:21 PM   Total Posts: 9

Hi

Actually, I’m trying to use the AS3Mod library with the latest Away3D version, and i’m getting some troubles.

It seems that the property ‘updateIndexData’ is no longer available. Here’s the code i’m using (based from AS3Mod tutorial for clothes simulation).

var geometry:PlaneGeometry = new PlaneGeometry(3002001212true);
   var 
indices:Vector.<uint> = geometry.subGeometries[0].indexData.slice();
   var 
sil:uint indices.length;
   
   for (var 
i:int 0sil+= 3{
    indices
.push(indices[i 2]indices[i 1]indices[i]);
    
geometry.subGeometries[0].indexData.push(indices[i 2]indices[i 1]indices[i]);
   
}
   
   geometry
.subGeometries[0].updateIndexData(indices);
   
this.mesh = new Mesh(geometrytextureMat); 

Thanks guys smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X