def length(self): """ :return: The length of all edges of the shape. :rtype: float """ props = GProp_GProps() BRepGProp.LinearProperties_(self.object, props, True) return props.Mass()
def __init__(self, shape, skip_shared=True): super(LinearProps, self).__init__() BRepGProp.LinearProperties_(shape.object, self._props, skip_shared)
def length(self): props = GProp_GProps() BRepGProp.LinearProperties_(self.shape, props, True) return props.Mass() # Don't ask