decimate_edge_collapse_snap
Constants
- scratch_edges :
Array.<TopoEdge>
Functions
-
edge_collapse_vertex_removal_cost(v) ⇒
number -
pick_lowest_cost_edge_collapse_vertex(edge) ⇒
TopoVertex -
edge_collapse_pick_target_vertex(edge, restricted_vertices) ⇒
TopoVertex|undefined - compute_edge_collapse_cost(edge, quadratics, restricted_vertices)
- tm_build_cost(edge, quadratics, heap, restricted_vertices)
-
decimate_edge_collapse_snap(mesh, edge, target, quadratics, heap, restricted_vertices) ⇒
boolean
scratch_edges : Array.<TopoEdge>
Kind: global constant
edge_collapse_vertex_removal_cost(v) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| v | TopoVertex |
pick_lowest_cost_edge_collapse_vertex(edge) ⇒ TopoVertex
Kind: global function
| Param | Type |
|---|---|
| edge | TopoEdge |
edge_collapse_pick_target_vertex(edge, restricted_vertices) ⇒ TopoVertex | undefined
Kind: global function
| Param | Type | Description |
|---|---|---|
| edge | TopoEdge | |
| restricted_vertices | Set.<number> | locked vertices |
build_edge_cost_squared_topology(edge) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| edge | TopoEdge |
compute_edge_collapse_cost(edge, quadratics, restricted_vertices)
Kind: global function
| Param | Type |
|---|---|
| edge | TopoEdge |
| quadratics | Map.<number, Quadratic3> |
| restricted_vertices | Set.<number> |
tm_build_cost(edge, quadratics, heap, restricted_vertices)
Kind: global function
| Param | Type |
|---|---|
| edge | TopoEdge |
| quadratics | Map.<number, Quadratic3> |
| heap | Uint32Heap |
| restricted_vertices | Set.<number> |
decimate_edge_collapse_snap(mesh, edge, target, quadratics, heap, restricted_vertices) ⇒ boolean
Kind: global function
| Param | Type |
|---|---|
| mesh | TopoMesh |
| edge | TopoEdge |
| target | TopoVertex |
| quadratics | Map.<number, Quadratic3> |
| heap | Uint32Heap |
| restricted_vertices | Set.<number> |