pub struct LotConfig {
pub max_lot_area: f32,
pub min_lot_area: f32,
pub front_setback: f32,
pub side_setback: f32,
pub rear_setback: f32,
pub min_width: f32,
pub min_depth: f32,
pub water_level: f32,
pub water_policy: WaterPolicy,
}Expand description
Configuration for lot subdivision and building footprint extraction.
Fields§
§max_lot_area: f32Maximum lot area before recursive subdivision (sqm).
min_lot_area: f32Minimum lot area — polygons below this are discarded.
front_setback: f32Distance from the street edge to the building front.
side_setback: f32Distance from side edges to the building sides.
rear_setback: f32Distance from the back edge to the building rear.
min_width: f32Minimum building width (along street).
min_depth: f32Minimum building depth (perpendicular to street).
water_level: f32World-space Y height of the water plane. Lots whose footprint reaches
at or below this elevation are handled per Self::water_policy.
Defaults to f32::NEG_INFINITY (no water filtering).
water_policy: WaterPolicyStrategy for handling lots whose footprint touches water.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LotConfig
impl<'de> Deserialize<'de> for LotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LotConfig
impl RefUnwindSafe for LotConfig
impl Send for LotConfig
impl Sync for LotConfig
impl Unpin for LotConfig
impl UnsafeUnpin for LotConfig
impl UnwindSafe for LotConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more