Skip to content

Commit 38c20ff

Browse files
committed
Update some doc strings
1 parent fd8eb28 commit 38c20ff

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

splashsurf/src/reconstruct.rs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,13 @@ pub(crate) fn reconstruct_subcommand(
424424
result
425425
}
426426

427-
/// Struct to hold the result of the reconstruction pipeline
427+
/// Struct returned as output of the [`reconstruction_pipeline`] function
428428
pub struct ReconstructionResult<I: Index, R: Real> {
429-
/// Holds the reconstructed triangle mesh with optional data (if `generate_quads` was not enabled)
429+
/// Holds the reconstructed triangle mesh (if [`generate_quads`](ReconstructionPostprocessingParameters::generate_quads) was not enabled)
430430
pub tri_mesh: Option<MeshWithData<R, TriMesh3d<R>>>,
431-
/// Holds the reconstructed quad mesh with optional data (only if `generate_quads` was enabled)
431+
/// Holds the reconstructed mixed triangle/quad mesh (only if [`generate_quads`](ReconstructionPostprocessingParameters::generate_quads) was enabled)
432432
pub tri_quad_mesh: Option<MeshWithData<R, MixedTriQuadMesh3d<R>>>,
433-
/// Holds the surface reconstruction with no post-processing applied if `output_raw_mesh` was enabled
433+
/// Holds the initial [`SurfaceReconstruction`] with no post-processing applied (only if [`output_raw_mesh`](ReconstructionPostprocessingParameters::output_raw_mesh) was enabled)
434434
pub raw_reconstruction: Option<SurfaceReconstruction<I, R>>,
435435
}
436436

@@ -445,27 +445,27 @@ pub struct ReconstructionPostprocessingParameters {
445445
pub check_mesh_orientation: bool,
446446
/// Enable additional debug output for the check-mesh operations (has no effect if no other check-mesh option is enabled)
447447
pub check_mesh_debug: bool,
448-
/// Enable MC specific mesh decimation/simplification which removes bad quality triangles typically generated by MC by snapping (enabled by default if smoothing is enabled)
448+
/// Enable MC specific mesh decimation/simplification to remove bad quality triangles typically generated by MC by snapping (enabled by default if smoothing is enabled)
449449
pub mesh_cleanup: bool,
450450
/// If MC mesh cleanup is enabled, vertex snapping can be limited to this distance relative to the MC edge length (should be in the interval `[0.0,0.5]`)
451451
pub mesh_cleanup_snap_dist: Option<f64>,
452452
/// Enable decimation of some typical bad marching cubes triangle configurations (resulting in "barnacles" after Laplacian smoothing)
453453
pub decimate_barnacles: bool,
454454
/// Enable preserving vertices without connectivity during decimation instead of filtering them out (faster and helps with debugging)
455455
pub keep_vertices: bool,
456-
/// Enable computing surface normals at the mesh vertices and write them to the output object
456+
/// Enable computing per-vertex surface normals
457457
pub compute_normals: bool,
458458
/// Enable computing the normals using SPH interpolation instead of using the area weighted triangle normals
459459
pub sph_normals: bool,
460-
/// Number of smoothing iterations to apply to normals if normal interpolation is enabled
460+
/// Number of Laplacian smoothing iterations to apply to normals if normal interpolation is enabled
461461
pub normals_smoothing_iters: Option<usize>,
462-
/// Interpolate point attributes with the given name from the input attributes to the reconstructed surface
462+
/// Interpolate point attributes with the given names from the input attributes to the reconstructed surface
463463
pub interpolate_attributes: Vec<String>,
464-
/// Number of smoothing iterations to run on the reconstructed mesh
464+
/// Number of Laplacian smoothing iterations to apply t the reconstructed mesh
465465
pub mesh_smoothing_iters: Option<usize>,
466466
/// Enable feature weights for mesh smoothing if mesh smoothing enabled. Preserves isolated particles even under strong smoothing.
467467
pub mesh_smoothing_weights: bool,
468-
/// Override a manual normalization value from weighted number of neighbors to mesh smoothing weights
468+
/// Override the normalization value from weighted number of neighbors to mesh smoothing weights
469469
pub mesh_smoothing_weights_normalization: f64,
470470
/// Enable conversion of triangles to quads if they meet quality criteria
471471
pub generate_quads: bool,
@@ -475,12 +475,11 @@ pub struct ReconstructionPostprocessingParameters {
475475
pub quad_max_normal_angle: f64,
476476
/// Maximum allowed vertex interior angle (in degrees) inside a quad to merge two triangles to a quad
477477
pub quad_max_interior_angle: f64,
478-
/// Enable writing the smoothing weights as a vertex attribute to the output mesh file
478+
/// Enable storing the smoothing weights as a vertex attribute to the output mesh
479479
pub output_mesh_smoothing_weights: bool,
480-
/// Enable writing raw normals without smoothing to the output mesh if normal smoothing is enabled
480+
/// Enable storing the raw normals without smoothing to the output mesh if normal smoothing is enabled
481481
pub output_raw_normals: bool,
482-
// For reconstruction_pipeline_from_args/path: Enable writing the raw reconstructed mesh before applying any post-processing steps (like smoothing or decimation)
483-
/// When true, also return the SurfaceReconstruction object with no post-processing applied
482+
/// Enable additionally returning the initial [`SurfaceReconstruction`] before any post-processing was applied
484483
pub output_raw_mesh: bool,
485484
/// Bounding-box for the surface mesh, triangles completely outside are removed
486485
pub mesh_aabb: Option<Aabb3d<f64>>,

0 commit comments

Comments
 (0)