Struct hexasphere::shapes::CubeBase [−][src]
pub struct CubeBase;
Implements a cube as the base shape.
- 8 vertices
- 12 faces (2 triangles per face makes 12 technically)
- 18 edges
This is a cube where half the diagonal is 1.0. This is to enable this to be used in making a sphere.
Trait Implementations
impl BaseShape for CubeBase
[src]
impl BaseShape for CubeBase
[src]fn initial_points(&self) -> Vec<Vec3A>
[src]
fn triangles(&self) -> Box<[Triangle]>
[src]
const EDGES: usize
[src]
fn interpolate(&self, a: Vec3A, b: Vec3A, p: f32) -> Vec3A
[src]
fn interpolate_half(&self, a: Vec3A, b: Vec3A) -> Vec3A
[src]
fn interpolate_multiple(
&self,
a: Vec3A,
b: Vec3A,
indices: &[u32],
points: &mut [Vec3A]
)
[src]
&self,
a: Vec3A,
b: Vec3A,
indices: &[u32],
points: &mut [Vec3A]
)
Auto Trait Implementations
impl RefUnwindSafe for CubeBase
impl RefUnwindSafe for CubeBase
impl UnwindSafe for CubeBase
impl UnwindSafe for CubeBase