I need to be able to find the intersection line between a 3d triangle and a 3d quad. they will both always be coplanar (their points, not to each other).
right now the only thing i can think of is to:
-
get the planes of both polygons, then get the intersection line between them
-
for each side of both polygons: get a plane perpendicular to the ploygon’s plane that lies along the side. clip the intersection line to each plane.
this seems rather inefficient to me, and i was wondering if anyone could suggest a better way.