tessera 0.1.0

A library and command line interface for calculating geometric error for 3D Tiles tilesets
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TesseraError {
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),

    #[error("Processing error: {0}")]
    Processing(String),

    #[error("Tileset error: {0}")]
    Tileset(String),

    #[error("Unsupported tile type: {0}")]
    UnsupportedTileType(String),

    #[error("Invalid GLTF file: {0}")]
    InvalidGltfFile(String),

    #[error("Invalid B3DM file: {0}")]
    InvalidB3dmFile(String),

    #[error("Invalid PNTS file: {0}")]
    InvalidPntsFile(String),

    #[error("Unsupported GLTF primitive type: {0}")]
    UnsuportedGltfPrimitiveType(String),

    #[error("Unsupported primitive comparison: {0}")]
    UnsupportedPrimitiveComparison(String),

    #[error("Draco error: {0}")]
    DracoError(#[from] draco_rs::prelude::DracoStatus),
}

pub type Result<T> = std::result::Result<T, TesseraError>;