Should this crate also have a DOM (domain object model) representing the parsed Stage? Something along the lines of
pub struct Stage {
pub default_prim: Option<String>,
pub pseudo_root: PrimNode,
}
pub struct PrimNode {
pub name: String,
pub path: UsdPath,
pub type_name: Option<String>,
pub kind: PrimKind,
pub children: Vec<PrimNode>,
}
pub enum PrimKind {
Xform(XformPrim),
Scope(ScopePrim),
Mesh(MeshPrim),
Material(MaterialPrim),
Class(ClassPrim)
}
...
I'm happy to take a stab on it.
Should this crate also have a DOM (domain object model) representing the parsed Stage? Something along the lines of
I'm happy to take a stab on it.