Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 def __init__(self, shape, skip_shared=True):
     super(LinearProps, self).__init__()
     BRepGProp.LinearProperties_(shape.object, self._props, skip_shared)
Exemplo n.º 3
0
 def length(self):
     props = GProp_GProps()
     BRepGProp.LinearProperties_(self.shape, props, True)
     return props.Mass()  # Don't ask