Beispiel #1
0
def remote_angle(bifurcation_point):
    '''Calculate the remote bifurcation angle'''
    end_points = tuple(p for p in tr.i_branch_end_points(bifurcation_point))
    return mm.angle_3points(bifurcation_point.value,
                            end_points[0].value,
                            end_points[1].value)
Beispiel #2
0
 def _build_tuple(tree):
     return tuple(p for p in val_iter(i_branch_end_points(tree)))
Beispiel #3
0
 def _build_tuple(tree):
     return tuple(p for p in val_iter(i_branch_end_points(tree)))
Beispiel #4
0
 def _remangle(t):
     '''Helper to calculate the remote angle'''
     end_points = tuple(p for p in tr.i_branch_end_points(t))
     return mm.angle_3points(t.value, end_points[0].value, end_points[1].value)
Beispiel #5
0
 def _remangle(t):
     '''Helper to calculate the remote angle'''
     end_points = tuple(p for p in tr.i_branch_end_points(t))
     return mm.angle_3points(t.value, end_points[0].value,
                             end_points[1].value)