DovetailMortise.from_frame_and_beam

classmethod DovetailMortise.from_frame_and_beam(frame, beam, start_depth=0.0, angle=0.0, length=80.0, width=40.0, depth=28.0, cone_angle=10.0, flank_angle=15.0, shape='automatic', shape_radius=20.0, ref_side_index=0)[source]

Create a DovetailMortise instance from a cutting surface and the beam it should cut. This could be the ref_side of the cross 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 DovetailTenon BTLxProcessing is the height.

cone_anglefloat, optional

The cone angle of the dovetail mortise.

flank_anglefloat, optional

The flank angle of the dovetail mortise.

shapestr, optional

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

shape_radiusfloat, optional

The radius of the shape of the dovetail 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:
DovetailMortise