Hi Fabrice,

Thanks for your fast answer!
I didn´t know I could get the face under the mouseEvent...
unfortunately I´m not able to find the face property from the mouseEvent3D.
There is a face property in away3DLite, is it the same?
when i try to get the mouseEvent face with: trace(evt.face);
I get : "1119: Access of possibly undefined property face through a
reference with static type away3d.events:MouseEvent3D. "
I´m using the last away3d revision 3.5.

thanks for the help!



On Wed, Sep 1, 2010 at 2:05 PM, Fabrice3D <[email protected]> wrote:

> why would you need this?
> If you set a mesh mouseEvent3D, it gives you the face object back,
> ask the neighbors faces using m.geometry.neighbour01(face) (12,20) will
> return you these.
>
> imagine if a mesh is composed of thousands of faces, if each one of them
> would have a listenner.
> even hundreds would be overkill. Plus, there are other ways than
> mouseEvents3D to retreive faces under mouse.
>
> Fabrice
>
> On Sep 1, 2010, at 1:50 PM, Bruno wrote:
>
> > Hello All!
> >
> > In my project, I have to find the adjacent faces from one selected
> > face. The idea is to add a mouse3d eventListener to each face, so when
> > one face is clicked the connected faces will react somehow. I don´t
> > want to have to iterate through all faces to find the right ones.
> >
> > also I would like to know if it´s possible to add an Mouse3D
> > EventListener to a face. I could use on meshes and objects but it
> > seems that faces are different...
> >
> > any help is more than appreciated!! :)
>
>

Reply via email to