TopologyDiagram.from_dualquadmesh
- classmethod TopologyDiagram.from_dualquadmesh(mesh, supports, trail_length=None, trail_state=-1, deviation_force=1.0, deviation_state=-1)
Generate a topology diagram from the dual of a quad mesh.
Inputs
- meshQuadMesh
The dual of a quad mesh.
- supportslist
The list of vertex indices in the mesh that represent supports.
- trail_lengthfloat, optional
The length of all the trail edges. If None, then the trail edges inherit their length from the input mesh. Defaults to None.
- trail_stateint, optional
The internal force state of the trail edges. A value of -1 means compression and 1, tension. Defaults to -1.
- deviation_forcefloat, optional
The force in all the deviation edges. Defaults to 1.0.
- deviation_stateint, optional
The internal force state of the deviation edges. A value of -1 means compression and 1, tension. Defaults to -1.
- returns:
diagram (TopologyDiagram) – The topology diagram.