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)

CRA Viewer using existing view.

Parameters:
viewercompas_viewer.Viewer

External viewer object.

assemblyAssembly

The rigid block assembly.

scalefloat, optional

Force scale.

densityfloat, optional

Density of the block material.

dispscalefloat, optional

virtual displacement scale.

tolfloat, optional

Tolerance value to consider faces to be planar.

resultantbool, optional

Plot resultant forces.

nodalbool, optional

Plot nodal forces.

edgebool, optional

Plot block edges.

blocksbool, optional

Plot block.

interfacesbool, optional

Plot interfaces.

forcesbool, optional

Plot forces.

forcesdirectbool, optional

Plot forces as vectors.

forceslinebool, optional

Plot forces as lines.

weightsbool, optional

Plot block self weight as vectors.

displacementsbool, optional

Plot virtual displacements.

Returns:
None