Commit 7acd2a51 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

Fix a bug

Prevent crash when computing volume of cell that have no faces.
parent fbcd23ff
......@@ -774,6 +774,7 @@ namespace INMOST
}
if( *ret < 0.0 ) //a robust algorithm that can handle unoriented cell
*/
if( !faces.empty() )
{
//real was = *ret/3.0;
*ret = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment