FormDiagram.from_graph
-
classmethod
FormDiagram.
from_graph
(graph)[source] 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
graph (
compas_ags.diagrams.FormGraph
)- Returns