Dumb question: Away3D 4 beta plane primitive width

Software: Away3D 4.x

clunetta, Newbie
Posted: 25 April 2012 06:17 AM   Total Posts: 9

Hello all

This is most probably a dumb question.

I have created a mesh in order to create a plane, using the syntax

var mesh:Mesh = new Mesh(new planeGeometry(100, 200), material);

all is fine, but if I need to retrieve the plane width/height, I can’t find the option;

mesh won’t show width and height; mesh.geometry, neither.

Any ideas?

Thanks!

   

Limouse-Lee, Newbie
Posted: 25 April 2012 07:26 AM   Total Posts: 10   [ # 1 ]

try

mesh.maxX / maxY / maxZ
mesh.minX / minY / minZ

   

clunetta, Newbie
Posted: 25 April 2012 12:48 PM   Total Posts: 9   [ # 2 ]

got it! I was looking for width/height properties, that’s why.
Thanks a lot!

   

clunetta, Newbie
Posted: 25 April 2012 06:53 PM   Total Posts: 9   [ # 3 ]

I’m still having a problem with this;

I have an objectContainer3D, where I add planes.
The planes are displaced in x, y and z. (it’s just a loop that add around 20 planes and move them around)

After adding and displacing the planes, the maxX/maxY/maxZ and minX/minY/minZ still return the dimensions as if only one plane is in the center; I can see visually the results as correctly placed on stage, but the properties won’t change.

Is there any way to get the updated boundaries of the objectContainer3D?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X