MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / read_vtk

Function read_vtk

splashsurf_lib/src/io/vtk_format.rs:212–217  ·  view source on GitHub ↗

Tries to read the given VTK file

(filename: P)

Source from the content-addressed store, hash-verified

210
211/// Tries to read the given VTK file
212pub fn read_vtk<P: AsRef<Path>>(filename: P) -> Result<Vtk, anyhow::Error> {
213 let filename = filename.as_ref();
214 let mut vtk_file = Vtk::import(filename)?;
215 vtk_file.load_all_pieces()?;
216 Ok(vtk_file)
217}
218
219/// Loads all supported pieces of the given VTK file
220fn load_pieces(vtk_file: Vtk) -> Result<Vec<DataPiece>, anyhow::Error> {

Callers 1

load_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected