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()
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)