From: asozinov Date: Tue, 5 Nov 2024 15:26:47 +0000 (+0000) Subject: Added missed fix for negative volume X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59ef5871d59e31092eadad9552447e22c4835d17;p=modules%2Fsmesh.git Added missed fix for negative volume --- diff --git a/src/SMDS/SMDS_VolumeTool.cxx b/src/SMDS/SMDS_VolumeTool.cxx index 6781da059..5f19510b4 100644 --- a/src/SMDS/SMDS_VolumeTool.cxx +++ b/src/SMDS/SMDS_VolumeTool.cxx @@ -885,6 +885,8 @@ double SMDS_VolumeTool::GetSize() const myVolumeNodes[ vtab[i][2] ], myVolumeNodes[ vtab[i][3] ]); } + if (!myVolForward && V < 0) + V *= -1; } return V; }