]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Added missed fix for negative volume asozinov/42097 52/head
authorasozinov <alexey.sozinov@opencascade.com>
Tue, 5 Nov 2024 15:26:47 +0000 (15:26 +0000)
committerasozinov <alexey.sozinov@opencascade.com>
Tue, 5 Nov 2024 17:14:47 +0000 (17:14 +0000)
src/SMDS/SMDS_VolumeTool.cxx

index 6781da059c5e2e1fff74f8f87f5f339d0164875e..5f19510b42ecf83dcef364625be4dff0959084cb 100644 (file)
@@ -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;
 }