Mortise.from_frame_and_beam

classmethod Mortise.from_frame_and_beam(frame, beam, start_depth=0.0, length=80.0, width=40.0, depth=28.0, shape='automatic', shape_radius=20.0, ref_side_index=0)[source]

Create a Mortise instance from a cutting frame and the beam it should cut. This could be the ref_side of the main beam of a Joint and the cross beam.

Parameters:
frameFrame or Plane

The cutting frame.

beamBeam

The beam that is cut by this instance.

start_depthfloat, optional

The start depth of the cut along the y-axis of the beam. This offset is to be used in case of housing. Default is 0.0.

anglefloat, optional

The angle of the cut.

lengthfloat, optional

The length of the mortise.

widthfloat, optional

The width of the mortise.

depthfloat, optional

The depth of the mortise. The equivalent value of the Tenon BTLxProcessing is the height.

shapestr, optional

The shape of the mortise in regards to it’s edges. Default is ‘automatic’.

shape_radiusfloat, optional

The radius of the shape of the mortise. Default is 20.0.

ref_side_indexint, optional

The reference side index of the beam to be cut. Default is 0 (i.e. RS1).

Returns:
Mortise