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 a3cccab commit 8ba517bCopy full SHA for 8ba517b
src/geode/geometry/quality.cpp
@@ -166,6 +166,10 @@ namespace geode
166
double tetrahedron_volume_to_edge_ratio( const Tetrahedron& tetra )
167
{
168
const auto signed_volume = geode::tetrahedron_signed_volume( tetra );
169
+ if( signed_volume < 0. )
170
+ {
171
+ return 0.;
172
+ }
173
double sq_len{ 0 };
174
const auto& vertices = tetra.vertices();
175
for( const auto v0 : geode::LRange{ 3 } )
0 commit comments