コード例 #1
0
ファイル: entities.py プロジェクト: trelau/AFEM
 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()
コード例 #2
0
ファイル: props.py プロジェクト: gitter-badger/AFEM
 def __init__(self, shape, skip_shared=True):
     super(LinearProps, self).__init__()
     BRepGProp.LinearProperties_(shape.object, self._props, skip_shared)
コード例 #3
0
 def length(self):
     props = GProp_GProps()
     BRepGProp.LinearProperties_(self.shape, props, True)
     return props.Mass()  # Don't ask