conspire/geometry/mesh/tessellation/mod.rs
1pub mod base;
2pub mod dual;
3pub mod from;
4pub mod into;
5pub mod read;
6pub mod sdf;
7pub mod write;
8
9use crate::{
10 geometry::{bvh::BoundingVolumeHierarchy, mesh::Mesh},
11 math::TensorRank1Vec2D,
12};
13use std::cell::OnceCell;
14
15const D: usize = 3;
16
17type Normals = TensorRank1Vec2D<D, 0>;
18
19pub struct Tessellation {
20 mesh: Mesh<D>,
21 normals: Normals,
22 bvh: OnceCell<BoundingVolumeHierarchy<D>>,
23}