simplifyTopoMesh2
Functions
- edge_collapse_populate_heap(edges, restricted_vertices, heap, vertex_quadratics, edge_lookup)
- edge_collapse_reduce_face_count(mesh, num_faces_to_remove, heap, edge_lookup, restricted_vertices, vertex_quadratics)
- simplifyTopoMesh2(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
edge_collapse_populate_heap(edges, restricted_vertices, heap, vertex_quadratics, edge_lookup)
Kind: global function
| Param | Type |
|---|---|
| edges | Iterable.<TopoEdge> |
| restricted_vertices | Set.<number> |
| heap | Uint32Heap |
| vertex_quadratics | Map.<number, Quadratic3> |
| edge_lookup | Map.<number, TopoEdge> |
edge_collapse_reduce_face_count(mesh, num_faces_to_remove, heap, edge_lookup, restricted_vertices, vertex_quadratics)
Kind: global function
| Param | Type |
|---|---|
| mesh | TopoMesh |
| num_faces_to_remove | number |
| heap | Uint32Heap |
| edge_lookup | Map.<number, TopoEdge> |
| restricted_vertices | Set.<number> |
| vertex_quadratics | Map.<number, Quadratic3> |
simplifyTopoMesh2(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 |
simplifyTopoMesh2~vertex_quadratics : Map.<number, Quadratic3>
Kind: inner constant of simplifyTopoMesh2