pub struct Mesh {
pub bounding_box_min: Vec3,
pub bounding_box_max: Vec3,
pub bounding_sphere_radius: f32,
pub primitive_count: u64,
pub data: Option<MeshData>,
}Expand description
Simple mesh representation, layer on to of MeshData
Fields§
§bounding_box_min: Vec3Bounding box minimum
bounding_box_max: Vec3Bounding box maximum
bounding_sphere_radius: f32bounding sphere radius from origin
primitive_count: u64Amount of primitives (triangles) in mesh
data: Option<MeshData>Optional mesh data
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mesh
impl<'de> Deserialize<'de> for Mesh
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more