[][src]Function vtkio::import

pub fn import(file_path: &Path) -> Result<Vtk, Error>

Import a vtk file at the specified path.

Examples

    let file_path = PathBuf::from("tet.vtk");
     
    let mut vtk_file = import(&file_path)
        .expect(&format!("Failed to load file: {:?}", file_path));