Picking triangle within a mesh

Software: Away3D 4.x

Dragoola, Newbie
Posted: 11 September 2013 02:08 AM   Total Posts: 16

Hi, I am writing a program where I dynamically build and update meshes triangle by triangle, using FaceHelper. I want to be able to select a face using mouse picking. I know that the MouseEvent3D that gets fired when I click my object provides information such as the local coordinates and even UV coordinates of the point. I want however to get the face id of the triangle that the collision occurred in. Is there any way to do this. I need this functionality to, for example, remove that face from the mesh.

Thank you!

   

Avatar
vorodis2, Newbie
Posted: 12 September 2013 08:20 AM   Total Posts: 22   [ # 1 ]

Sorry for the English))
options:

1. You can Prouty on the texture coordinates from the resulting MouseEvent3D and find the most similar to the top.

2. Let its beam and determine the collision without MouseEvent3D. Look getRayToTriangleIntersection
I’ve done similar, but I had to fill noticing.
http://away3d.com/forum/viewthread/4755/

If I can help $)) .(JavaScript must be enabled to view this email address)

 

   

Avatar
dottob, Jr. Member
Posted: 12 September 2013 01:38 PM   Total Posts: 49   [ # 2 ]

Maybe this is what you need:

http://away3d.com/forum/viewthread/2007/

Another with 4.1.4,see the attach picture

Two ways,both of them was Explode to pieces.

 

   
   
‹‹ TouchEvent3D

X

Away3D Forum

Member Login

Username

Password

Remember_me



X