OBBs intersection volume

Started by
3 comments, last by someusername 18 years, 2 months ago
Hi, I'm wondering how to compute the volume of the intersection of two OBBs. Does anyone know such an algorithm or a source? Thanks,
Advertisement
in what form? as a set of polygons?

if it's polygons you want, you clip the polygons of one box with the other box, and vice-versa.

Everything is better with Metal.

An OBB-OBB intersection is complicated enough that you're probably best off just using general CSG routines.
Thanks,

I want it as a set of polygons.
I thought up an algorithm as following.
Is this correct?

1. Find all OBB vertices that are contained in the another.
2. Find all intersection points between the OBB edges and another's facets.
3. Compute the convex hull of those vertices.

I think there may be a more efficient algorithm
that compute the intersection volume of two polyhedra...
This may sound stupid, but, you do want this in realtime, don't you?

This topic is closed to new replies.

Advertisement