示例#1
0
文件: entities.py 项目: trelau/AFEM
 def volume(self):
     """
     :return: The voume of all solids of the shape.
     :rtype: float
     """
     props = GProp_GProps()
     BRepGProp.VolumeProperties_(self.object, props, True)
     return props.Mass()
示例#2
0
 def __init__(self,
              shape,
              tol=1.0e-7,
              only_closed=False,
              skip_shared=False):
     super(VolumeProps, self).__init__()
     BRepGProp.VolumeProperties_(shape.object, self._props, tol,
                                 only_closed, skip_shared)