mesh_outline_2d

Function mesh_outline_2d 

Source
pub fn mesh_outline_2d(
    positions: &[f32],
    indices: &[u32],
    axis: ProjectionAxis,
    flipped: bool,
) -> Result<MeshOutline, NoOutline>
Expand description

Compute the winding-independent 2D footprint outline of a triangle mesh.

positions is flat XYZ (len = 3·vertexCount); indices is flat triangle indices. Returns NoOutline when there is no outline to return, and which of the two reasons applies.