We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1409bc1 commit 5d4bfafCopy full SHA for 5d4bfaf
examples/tutorial.rs
@@ -80,11 +80,14 @@ fn main() {
80
* IO: loading and saving meshes
81
*/
82
83
- meshx::io::save_trimesh(&mesh, "tests/artifacts/tutorial_trimesh.vtk")
84
- .expect("Failed to save the tutorial triangle mesh");
+ #[cfg(features = "io")]
+ {
85
+ meshx::io::save_trimesh(&mesh, "tests/artifacts/tutorial_trimesh.vtk")
86
+ .expect("Failed to save the tutorial triangle mesh");
87
- let loaded_mesh = meshx::io::load_trimesh("tests/artifacts/tutorial_trimesh.vtk")
- .expect("Failed to load the tutorial triangle mesh");
88
+ let loaded_mesh = meshx::io::load_trimesh("tests/artifacts/tutorial_trimesh.vtk")
89
+ .expect("Failed to load the tutorial triangle mesh");
90
- assert_eq!(mesh, loaded_mesh);
91
+ assert_eq!(mesh, loaded_mesh);
92
+ }
93
}
0 commit comments