Skip to content

The half-edge structure (2D)

DCEL_Data is the half-edge structure of a 2-D mesh (algorithm.last_constructed_dcel), from which lengths, angles, curvatures and areas are read.

DCEL Graph containing faces, half-edges and vertices.

Half-edge structure of a 2D multimaterial mesh.

allow_several_loops (default False): see create_halfedges_from_edges; when True, a material may have several boundary loops (one Face per loop, same key).

image_border_vertices (default None): the indices of the vertices on the image border, kept as self.image_border_vertices (a sorted int64 array, or None when not given). return_dcel passes the mark geometry_reconstruction_2d takes from the triangulation's structure (image_border_vertices), before any vertex moves; foambryo's 2D inference reads it to exclude the junctions on the border.