Skip to main content

nominal_api/conjure/objects/scout/compute/api/
spatial_decimate_strategy.rs

1/// Decimate by spatial trees.
2/// Creates buckets by bisecting on each dimension, creating quadrants for 2d scatter and octants for 3d scatter.
3/// Continues subdividing by prioritizing larger undivided buckets until reaching the max amount of buckets.
4#[derive(
5    Debug,
6    Clone,
7    conjure_object::serde::Serialize,
8    conjure_object::serde::Deserialize,
9    PartialEq,
10    Eq,
11    PartialOrd,
12    Ord,
13    Hash,
14    Copy
15)]
16#[serde(crate = "conjure_object::serde")]
17#[conjure_object::private::staged_builder::staged_builder]
18#[builder(crate = conjure_object::private::staged_builder, update, inline)]
19pub struct SpatialDecimateStrategy {}
20impl SpatialDecimateStrategy {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new() -> Self {
24        Self::builder().build()
25    }
26}