Skip to main content

gpu_edge_collapse

Function gpu_edge_collapse 

Source
pub fn gpu_edge_collapse(mesh: &mut GpuMesh, error_threshold: f32) -> usize
Expand description

Collapse edges whose midpoint error is below error_threshold.

Returns the number of removed vertices. Uses a simplified cost metric (edge length squared) as a proxy for the Quadric Error Metric.