Skip to content

Commit f06dbaf

Browse files
committed
Update docs
1 parent d7f2064 commit f06dbaf

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

splashsurf_lib/src/density_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! "flat point indices". These are computed from the background grid point coordinates `(i,j,k)`
1414
//! analogous to multidimensional array index flattening. That means for a grid with dimensions
1515
//! `[n_x, n_y, n_z]`, the flat point index is given by the expression `i*n_x + j*n_y + k*n_z`.
16-
//! For these point index operations, the [`UniformGrid`](crate::UniformGrid) is used.
16+
//! For these point index operations, the [`UniformGrid`] is used.
1717
//!
1818
//! Note that all density mapping functions always use the global background grid for flat point
1919
//! indices, even if the density map is only generated for a smaller subdomain.

splashsurf_lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! The following features are all non-default features to reduce the amount of additional dependencies.
1010
//!
1111
//! - **`vtk_extras`**: Enables helper functions and trait implementations to export meshes using [`vtkio`](https://github.com/elrnv/vtkio).
12-
//! In particular it adds `From` impls for the [mesh](crate::mesh) types used by this crate to convert them to
12+
//! In particular it adds `From` impls for the [mesh] types used by this crate to convert them to
1313
//! [`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)
1414
//! types. If the feature is enabled, The crate exposes its `vtkio` dependency as `splashsurflib::vtkio`.
1515
//! - **`io`**: Enables the [`io`] module, containing functions to load and store particle and mesh files

splashsurf_lib/src/marching_cubes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Triangulation of [`DensityMap`](crate::density_map::DensityMap)s using marching cubes
1+
//! Triangulation of [`DensityMap`]s using marching cubes
22
33
use crate::marching_cubes::narrow_band_extraction::{
44
construct_mc_input, construct_mc_input_with_stitching_data,

splashsurf_lib/src/mesh.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,15 +1355,15 @@ impl<R: Real> MeshAttribute<R> {
13551355
}
13561356
}
13571357

1358-
/// Creates a new named mesh attribute with scalar values implementing the [`Real`](crate::Real) trait
1358+
/// Creates a new named mesh attribute with scalar values implementing the [`Real`] trait
13591359
pub fn new_real_scalar<S: Into<String>>(name: S, data: impl Into<Vec<R>>) -> Self {
13601360
Self {
13611361
name: name.into(),
13621362
data: AttributeData::ScalarReal(data.into()),
13631363
}
13641364
}
13651365

1366-
/// Creates a new named mesh attribute with scalar values implementing the [`Real`](crate::Real) trait
1366+
/// Creates a new named mesh attribute with scalar values implementing the [`Real`] trait
13671367
pub fn new_real_vector3<S: Into<String>>(name: S, data: impl Into<Vec<Vector3<R>>>) -> Self {
13681368
Self {
13691369
name: name.into(),

splashsurf_lib/src/octree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl<I: Index, R: Real> OctreeNode<I, R> {
397397
&self.aabb
398398
}
399399

400-
/// Constructs a [`UniformGrid`](crate::UniformGrid) that represents the domain of this octree node
400+
/// Constructs a [`UniformGrid`] that represents the domain of this octree node
401401
pub fn grid(
402402
&self,
403403
min: &Vector3<R>,

splashsurf_lib/src/postprocessing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pub fn par_laplacian_smoothing_normals_inplace<R: Real>(
8282

8383
/// Mesh simplification designed for marching cubes surfaces meshes inspired by the "Compact Contouring"/"Mesh displacement" approach by Doug Moore and Joe Warren
8484
///
85-
/// See ["Mesh Displacement: An Improved Contouring Method for Trivariate Data"](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.5214&rep=rep1&type=pdf).
85+
/// See Moore and Warren: ["Mesh Displacement: An Improved Contouring Method for Trivariate Data"](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.5214&rep=rep1&type=pdf) (1991)
86+
/// or Moore and Warren: "Compact Isocontours from Sampled Data" in "Graphics Gems III" (1992).
8687
pub fn marching_cubes_cleanup<I: Index, R: Real>(
8788
mesh: &mut TriMesh3d<R>,
8889
grid: &UniformCartesianCubeGrid3d<I, R>,

0 commit comments

Comments
 (0)