Skip to main content

variable_offset

Function variable_offset 

Source
pub fn variable_offset(
    verts: &[[f64; 3]],
    faces: &[[usize; 3]],
    weights: &[f64],
) -> OffsetMesh
Expand description

Apply a different offset distance to each vertex along its averaged normal.

weights[i] is the offset distance for vertex i. Positive values expand outward; negative values shrink inward.