pub struct TerrainOptions {
pub max_error: f64,
pub compression_level: u32,
pub normals: NormalMode,
pub water_mask: Option<WaterMask>,
pub metadata: Option<TileMetadata>,
}Expand description
Options controlling encode_terrain and the other encode functions in
this module.
Fields§
§max_error: f64Maximum RTIN error threshold in metres. Lower values keep more triangles (higher fidelity, larger output).
compression_level: u32Gzip compression level: 0 emits uncompressed bytes, 1..=9 gzip at
that level. Defaults to 6.
normals: NormalModeVertex-normal strategy.
water_mask: Option<WaterMask>Optional water-mask extension.
metadata: Option<TileMetadata>Optional metadata (child-tile availability) extension.
Trait Implementations§
Source§impl Clone for TerrainOptions
impl Clone for TerrainOptions
Source§fn clone(&self) -> TerrainOptions
fn clone(&self) -> TerrainOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerrainOptions
impl Debug for TerrainOptions
Auto Trait Implementations§
impl Freeze for TerrainOptions
impl RefUnwindSafe for TerrainOptions
impl Send for TerrainOptions
impl Sync for TerrainOptions
impl Unpin for TerrainOptions
impl UnsafeUnpin for TerrainOptions
impl UnwindSafe for TerrainOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more