StepJoint

class compas_timber.fabrication.StepJoint[source]

Bases: BTLxProcessing

Represents a Step Joint feature to be made on a beam.

Parameters:
orientationint

The orientation of the cut. Must be either OrientationType.START or OrientationType.END.

start_xfloat

The start x-coordinate of the cut in parametric space of the reference side. -100000.0 < start_x < 100000.0.

strut_inclinationfloat

The inclination of the strut. 0.1 < strut_inclination < 179.9.

step_depthfloat

The depth of the step. step_depth < 50000.0.

heel_depthfloat

The depth of the heel. heel_depth < 50000.0.

step_shapestr

The shape of the step. Must be either ‘double’, ‘step’, ‘heel’, or ‘taperedheel’.

tenonstr

The presence of a tenon. Must be either ‘no’ or ‘yes’.

tenon_widthfloat

The width of the tenon. tenon_width < 1000.0.

tenon_heightfloat

The height of the tenon. tenon_height < 1000.0.

Methods

add_tenon

Add a tenon to the existing StepJointNotch instance.

apply

Apply the feature to the beam geometry.

from_plane_and_beam

Create a StepJoint instance from a cutting surface and the beam it should cut.

planes_from_params_and_beam

Calculates the cutting planes from the machining parameters in this instance and the given beam

tenon_volume_from_params_and_beam

Calculates the tenon volume from the machining parameters in this instance and the given beam

Inherited Methods

ToString

Converts the instance to a string.

add_subprocessing

Add a nested subprocessing.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.