Skip to main content

open_rims

Function open_rims 

Source
pub fn open_rims(mesh: &Triangulation) -> OgeomResult<Vec<Rim>>
Expand description

The rims where a mesh is open, the largest vector area first.

A rim edge is an edge one triangle uses; an edge two use is inside the mesh however they are wound, and one used three times or more is not a rim either. From a rim edge’s end the next is found by turning through the triangles round that vertex, across the edges two of them share, until an edge only one uses: the rim the same fan of triangles bounds, so two rims that touch at a vertex stay two.

§Errors

OgeomError::Domain for a triangle indexing a vertex the mesh does not have.