mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Test for intersection result in cgal code
This commit is contained in:
@@ -695,6 +695,9 @@ public:
|
||||
if (!std::any_of(edges_i.begin(), edges_i.end(), [&sc](CGAL::Segment_3<Kernel>& s) {
|
||||
// When intersecting with the boundary of a facet we likely multiple co-planar facets. Exclude intersection.
|
||||
auto xy = CGAL::intersection(s, *sc.segment);
|
||||
if (!xy) {
|
||||
return false;
|
||||
}
|
||||
Segment_collector<Kernel> scy;
|
||||
boost::apply_visitor(scy)(*xy);
|
||||
return (bool)scy.segment;
|
||||
|
||||
Reference in New Issue
Block a user