Don't report intersection if two polygons are only touching.

This commit is contained in:
tamasmeszaros 2021-10-04 14:16:13 +02:00
parent 8c89abc9fb
commit 4cc1b2740d
3 changed files with 33 additions and 28 deletions

View file

@ -532,7 +532,9 @@ inline bool is_rotation_ninety_degrees(const Vec3d &rotation)
return is_rotation_ninety_degrees(rotation.x()) && is_rotation_ninety_degrees(rotation.y()) && is_rotation_ninety_degrees(rotation.z());
}
bool intersects(const Polygon &convex_poly1, const Polygon &convex_poly2);
// Returns true if the intersection of the two convex polygons A and B
// is not an empty set.
bool intersects(const Polygon &A, const Polygon &B);
} } // namespace Slicer::Geometry