pub struct ImportedNode {
pub id: u64,
pub parent_id: Option<u64>,
pub name: Option<String>,
pub kind: ImportedNodeKind,
pub visible: bool,
pub body_index: Option<usize>,
pub local_transform: Option<[[f32; 4]; 4]>,
}Expand description
One hierarchy node from the imported file’s product structure.
Nodes can either be pure containers (body_index = None) or reference a
renderable payload in ImportedModel::bodies.
Fields§
§id: u64Stable id scoped to one import result.
parent_id: Option<u64>Parent node id; None means root.
name: Option<String>Human-readable name from the file’s product labels when available.
kind: ImportedNodeKindStructural type of this node.
visible: boolInitial visibility from source file metadata (if available).
body_index: Option<usize>Index into ImportedModel::bodies when this node owns geometry.
local_transform: Option<[[f32; 4]; 4]>Local transform matrix (row-major) relative to parent, if known.
Trait Implementations§
Source§impl Clone for ImportedNode
impl Clone for ImportedNode
Source§impl Debug for ImportedNode
impl Debug for ImportedNode
Source§impl<'de> Deserialize<'de> for ImportedNode
impl<'de> Deserialize<'de> for ImportedNode
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
Auto Trait Implementations§
impl Forget for ImportedNode
impl Freeze for ImportedNode
impl Move for ImportedNode
impl RefUnwindSafe for ImportedNode
impl Send for ImportedNode
impl Sync for ImportedNode
impl Unpin for ImportedNode
impl UnsafeUnpin for ImportedNode
impl UnwindSafe for ImportedNode
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