LongitudinalCut.from_plane_and_beam
- classmethod LongitudinalCut.from_plane_and_beam(plane, beam, start_x=None, length=None, depth=None, angle_start=90.0, angle_end=90.0, tool_position='left', ref_side_index=None, **kwargs)[source]
Create a LongitudinalCut instance from a cutting plane and the beam it should cut.
- Parameters:
- plane
PlaneorFrame The cutting plane. The normal of the plane must be perpendicular to the beam’s x-axis.
- beam
Beam The beam that is cut by this instance.
- start_xfloat, optional
The start x-coordinate of the cut in parametric space of the reference side. Default is 0.0.
- lengthfloat, optional
The length of the cut in parametric space of the reference side. Default is the minimum length so that the cut goes through the entire beam..
- depthfloat, optional
The depth of the cut in parametric space of the reference side. Default is the minimum depth so that the cut goes through the entire beam.
- angle_startfloat, optional
The chamfered angle at the start of the cut in degrees. Default is 90.0.
- angle_endfloat, optional
The chanfered angle at the end of the cut in degrees. Default is 90.0.
- tool_position
AlignmentType, optional The position of the tool relative to the beam. Can be ‘left’, ‘center’, or ‘right’. Default is ‘left’.
- ref_side_indexint, optional
The reference side index of the beam to be cut. The default ref_side_index is calculated based on the angle between the plane’s normal and each ref_side’s normal.
- plane