that's because internally a property scale factor is being used.
if you want to set the scale by altering the vertexes
loop over the vertice using a similar code as this one:
var factorscale:Number = 1.2;
loop over cube.vertices
var v:Vertex = cube.vertices[index];
cube.updateVertex(v, v.x*factorscale, v.y*factorscale,
v.z*factorscale);
if you need to update the normals, pass as fith param, a boolean true;
Fabrice
On May 5, 2009, at 10:58 AM, gordon wrote:
i know, how i've to scale, but the vertices are not changed.
trace(cube.vertices);
cube.scaleX = 1.2;
trace(cube.vertices);
On 5 Mai, 10:39, Fabrice3D <[email protected]> wrote:
myMesh.scaleX = 1.2;
Fabrice
On May 5, 2009, at 10:23 AM, gordon wrote:
how i apply a scale???