Skip to main content

conspire/geometry/ntree/sizing/curvature/
mod.rs

1use crate::{
2    math::{Quantity, Scalar},
3    units::Length,
4};
5
6/// Parameters controlling curvature-driven octree refinement.
7pub struct CurvatureSizing {
8    /// Absolute Dunyach chord-error tolerance.
9    pub tolerance: Option<Quantity<Length>>,
10    /// Lipschitz grading rate for sizing fields.
11    pub gradation: Scalar,
12    /// Minimum cell size relative to bounding box.
13    pub floor_fraction: Scalar,
14}
15
16impl Default for CurvatureSizing {
17    fn default() -> Self {
18        Self {
19            tolerance: None,
20            gradation: 0.5,
21            floor_fraction: 1.0e-3,
22        }
23    }
24}