Function meshopt::ffi::meshopt_simplifyPoints[][src]

pub unsafe extern "C" fn meshopt_simplifyPoints(
    destination: *mut c_uint,
    vertex_positions: *const f32,
    vertex_count: usize,
    vertex_positions_stride: usize,
    target_vertex_count: usize
) -> usize

Experimental: Point cloud simplifier Reduces the number of points in the cloud to reach the given target Returns the number of points after simplification, with destination containing new index data The resulting index buffer references vertices from the original vertex buffer. If the original vertex data isn’t required, creating a compact vertex buffer using meshopt_optimizeVertexFetch is recommended.

destination must contain enough space for the target index buffer vertex_positions should have float3 position in the first 12 bytes of each vertex - similar to glVertexPointer