Exemplo n.º 1
0
 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()
Exemplo n.º 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)