Getting polygons that intersect box/sphere

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Getting polygons that intersect box/sphere

Postby Spek » Wed Jul 15, 2009 4:08 pm

Hi,

Does Newton (not the newest version) have a function for getting a listing of all polygons that intersect a sphere or box? Not for physics or collisions, just retreiving all the faces from a world mesh that intersect a box/sphere shape. I'd like to create decals at a certain point, so I need to know the geometric in that (small) area.

Greetings,
Rick
Spek
 
Posts: 66
Joined: Sat Oct 04, 2008 8:54 am

Re: Getting polygons that intersect box/sphere

Postby Julio Jerez » Wed Jul 15, 2009 4:16 pm

Not it does not, but cann't you use the position of the contacts
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Getting polygons that intersect box/sphere

Postby Spek » Wed Jul 15, 2009 4:39 pm

Using the contacts... I don't know which points exactly are given by the contacts when a box intersects another shape. The 4 edge intersection points? For the decal I need to copy a small piece of the surface geometry, then clip it in a box for the resulting decal shape. If the contacts exactly outline the shape that is inside the box, it would give me enough information to do this.

Greetings,
Rick
Spek
 
Posts: 66
Joined: Sat Oct 04, 2008 8:54 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests