pub struct SceneGraph3D {
pub nodes: Vec<Node3>,
pub faces: Vec<Face>,
pub struts: Vec<Strut>,
pub bounding_box: (f64, f64, f64, f64, f64, f64),
pub metadata: Map<String, Value>,
}Available on crate feature
raster only.Expand description
The 3D scene graph — mirrors viz::SceneGraph (viz/mod.rs:74-80) lifted
to (x,y,z) with triangle faces and line struts.
Fields§
§nodes: Vec<Node3>§faces: Vec<Face>§struts: Vec<Strut>§bounding_box: (f64, f64, f64, f64, f64, f64)§metadata: Map<String, Value>Implementations§
Source§impl SceneGraph3D
impl SceneGraph3D
Sourcepub fn labeled_scalars(&self) -> Vec<String>
pub fn labeled_scalars(&self) -> Vec<String>
Every scalar (number) value in metadata, walked recursively through
nested objects/arrays, formatted as "dotted.path=value" (floats via
fmt::fmt6, the golden-fixture float formatter — Task 13 Property 3
hook: “SceneGraph3D labeled-scalar accessor”). metadata is a
serde_json::Map (BTreeMap-backed, no preserve_order feature) so
iteration order is key-sorted and deterministic, never HashMap
order. Bounded: total scalar count in metadata, a small fixed tree
built by the instrument builders.
Trait Implementations§
Source§impl Clone for SceneGraph3D
impl Clone for SceneGraph3D
Source§impl Debug for SceneGraph3D
impl Debug for SceneGraph3D
Source§impl<'de> Deserialize<'de> for SceneGraph3D
impl<'de> Deserialize<'de> for SceneGraph3D
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
Source§impl PartialEq for SceneGraph3D
impl PartialEq for SceneGraph3D
Source§impl Serialize for SceneGraph3D
impl Serialize for SceneGraph3D
impl StructuralPartialEq for SceneGraph3D
Auto Trait Implementations§
impl Forget for SceneGraph3D
impl Freeze for SceneGraph3Dwhere
*const u8 is !null: Freeze,
PhantomData<Node3>: Freeze,
PhantomData<Face>: Freeze,
PhantomData<Strut>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for SceneGraph3D
impl RefUnwindSafe for SceneGraph3D
impl Send for SceneGraph3D
impl Sync for SceneGraph3D
impl Unpin for SceneGraph3D
impl UnsafeUnpin for SceneGraph3Dwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Node3>: UnsafeUnpin,
PhantomData<Face>: UnsafeUnpin,
PhantomData<Strut>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for SceneGraph3D
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.