computeEdgeCollapseCost
Constants
- INVALID_FLIP_COST :
number
Value to be used when collapse would flip normal of one or more adjacent faces
Functions
Approximate cost of collapsing an edge, removing victim vertex from topology and merging it with the target vertex NOTE: adapted from THREE.js mesh simplification code
INVALID_FLIP_COST : number
Value to be used when collapse would flip normal of one or more adjacent faces
Kind: global constant
computeEdgeCollapseCost(victim, target, victim_edge, vertex_quadratics) ⇒ number
Approximate cost of collapsing an edge, removing victim vertex from topology and merging it with the target vertex NOTE: adapted from THREE.js mesh simplification code
Kind: global function
| Param | Type |
|---|---|
| victim | TopoVertex |
| target | TopoVertex |
| victim_edge | TopoEdge |
| vertex_quadratics | Map.<number, Quadratic3> |