Cube

Struct Cube 

Source
pub struct Cube;

Implementations§

Source§

impl Cube

Source

pub fn new() -> Self

Source

pub fn polygons_with_plane(&self) -> Generate<'_, Self, (), Quad<Plane>>

Source

pub fn vertex_with_plane_count(&self) -> usize

Source

pub fn vertex_with_plane(&self, index: usize) -> Plane

Source

pub fn polygon_with_plane(&self, index: usize) -> Quad<Plane>

Trait Implementations§

Source§

impl Clone for Cube

Source§

fn clone(&self) -> Cube

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Cube

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl NormalGenerator for Cube

Source§

impl NormalIndexGenerator for Cube

Source§

impl NormalPolygonGenerator for Cube

Source§

type Output = Quad<<Cube as NormalVertexGenerator>::Output>

Source§

fn polygon_with_normal_from( &self, state: &Self::State, index: usize, ) -> Self::Output

Source§

impl NormalVertexGenerator for Cube

Source§

type Output = Triplet<ConstrainedFloat<f64, FiniteConstraint<f64>>>

Source§

fn vertex_with_normal_from(&self, _: &Self::State, index: usize) -> Self::Output

Source§

fn vertex_with_normal_count(&self) -> usize

Gets the number of unique vertices with normal data that comprise a primitive.
Source§

impl PolygonGenerator for Cube

Source§

fn polygon_count(&self) -> usize

Gets the number of unique polygons that comprise a primitive.
Source§

impl PositionGenerator for Cube

Source§

impl PositionIndexGenerator for Cube

Source§

impl PositionPolygonGenerator for Cube

Source§

type Output = Quad<Triplet<ConstrainedFloat<f64, FiniteConstraint<f64>>>>

Source§

fn polygon_with_position_from( &self, state: &Self::State, index: usize, ) -> Self::Output

Source§

impl PositionVertexGenerator for Cube

Source§

type Output = Triplet<ConstrainedFloat<f64, FiniteConstraint<f64>>>

Source§

fn vertex_with_position_from( &self, state: &Self::State, index: usize, ) -> Self::Output

Source§

fn vertex_with_position_count(&self) -> usize

Gets the number of unique vertices with position data that comprise a primitive.
Source§

impl UvMapGenerator for Cube

Source§

impl UvMapPolygonGenerator for Cube

Source§

type Output = Quad<Duplet<ConstrainedFloat<f64, FiniteConstraint<f64>>>>

Source§

fn polygon_with_uv_map_from( &self, _: &Self::State, index: usize, ) -> Self::Output

Source§

impl Copy for Cube

Auto Trait Implementations§

§

impl Freeze for Cube

§

impl RefUnwindSafe for Cube

§

impl Send for Cube

§

impl Sync for Cube

§

impl Unpin for Cube

§

impl UnwindSafe for Cube

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGeometry<T> for T

Source§

fn from_geometry(other: T) -> T

Source§

impl<G> IndicesForNormal for G

Source§

fn indices_for_normal( &self, ) -> Generate<'_, Self, (), <Self as NormalIndexGenerator>::Output>

Source§

impl<G> IndicesForPosition for G

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> IntoGeometry<U> for T
where U: FromGeometry<T>,

Source§

fn into_geometry(self) -> U

Source§

impl<T, U> IntoInteriorGeometry<U> for T

Source§

impl<G> PolygonsWithNormal for G

Source§

fn polygons_with_normal( &self, ) -> Generate<'_, Self, Self::State, <Self as NormalPolygonGenerator>::Output>

Source§

fn polygons_with_normal_from( &self, state: Self::State, ) -> Generate<'_, Self, Self::State, <Self as NormalPolygonGenerator>::Output>

Source§

impl<G> PolygonsWithPosition for G

Source§

fn polygons_with_position( &self, ) -> Generate<'_, Self, Self::State, <Self as PositionPolygonGenerator>::Output>

Provides an iterator over the set of unique polygons with position data. Read more
Source§

fn polygons_with_position_from( &self, state: Self::State, ) -> Generate<'_, Self, Self::State, <Self as PositionPolygonGenerator>::Output>

Provides an iterator over the set of unique polygons with position data using the provided state. Read more
Source§

impl<G> PolygonsWithUvMap for G

Source§

fn polygons_with_uv_map( &self, ) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output>

Provides an iterator over the set of unique polygons with UV-mapping data. Read more
Source§

fn polygons_with_uv_map_from( &self, state: Self::State, ) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output>

Provides an iterator over the set of unique polygons with UV-mapping data using the provided state.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

unsafe fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<G> VerticesWithNormal for G

Source§

fn vertices_with_normal( &self, ) -> Generate<'_, Self, Self::State, <Self as NormalVertexGenerator>::Output>

Source§

fn vertices_with_normal_from( &self, state: Self::State, ) -> Generate<'_, Self, Self::State, <Self as NormalVertexGenerator>::Output>

Source§

impl<G> VerticesWithPosition for G

Source§

fn vertices_with_position( &self, ) -> Generate<'_, Self, Self::State, <Self as PositionVertexGenerator>::Output>

Provides an iterator over the set of unique vertices with position data. Read more
Source§

fn vertices_with_position_from( &self, state: Self::State, ) -> Generate<'_, Self, Self::State, <Self as PositionVertexGenerator>::Output>

Provides an iterator over the set of unique vertices with position data using the provided state. Read more