CRA_Assembly
- class compas_cra.datastructures.CRA_Assembly
Bases:
Assembly
Extended data structure for concave assemblies.
Methods
Add multiple blocks from their representation as as Rhino meshes.
Add interface to edge (u, v) interfaces.
Add interfaces from meshes to edge (u, v) interfaces.
Add interface to edge (u, v) interfaces.
Delete block.
Delete blocks.
Get assembly mean weight.
Get total assembly weight.
Check if the block is a support.
Move block with vector.
Rotate the entire assembly.
Set block as boundary condition.
Set blocks as boundary conditions.
Inherited Methods
Converts the instance to a string.
Add a block to the assembly.
Add an interface between two blocks.
Add a block to the assembly from a normal mesh.
Retrieve the graph node corresponding to a block.
Iterate over the blocks of the assembly.
Compute the axis-aligned bounding box of the datastructure.
Compute the oriented bounding box of the datastructure.
Make an independent copy of the data object.
Retrieve the two blocks corresponding to a graph edge.
Retrieve the interface corresponding to a graph edge.
Retrieve the line segment between the nodes of the edge.
Iterate over the edges of the graph of the assembly.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct an assembly from Rhino polysurfaces.
Construct an assembly from Rhino meshes.
Construct an assembly from a parameteric template.
Verify that the assembly contains a given block.
Verify that the assembly contains a given interface.
Yield the interfaces of the assembly.
Retrieve the block corresponding to a graph node.
Retrieve a point representing the location of the node.
Iterate over the nodes of the graph of the assembly.
Return the number of blocks in the assembly.
Return the number of edges in the assembly graph.
Return the number of interfaces in the assembly.
Return the number of nodes in the assembly graph.
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.
Transform this assembly by the given transformation matrix.
Transforms the data structure.
Transform a copy of this assembly by the given transformation matrix.
Returns a transformed copy of this data structure.
Translate the datastructure.
Returns a translated copy of this geometry.
Unset all boundary conditions.
Validate the data against the object's data schema.