TButtJoint.get_face_most_towards_beam
- static TButtJoint.get_face_most_towards_beam(beam_a, beam_b, ignore_ends=True)[source]
Of all the faces of beam_b, returns the one whose normal most faces 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 1 is chosen.
- Parameters:
- beam_a
Beam
The beam that attaches with one of its ends to beam_b.
- beam_b
Beam
The other beam.
- ignore_endsbool, optional
If True, the faces at each end of beam_b are ignored.
- beam_a
- Returns:
- tuple(face_index,
Frame
) Tuple containing the index of the chosen face and a frame at the center of if.
- tuple(face_index,