geodesic 0.1.0

A Rust library for constructing and sampling 3D geometric scenes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Specific error type for `Scene` construction.
#[derive(Error, Debug)]
pub enum SceneError {
    #[error("Scene must contain at least one object")]
    EmptyScene,

    #[error("BVH must contain at least one geometry")]
    EmptyBvh,

    #[error("Asset with ID '{id}' already exists")]
    DuplicateAssetId { id: String },

    #[error("Asset with ID '{id}' not found")]
    AssetNotFound { id: String },
}