Ejemplo n.º 1
0
bool IntersectPolyhedron (const TPolyhedron& p) {
	bool hit = false;
	for (size_t i=0; i<p.num_polygons; i++) {
		hit = IntersectPolygon (p.polygons[i], p.vertices);
		if (hit == true) break;
	}
	return hit;
}
Ejemplo n.º 2
0
bool IntersectPolyhedron (TPolyhedron p) {
    bool hit = false;
    int i;
    for (i=0; i<p.num_polygons; i++) {
        hit = IntersectPolygon (p.polygons[i], p.vertices);
        if  (hit == true) break;
    } 
    return hit;
}