pub struct TensorConfig {
pub seed: u64,
pub step_size: f32,
pub major_road_dist: f32,
pub minor_road_dist: f32,
pub snap_radius: f32,
pub max_trace_steps: u32,
pub tracer_inertia: f32,
pub water_level: f32,
pub field: TensorFieldConfig,
}Expand description
Configuration for tensor-field city generation.
Fields§
§seed: u64RNG seed for jittered seed placement.
step_size: f32World-space distance per integration step.
major_road_dist: f32Desired spacing between parallel major roads (avenues).
minor_road_dist: f32Desired spacing between parallel minor roads (streets).
snap_radius: f32Snap radius for merging trace endpoints with existing geometry.
max_trace_steps: u32Maximum number of integration steps per trace before it is abandoned.
tracer_inertia: f32Momentum factor for the tracer direction (range 0.0 to 0.99).
Higher values resist sharp direction changes caused by high-frequency
terrain noise, producing smoother, less zig-zaggy roads.
water_level: f32Absolute world-space Y coordinate for the water plane.
Terrain at or below this height is treated as underwater.
Defaults to f32::NEG_INFINITY (no water).
field: TensorFieldConfigTensor field sampling configuration (slope thresholds, jitter).
Trait Implementations§
Source§impl Clone for TensorConfig
impl Clone for TensorConfig
Source§fn clone(&self) -> TensorConfig
fn clone(&self) -> TensorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more