#[non_exhaustive]pub enum FinderOptions {
NoIndex,
YStripes,
NoIndexFloatRaycast,
NoIndexIntegerRaycast,
}Expand description
Finder build options for polygon acceleration indexes.
Compressed topo data (the tzf-dist default) always stores polygons as
1e5-scaled integer coordinates; the options only choose the acceleration
index and the raycast flavor. The indexes operate directly in the scaled
integer storage space, so FinderOptions::YStripes keeps the full
memory savings of integer storage.
Default:
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoIndex
Disable polygon acceleration indexes.
For compressed topo data this is equivalent to
FinderOptions::NoIndexFloatRaycast.
YStripes
Use Y stripes index (recommended).
NoIndexFloatRaycast
Disable polygon acceleration indexes; segment endpoints are converted
to f64 in registers during raycasting.
NoIndexIntegerRaycast
Disable polygon acceleration indexes and use an integer cross-product raycast, which snaps the query point to the 1e-5 grid (a semantic difference near polygon edges). Opt-in.
Implementations§
Source§impl FinderOptions
impl FinderOptions
pub fn no_index_float_raycast() -> Self
pub fn no_index_integer_raycast() -> Self
Trait Implementations§
Source§impl Clone for FinderOptions
impl Clone for FinderOptions
Source§fn clone(&self) -> FinderOptions
fn clone(&self) -> FinderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more