RNBoolean R3Contains(const R3Triangle& triangle, const R3Box& box) { // Return whether triangle contains box if (!box.IsPlanar()) return FALSE; if (!R3Contains(triangle, box.Min())) return FALSE; if (!R3Contains(triangle, box.Max())) return FALSE; return TRUE; }
RNBoolean R3Contains(const R3Plane& plane, const R3Box& box) { // Return whether plane contains box if (!box.IsPlanar()) return FALSE; if (!R3Contains(plane, box.Min())) return FALSE; if (!R3Contains(plane, box.Max())) return FALSE; return TRUE; }