You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: splashsurf_lib/src/lib.rs
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,23 @@
2
2
//! Library for surface reconstruction of SPH particle data using marching cubes.
3
3
//!
4
4
//! Entry points are the [`reconstruct_surface`] or [`reconstruct_surface_inplace`] functions.
5
+
//!
6
+
//! ## Feature flags
7
+
//! The following features are all non-default features to reduces the amount of additional dependencies.
8
+
//!
9
+
//! #### vtk_extras
10
+
//! Enables helper functions and trait implementations to export meshes using [`vtkio`](https://github.com/elrnv/vtkio).
11
+
//! In particular it adds `From` impls for the [mesh](crate::mesh) types used by this crate to convert them to
12
+
//! [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) and [`vtkio::model::DataSet`](https://docs.rs/vtkio/0.6.*/vtkio/model/enum.DataSet.html)
13
+
//! types. The crate exposes its `vtkio` dependency as `splashsurflib::vtkio` if the feature is enabled.
14
+
//!
15
+
//! #### profiling
16
+
//! Enables profiling of internal functions. The resulting data can be displayed using the functions
17
+
//! from the [`profiling`] module. Furthermore, it exposes the [`profile`] macro that can be used e.g.
18
+
//! by binary crates calling into this library to add their own profiling scopes to the measurements.
19
+
//! If this features is not enabled, the macro will just expend to a no-op and remove the (small)
20
+
//! performance overhead of the profiling.
21
+
//!
5
22
6
23
use log::info;
7
24
/// Re-export the version of `nalgebra` used by this crate
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this point cloud
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh and wraps it into a [`vtkio::model::DataSet`](https://docs.rs/vtkio/0.6.*/vtkio/model/enum.DataSet.html)
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this mesh and wraps it into a [`vtkio::model::DataSet`](https://docs.rs/vtkio/0.6.*/vtkio/model/enum.DataSet.html)
/// Creates a [`vtkio::model::UnstructuredGridPiece`](https://docs.rs/vtkio/0.6.*/vtkio/model/struct.UnstructuredGridPiece.html) representing this point cloud and wraps it into a [`vtkio::model::DataSet`](https://docs.rs/vtkio/0.6.*/vtkio/model/enum.DataSet.html)
0 commit comments