Skip to main content

offset_polyhedron

Function offset_polyhedron 

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

Offset a closed polyhedron mesh outward (or inward for negative d).

Equivalent to OffsetMesh::from_triangle_soup(verts, faces).offset(d) but named for clarity when working with closed polyhedra.