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 07978ef commit 2568487Copy full SHA for 2568487
src/geode/mesh/helpers/rasterize.cpp
@@ -332,7 +332,12 @@ namespace
332
cells.reserve( max_number_cells( min, max ) );
333
const auto triangle_edges = get_triangle_edges( triangle );
334
const auto normal = triangle.new_normal();
335
- if( !normal )
+ if( !normal
336
+ || absl::c_count_if( triangle_edges,
337
+ []( const geode::Segment3D& segment ) {
338
+ return segment.length() <= geode::global_epsilon;
339
+ } )
340
+ > 0 )
341
{
342
for( const auto e : geode::LRange{ 3 } )
343
0 commit comments