pub trait PolygonsWithUvMap: Sized + UvMapPolygonGenerator {
// Provided methods
fn polygons_with_uv_map(
&self,
) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output> ⓘ { ... }
fn polygons_with_uv_map_from(
&self,
state: Self::State,
) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output> ⓘ { ... }
}
Expand description
Functions for generating polygons with UV-mapping (texture coordinate) data.
Provided Methods§
Sourcefn polygons_with_uv_map(
&self,
) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output> ⓘ
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.
§Examples
use plexus::prelude::*;
use plexus::primitive;
use plexus::primitive::cube::Cube;
use plexus::primitive::index::HashIndexer;
let cube = Cube::new();
let (indices, positions) =
primitive::zip_vertices((cube.polygons_with_position(), cube.polygons_with_uv_map()))
.index_vertices(HashIndexer::default());
Sourcefn polygons_with_uv_map_from(
&self,
state: Self::State,
) -> Generate<'_, Self, Self::State, <Self as UvMapPolygonGenerator>::Output> ⓘ
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.