pub trait BuildFace {
    // Provided methods
    fn unbound(surface: Handle<Surface>, services: &mut Services) -> Face { ... }
    fn triangle(
        points: [impl Into<Point<3>>; 3],
        services: &mut Services
    ) -> Polygon<3> { ... }
    fn polygon<P, Ps>(
        surface: Handle<Surface>,
        points: Ps,
        services: &mut Services
    ) -> Face
       where P: Into<Point<2>>,
             Ps: IntoIterator<Item = P>,
             Ps::IntoIter: Clone + ExactSizeIterator { ... }
}
Expand description

Build a Face

See module-level documentation for context.

Provided Methods§

source

fn unbound(surface: Handle<Surface>, services: &mut Services) -> Face

Build a face with an empty exterior, no interiors, and no color

source

fn triangle( points: [impl Into<Point<3>>; 3], services: &mut Services ) -> Polygon<3>

Build a triangle

source

fn polygon<P, Ps>( surface: Handle<Surface>, points: Ps, services: &mut Services ) -> Face
where P: Into<Point<2>>, Ps: IntoIterator<Item = P>, Ps::IntoIter: Clone + ExactSizeIterator,

Build a polygon

Object Safety§

This trait is not object safe.

Implementors§