Skip to main content

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

ParamType
edgesIterable.<TopoEdge>
restricted_verticesSet.<number>
heapUint32Heap
vertex_quadraticsMap.<number, Quadratic3>
edge_lookupMap.<number, TopoEdge>

edge_collapse_reduce_face_count(mesh, num_faces_to_remove, heap, edge_lookup, restricted_vertices, vertex_quadratics)

Kind: global function

ParamType
meshTopoMesh
num_faces_to_removenumber
heapUint32Heap
edge_lookupMap.<number, TopoEdge>
restricted_verticesSet.<number>
vertex_quadraticsMap.<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

ParamTypeDescription
meshTopoMesh
num_faces_to_removenumberdesired 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