From 59ef5871d59e31092eadad9552447e22c4835d17 Mon Sep 17 00:00:00 2001 From: asozinov Date: Tue, 5 Nov 2024 15:26:47 +0000 Subject: [PATCH] Added missed fix for negative volume --- src/SMDS/SMDS_VolumeTool.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2