Skip to main content

Module simplify

Module simplify 

Source
Expand description

Decimating an editable mesh in place, its source vertices carried.

Editable::simplify writes the mesh out as Editable::to_triangulation does, decimates that with simplify, and builds the mesh again from the result. The result is the free function’s on the written mesh, triangle for triangle, and so is what it reports. Each vertex of the result takes the source vertices of every vertex merged into it, through Simplified::result_vertex, so a marking of the first source still selects what it did, as the module documentation defines selection.

§What stays

Nothing of the numbering: decimation is a compaction, as Editable::to_triangulation is. Vertex v afterwards is the result’s vertex v, and face f its triangle f; a point the result’s faces meet in several fans is split as Editable::from splits it, each copy with the point’s source vertices. A vertex no face used is dropped with its source vertices.

Structs§

SimplifyReport
What decimating an editable mesh did: Simplified without the mesh, which is now the editable one.