Hi every one,
I would like to know how to get the volume of a mesh the mesh is built with meshpy (not my work) and save as a vtk I need as a first step to get the volume of the mesh
I can't find a way to do it quickly.
Hope anyone would be able to help me.
thanks
Hi,
define function
def get_volume(pb): volume = pb.evaluate('d_volume.5.V(u)')
and set it as the pre_process_hook function in options
options = { 'pre_process_hook' : 'get_volume', }
Regards Vladimir
On 02/25/2012 10:09 PM, henri meric wrote:
Hi every one,
I would like to know how to get the volume of a mesh the mesh is built with meshpy (not my work) and save as a vtk I need as a first step to get the volume of the mesh
I can't find a way to do it quickly.
Hope anyone would be able to help me.
thanks
participants (2)
-
henri meric
-
Vladimír Lukeš