CRA_Assembly
- class compas_cra.datastructures.CRA_Assembly[source]
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.
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.
Retrieve the graph node corresponding to a block.
Iterate over the blocks of the assembly.
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 the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in 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.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Transform this assembly by the given transformation matrix.
Transform a copy of this assembly by the given transformation matrix.
Validate the object's data against its data schema.
Validate the object's data against its json schema.