Skip to main content

simplifyTopoMesh

Functions

extract_edge_cost(edge)
collapse_edges(number_faces_to_remove, heap, mesh, edge_to_collapse_map, vertex_quadratics, restricted_vertices)
simplifyTopoMesh(mesh, num_faces_to_remove, [restricted_vertices])

Simplifies a given topology mesh by reducing number of faces. Preserves original vertices NOTE: preserves outline of the mesh, that is the open edge NOTE: assumes that face normals are set

extract_edge_cost(edge)

Kind: global function

ParamType
edgeEdgeCollapseCandidate

collapse_edges(number_faces_to_remove, heap, mesh, edge_to_collapse_map, vertex_quadratics, restricted_vertices)

Kind: global function

ParamTypeDescription
number_faces_to_removenumberminimum number of faces to removed
heapBinaryHeap.<EdgeCollapseCandidate>
meshTopoMesh
edge_to_collapse_mapMap.<TopoEdge, EdgeCollapseCandidate>
vertex_quadraticsMap.<number, Quadratic3>
restricted_verticesSet.<number>

collapse_edges~v : TopoVertex

Kind: inner constant of collapse_edges

collapse_edges~edge : TopoEdge

Kind: inner constant of collapse_edges

simplifyTopoMesh(mesh, num_faces_to_remove, [restricted_vertices])

Simplifies a given topology mesh by reducing number of faces. Preserves original vertices NOTE: preserves outline of the mesh, that is the open edge NOTE: assumes that face normals are set

Kind: global function

ParamTypeDescription
meshTopoMesh
num_faces_to_removenumberdesired number of faces to remove
[restricted_vertices]Set.<number>vertices that are not allowed to be removed

simplifyTopoMesh~open_set : BinaryHeap.<EdgeCollapseCandidate>

Kind: inner constant of simplifyTopoMesh

simplifyTopoMesh~edge_to_collapse_map : Map.<TopoEdge, EdgeCollapseCandidate>

Kind: inner constant of simplifyTopoMesh

simplifyTopoMesh~vertex_quadratics : Map.<number, Quadratic3>

Kind: inner constant of simplifyTopoMesh