We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5633ba commit cadf73aCopy full SHA for cadf73a
src/geode/mesh/helpers/repair_polygon_orientations.cpp
@@ -79,10 +79,20 @@ namespace
79
{
80
const auto adj =
81
mesh_.polygon_adjacent_edge( { cur_polygon, e } );
82
- if( !adj || visited[adj->polygon_id] )
+ if( !adj )
83
84
continue;
85
}
86
+ if( visited[adj->polygon_id] )
87
+ {
88
+ OPENGEODE_DATA_EXCEPTION(
89
+ cur_polygon_reorient
90
+ == reorient_polygon_[adj->polygon_id],
91
+ "[RepairPolygonOrientations] Mobius strip "
92
+ "detected, polygons orientations can not be "
93
+ "repaired" );
94
+ continue;
95
+ }
96
const auto e_next = e == vertices.size() - 1 ? 0 : e + 1;
97
const auto adj_vertices =
98
mesh_.polygon_edge_vertices( adj.value() );
0 commit comments