Skip to content

Add a DOM? #15

@mbalakhno-oai

Description

@mbalakhno-oai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions