FormDiagram.from_graph

classmethod FormDiagram.from_graph(graph)

Construct a form diagram from a form graph.

This constructor converts the form graph into a mesh by finding the cycles of its planar embedding. Note that tt doesn’t check if the graph actually is a planar embedding. The outside face of the mesh is automatically split into smaller faces at the leaves.

Parameters:
graphcompas_ags.diagrams.FormGraph
Returns:
compas_ags.diagrams.FormDiagram