gltf_kun 0.0.6

Graph-based glTF processing library.
Documentation
//! The internal directed graph.
//!
//! There are provided graph types for both [glTF](https://github.com/KhronosGroup/glTF) and
//! [glXF](https://github.com/KhronosGroup/glXF) files.

use petgraph::graph::DiGraph;

mod byte_node;
pub mod gltf;
pub mod glxf;
mod graph_node;
mod property;

pub use byte_node::ByteNode;
pub use graph_node::GraphNode;
pub use petgraph::graph::NodeIndex;
pub use property::Property;

#[derive(Debug)]
pub enum Weight {
    Bytes(Vec<u8>),
    Gltf(gltf::GltfWeight),
    Glxf(glxf::Weight),
}

#[derive(Debug, PartialEq, Eq)]
pub enum Edge {
    Extension(&'static str),
    Gltf(gltf::GltfEdge),
    Glxf(glxf::Edge),
    Other(&'static str),
}

pub type Graph = DiGraph<Weight, Edge>;