Joint
- class compas_timber.connections.Joint[source]
Bases:
DataBase class for a joint connecting two beams.
This is a base class and should not be instantiated directly. Use the create() class method of the respective implementation of Joint instead.
- Parameters:
- topologyliteral, one of
JointTopology The topology by which the two elements connected with this joint interact.
- location
Point The estimated location of the interaction point of the two elements connected with this joint.
- topologyliteral, one of
- Attributes:
- namestr
The name of the joint. Corresponds to the class name.
- elementstuple(
Element) The elements joined by this joint.
- generated_elementslist(
Element) A list of elements that were generated by this joint.
- endsdict(str, str)
Maps the GUID of each element to
startorend, depending on which end of the element is connected by this joint.- interactionslist(tuple(
Element,Element)) A list of tuples containing the elements that are interacting with each other through this joint.
- featureslist(
BTLxProcessing) A list of features that were added to the elements by this joint.
- topologyliteral, one of
JointTopology The topology by which the two elements connected with this joint interact.
- location
Point The estimated location of the interaction point of the two elements connected with this joint.
Methods
Adds the extensions defined by this joint to affected beam(s).
Adds the features defined by this joint to affected beam(s).
Checks if the cluster of beams complies with the requirements for the Joint.
Creates an instance of this joint and creates the new connection in model.
Checks if the number of elements complies with the joint's requirements.
Creates an instance of this joint from a cluster of elements.
Creates an instance of this joint from a joint candidate.
Restores the reference to the elements associated with this joint.
Inherited Methods
Converts the instance to a string.
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.
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.