cra_view_ex
- compas_cra.viewers.cra_view_ex(viewer, assembly, scale=1.0, density=1.0, dispscale=1.0, tol=1e-05, resultant=True, nodal=False, edge=True, blocks=True, interfaces=True, forces=True, forcesdirect=True, forcesline=False, weights=True, displacements=True)[source]
CRA Viewer using existing view.
- Parameters
viewer (compas_view2.app.App) – External viewer object.
assembly (
Assembly
) – The rigid block assembly.scale (float, optional) – Force scale.
density (float, optional) – Density of the block material.
dispscale (float, optional) – virtual displacement scale.
tol (float, optional) – Tolerance value to consider faces to be planar.
resultant (bool, optional) – Plot resultant forces.
nodal (bool, optional) – Plot nodal forces.
edge (bool, optional) – Plot block edges.
blocks (bool, optional) – Plot block.
interfaces (bool, optional) – Plot interfaces.
forces (bool, optional) – Plot forces.
forcesdirect (bool, optional) – Plot forces as vectors.
forcesline (bool, optional) – Plot forces as lines.
weights (bool, optional) – Plot block self weight as vectors.
displacements (bool, optional) – Plot virtual displacements.
- Returns
None