LongitudinalCut
- class compas_timber.fabrication.LongitudinalCut[source]
Bases:
BTLxProcessingRepresents a Longitudinal Cut feature to be made on a beam.
- Parameters:
- start_xfloat
The start x-coordinate of the cut in parametric space of the reference side. -100000.0 < start_x < 100000.0.
- start_yfloat
The start y-coordinate of the cut in parametric space of the reference side. 0.0 < start_y < 50000.0.
- inclinationfloat
The vertical angle of the cut. -90.0 < inclination < 90.0.
- start_limitedbool
Whether the cut is limited at the start. If True, the cut starts at the start_x coordinate.
- end_limitedbool
Whether the cut is limited at the end. If True, the cut ends at the start_x + length coordinate.
- lengthfloat
The length of the cut in parametric space of the reference side. 0.0 < length < 100000.0.
- depth_limitedbool
Whether the cut is limited in depth. If True, the cut goes to a certain depth.
- depthfloat
The depth of the cut in parametric space of the reference side. 0.0 < depth < 50000.0.
- angle_startfloat
The angle at the start of the cut in degrees. 0.1 < angle_start < 179.9.
- angle_endfloat
The angle at the end of the cut in degrees. 0.1 < angle_end < 179.9.
- tool_position
AlignmentType The position of the tool relative to the beam. Can be ‘left’, ‘center’, or ‘right’.
Methods
Apply the feature to the beam geometry.
Create a LongitudinalCut instance from a cutting plane and the beam it should cut.
Construct a Longitudinal Cut process from a shape and a beam.
Calculates the cutting plane from the machining parameters in this instance and the given beam
Calculates the negative volume representing the cut from the machining parameters in this instance and the given beam.
Inherited Methods
Converts the instance to a string.
Add a nested subprocessing.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Returns a new instance of the processing with the parameters scaled by a given factor.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.