I want to know, how can I get mesh’s faces/vertices from Loader3D or ObjectContainer3D in broomstick ?
I just want to use them for ray intersection (method: getRayToTriangleIntersection)
How to get mesh faces/vertices in broomstick ?Software: Away3D 4.x |
||
BayOfXyz, Newbie
Posted: 18 August 2011 07:23 PM Total Posts: 1 |
||
theMightyAtom, Sr. Member
Posted: 18 August 2011 08:31 PM Total Posts: 669 [ # 1 ]
SubGeometry(_mesh.geometry.subGeometries[0]).vertexData;
If you have more than one mesh in the loader, or more than one sub geometry in the mesh, you need to loop though them. |
||
|
||
theMightyAtom, Sr. Member
Posted: 18 August 2011 11:02 PM Total Posts: 669 [ # 3 ] Quite right, the vertexData is in triplets; x,y,z |