LapJoint.get_face_most_ortho_to_beam

static LapJoint.get_face_most_ortho_to_beam(beam_a, beam_b, ignore_ends=True)[source]

Of all the faces of beam_b, returns the one whose normal is most orthogonal to beam_a.

This is done by calculating the inner-product of beam_a’s centerline which each of the face normals of beam_b. The face with the result closest to 0 is chosen.

Parameters:
beam_aBeam

The beam that attaches with one of its ends to beam_b.

beam_bBeam

The other beam.

ignore_endsbool, optional

If True, the faces at each end of beam_b are ignored.

Returns:
tuple(face_index, Frame)

Tuple containing the index of the chosen face and a frame at the center of if.