pub struct RationalizeConfig {
pub enabled: bool,
pub rdp_tolerance: f32,
pub major_fillet_radius: f32,
pub minor_fillet_radius: f32,
pub fillet_segments: u32,
pub elevation_smooth_passes: u32,
pub max_grade: f32,
pub convergence_tolerance: f32,
}Expand description
Configuration for the graph rationalization pass.
Fields§
§enabled: boolMaster toggle.
rdp_tolerance: f32RDP tolerance in world units — how aggressively to straighten.
major_fillet_radius: f32Fillet radius for major (contour-following) roads.
minor_fillet_radius: f32Fillet radius for minor (gradient-following) roads.
fillet_segments: u32Number of line segments used to approximate each fillet arc.
elevation_smooth_passes: u32Number of global Laplacian smoothing passes applied to the entire road graph’s elevation profile before chain extraction. Higher values produce smoother roads that bridge over dips and cut through bumps, giving a civil-engineered look. 0 disables.
max_grade: f32Maximum allowed slope (grade) between adjacent nodes, expressed as a fraction (e.g. 0.15 = 15% grade). 0.0 disables clamping.
convergence_tolerance: f32Tolerance (world-space elevation units) for early-terminating the
elevation-smoothing and grade-clamping passes when they converge
before reaching the configured maximum. The pass exits as soon as
the largest single-node delta falls below this value.
Set to 0.0 to always run the full pass count (bit-identical
pre-#63 behaviour). Default: 1e-2 (1 cm — far below civil
engineering precision and well-suited to typical city inputs).
Trait Implementations§
Source§impl Clone for RationalizeConfig
impl Clone for RationalizeConfig
Source§fn clone(&self) -> RationalizeConfig
fn clone(&self) -> RationalizeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more