mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +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) {
|
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.
|
// When intersecting with the boundary of a facet we likely multiple co-planar facets. Exclude intersection.
|
||||||
auto xy = CGAL::intersection(s, *sc.segment);
|
auto xy = CGAL::intersection(s, *sc.segment);
|
||||||
|
if (!xy) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Segment_collector<Kernel> scy;
|
Segment_collector<Kernel> scy;
|
||||||
boost::apply_visitor(scy)(*xy);
|
boost::apply_visitor(scy)(*xy);
|
||||||
return (bool)scy.segment;
|
return (bool)scy.segment;
|
||||||
|
|||||||
Reference in New Issue
Block a user