ConnectionSolver.find_topology

ConnectionSolver.find_topology(beam_a, beam_b, tol=1e-06, max_distance=None)[source]

If beam_a and beam_b intersect within the given max_distance, return the topology type of the intersection.

If the topology is role-sensitive, the method outputs the beams in a consistent specific order (e.g. main beam first, cross beam second), otherwise, the beams are outputted in the same order as they were inputted.

Parameters:
beam_aBeam

First beam from intersecting pair.

beam_bBeam

Second beam from intersecting pair.

tolfloat

General tolerance to use for mathematical computations.

max_distancefloat, optional

Maximum distance, in desigen units, at which two beams are considered intersecting.

Returns:
tuple(JointTopology, Beam, Beam)