bevy_procedural_tree 0.3.0

Procedurally generated 3D trees for bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{error::Error, fmt::Display};

#[derive(Debug)]
pub struct IndicesOverflowError;

impl Error for IndicesOverflowError {}

impl Display for IndicesOverflowError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "Indices overflow in mesh generation: Please reduce amount of sections, segments or leaves or enable the u32_indices feature.")
    }
}