[][src]Trait plexus::primitive::generate::PolygonsWithUvMap

pub trait PolygonsWithUvMap: Sized + UvMapPolygonGenerator {
    fn polygons_with_uv_map(&self) -> Generate<Self, Self::State, Self::Output> { ... }
fn polygons_with_uv_map_from(
        &self,
        state: Self::State
    ) -> Generate<Self, Self::State, Self::Output> { ... } }

Functions for generating polygons with UV-mapping (texture coordinate) data.

Provided methods

Important traits for Generate<'a, G, S, P>
fn polygons_with_uv_map(&self) -> Generate<Self, Self::State, Self::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());

Important traits for Generate<'a, G, S, P>
fn polygons_with_uv_map_from(
    &self,
    state: Self::State
) -> Generate<Self, Self::State, Self::Output>

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

Loading content...

Implementors

impl<G> PolygonsWithUvMap for G where
    G: UvMapPolygonGenerator
[src]

Important traits for Generate<'a, G, S, P>
fn polygons_with_uv_map(&self) -> Generate<Self, Self::State, Self::Output>[src]

Important traits for Generate<'a, G, S, P>
fn polygons_with_uv_map_from(
    &self,
    state: Self::State
) -> Generate<Self, Self::State, Self::Output>
[src]

Loading content...