[Gmsh] Is volume always positive
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon Oct 12 16:07:15 CEST 2015
Dear GMSH,
I generate a 3D tetrahedral mesh.
Each tetrahedron is given by 4 coordinates (c0,c1,c2,c3)
Can it be guaranteed that the volume of the element, namely det(c1-c0, c2-c0, c3-c0), is always positive?
I am getting negative values, but I am mostly convinced it is due to my code. I just wanted to cross-check. I mean, I can always just take the absolute value, but why waste and extra code if it is already ensured to be positive :)
Regards,
Aleksejs