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
Param | Type |
---|---|
edge | EdgeCollapseCandidate |
collapse_edges(number_faces_to_remove, heap, mesh, edge_to_collapse_map, vertex_quadratics, restricted_vertices)
Kind: global function
Param | Type | Description |
---|---|---|
number_faces_to_remove | number | minimum number of faces to removed |
heap | BinaryHeap.<EdgeCollapseCandidate> | |
mesh | TopoMesh | |
edge_to_collapse_map | Map.<TopoEdge, EdgeCollapseCandidate> | |
vertex_quadratics | Map.<number, Quadratic3> | |
restricted_vertices | Set.<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
Param | Type | Description |
---|---|---|
mesh | TopoMesh | |
num_faces_to_remove | number | desired number of faces to remove |
[restricted_vertices] | Set.<number> | vertices that are not allowed to be removed |
- simplifyTopoMesh(mesh, num_faces_to_remove, [restricted_vertices])
- ~open_set :
BinaryHeap.<EdgeCollapseCandidate>
- ~edge_to_collapse_map :
Map.<TopoEdge, EdgeCollapseCandidate>
- ~vertex_quadratics :
Map.<number, Quadratic3>
- ~open_set :
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