Drilling

class compas_timber.fabrication.Drilling[source]

Bases: BTLxProcessing

Represents a drilling processing.

Parameters:
start_xfloat

The x-coordinate of the start point of the drilling. In the local coordinate system of the reference side.

start_yfloat

The y-coordinate of the start point of the drilling. In the local coordinate system of the reference side.

anglefloat

The rotation angle of the drilling. In degrees. Around the z-axis of the reference side.

inclinationfloat

The inclination angle of the drilling. In degrees. Around the y-axis of the reference side.

depth_limitedbool, default True

If True, the drilling depth is limited to depth. Otherwise, drilling will go through the element.

depthfloat, default 50.0

The depth of the drilling. In mm.

diameterfloat, default 20.0

The diameter of the drilling. In mm.

Methods

apply

Apply the feature to the beam geometry.

cylinder_from_params_and_beam

Construct the geometry of the drilling using the parameters in this instance and the beam object.

from_line_and_beam

Construct a drilling processing from a line and diameter.

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.