Enum omf::SubblockMode
source · pub enum SubblockMode {
Octree,
Full,
}
Expand description
A optional mode for regular sub-blocks.
Variants§
Octree
Sub-blocks form a octree-like inside the parent block.
To form this structure, cut the parent block in half in all directions to create eight child blocks. Repeat that cut for some or all of those children, and continue doing that until the limit on sub-block count is reached or until the sub-blocks accurately model the inputs.
The sub-block count must be a power of two in each direction. This isn’t strictly an octree because the sub-block count doesn’t have to be the same in all directions. For example you can have count (16, 16, 2) and blocks will stop dividing the the W direction after the first split.
Full
Parent blocks are fully divided or not divided at all.
Applications reading this mode may choose to merge sub-blocks with matching attributes to reduce the overall number of them.
Trait Implementations§
source§impl Clone for SubblockMode
impl Clone for SubblockMode
source§fn clone(&self) -> SubblockMode
fn clone(&self) -> SubblockMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SubblockMode
impl Debug for SubblockMode
source§impl<'de> Deserialize<'de> for SubblockMode
impl<'de> Deserialize<'de> for SubblockMode
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>,
source§impl Hash for SubblockMode
impl Hash for SubblockMode
source§impl JsonSchema for SubblockMode
impl JsonSchema for SubblockMode
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for SubblockMode
impl PartialEq for SubblockMode
source§impl Serialize for SubblockMode
impl Serialize for SubblockMode
impl Copy for SubblockMode
impl Eq for SubblockMode
impl StructuralPartialEq for SubblockMode
Auto Trait Implementations§
impl Freeze for SubblockMode
impl RefUnwindSafe for SubblockMode
impl Send for SubblockMode
impl Sync for SubblockMode
impl Unpin for SubblockMode
impl UnwindSafe for SubblockMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.