FrenchRidgeLap

class compas_timber.fabrication.FrenchRidgeLap[source]

Bases: BTLxProcessing

Represents a French Ridge Lap 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.

anglefloat

The horizontal angle of the cut. 0.1 < angle < 179.9.

ref_position: int

The reference position of the cut. Must be either EdgePositionType.REFEDGE or EdgePositionType.OPPEDGE.

drillholebool

Flag indicating if a drill hole should be made.

drillhole_diamfloat

The diameter of the drill hole.

Methods

apply

Apply the feature to the beam geometry.

frame_from_params_and_beam

Calculates the frame that cuts the exceeding part of the blank of the beam from the machining parameters and the given beam.

from_beam_beam_and_plane

Create a FrenchRidgeLap instance from two beams and a cutting plane.

lap_volume_from_params_and_beam

Calculates the trimming volume of the french ridge lap from the machining parameters 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.