flipper.kernel.flatstructure.FlatStructure

class flipper.kernel.flatstructure.FlatStructure(triangulation, edge_vectors)[source]

Bases: object

This represents a triangulation with a flat structure.

It is specified by a triangulation together with a map taking each edge to a Vector2. These should satisfy some standard relations like sum(vector[edge] for edge in triangle) == 0.