overlapping triangles inside or intersected by AABB

forest
Posts: 1
Joined: Sat Nov 22, 2008 4:09 am

overlapping triangles inside or intersected by AABB

Post by forest »

Is there any way to retrieve overlapping triangles (of a static triangle mesh) inside or intersected by an AABB box? Thank you a lot.
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

Re: overlapping triangles inside or intersected by AABB

Post by projectileman »

Every concave shape derived from btConcaveShape has this method:

Code: Select all

processAllTriangles(btTriangleCallback* callback,const btVector3& aabbMin,const btVector3& aabbMax)
Which will give you all triangles intersected by an AABB.