TimberAssembly
- class compas_timber.assembly.TimberAssembly[source]
Bases:
Assembly
Represents a timber assembly containing beams and joints etc.
- Attributes:
- beamslist(
Beam
) A list of beams assigned to this assembly.
- jointslist(
Joint
) A list of joints assigned to this assembly.
- part_keyslist(int)
A list of the keys of the parts included in this assembly.
- beam_keyslist(int)
A list of the keys of the beams included in this assembly.
- joint_keyslist(int)
A list of the keys of the joints included in this assembly.
- topologieslist(dict)
A list of JointTopology for assembly. dict is: {“detected_topo”: detected_topo, “beam_a_key”: beam_a_key, “beam_b_key”:beam_b_key} See
JointTopology
.
- beamslist(
Methods
Adds a Beam to this assembly.
Add a joint object to the assembly.
Checks if there is already a joint defined for the same set of parts.
Returns True if this assembly contains the given object, False otherwise.
Removes this joint object from the assembly.
Inherited Methods
Converts the instance to a string.
Add a connection between two parts.
Add a part to the assembly.
Compute the axis-aligned bounding box of the datastructure.
Compute the oriented bounding box of the datastructure.
Iterate over the connections between the parts.
Make an independent copy of the data object.
Delete a connection between two parts.
Remove a part from the assembly.
Find a part in the assembly by its GUID.
Find a part in the assembly by its key.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
The parts of the assembly.
Rotate the datastructure.
Returns a rotated copy of this geometry.
Scale the datastructure.
Returns a scaled copy of this geometry.
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.
Transforms the data structure.
Transforms the data structure.
Returns a transformed copy of this data structure.
Returns a transformed copy of this data structure.
Translate the datastructure.
Returns a translated copy of this geometry.
Validate the data against the object's data schema.