forked from 541435721/myVTKPythonLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetPDataSurfaceArea.py
27 lines (20 loc) · 1.02 KB
/
getPDataSurfaceArea.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#coding=utf8
########################################################################
### ###
### Created by Martin Genet, 2012-2016 ###
### ###
### University of California at San Francisco (UCSF), USA ###
### Swiss Federal Institute of Technology (ETH), Zurich, Switzerland ###
### École Polytechnique, Palaiseau, France ###
### ###
########################################################################
import myVTKPythonLibrary as myVTK
########################################################################
def getPDataSurfaceArea(
pdata,
verbose=1):
myVTK.myPrint(verbose, "*** getPDataSurfaceArea ***")
mass_properties = myVTK.createMassProperties(
pdata=pdata,
verbose=verbose-1)
return mass_properties.GetSurfaceArea()