face.normal.getAngle() should do the work.

On Tue, Jun 15, 2010 at 6:17 PM, savagelook <[email protected]>wrote:

> Check the showNormals block of the renderTriangle() function in
> BitmapMaterial.  I don't have time to dig in right now, but that's how
> the away3d code shows a line indicating the direction of the normals
> on a triangle.  This should help you get want you want.
>
> On Jun 15, 11:12 am, savagelook <[email protected]> wrote:
> > I could be wrong cause I'm not looking at the code, but I would assume
> > that "face[0].normal" is returning the vector of the normal, or simply
> > its direction.  You might need to calculate the center of the face by
> > using its 3 vertices, not sure if away3d has this center point built
> > in.  I don't know how to do that calculation off hand, though, sorry.
> >
> > On Jun 15, 10:52 am, jens lofberg <[email protected]> wrote:
> >
> >
> >
> > > Hi
> > > I would like to use the angle of the face.normal but I don't understand
> it.
> > > trace(face[0].normal) only give me one 3d point (x,y,z)? To use the
> > > angle I need two points?
> >
> > > THANKS
> > > jens
>



-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
http://www.meetup.com/GO3D-Games-Opensource-3D/
Tel:054-4962254
[email protected]
[email protected]

Reply via email to