#[derive(Debug, Clone, Copy, PartialEq)]
pub struct SphericalPatch {
    pub resolution: usize,
}

impl SphericalPatch {
    pub fn new(resolution: usize) -> Self {
        Self { resolution }
    }

    pub fn vertex_count(&self) -> usize {
        (self.resolution + 1) * (self.resolution + 1)
    }

    pub fn triangle_count(&self) -> usize {
        self.resolution * self.resolution * 2
    }
}
