Drilling
- class compas_timber.fabrication.Drilling[source]
Bases:
BTLxProcessingRepresents 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 the feature to the element geometry.
Construct the geometry of the drilling using the parameters in this instance and the element object.
Construct a drilling process from a line and diameter.
Construct a drilling process from a line, element and diameter.
Scale the parameters of this processing by a given factor.
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.