Hi all, I don’t understand why I cannot update vertex data of a mesh with this code:
var originalVertexData:Vector.<Number> = myMesh.geometry.subGeometries[0].vertexData;
var newVertexData:Vector.<Number>;
for(var i:Number=0; i<originalVertexData.length; i++){
newVertexData.push(originalVertexData[i] += 0.5);
}
myMesh.geometry.subGeometries[0].updateVertexData(newVertexData);
This code throws an exception “Call to a possibly undefined method updateVertexData through a reference with static type away3d.core.base:ISubGeometry”
Any idea?