Skip to main content

read_obj_solid

Function read_obj_solid 

Source
pub fn read_obj_solid(
    topo: &mut Topology,
    input: &str,
    tolerance: f64,
) -> Result<SolidId, IoError>
Expand description

Read an OBJ file and import it as a solid with one planar face per triangle.

This is a convenience wrapper that calls read_obj followed by import_mesh. Vertices within tolerance of each other are merged.

ยงErrors

Returns IoError if the file is malformed or the mesh cannot be converted to a valid solid.