[][src]Trait shine_math::triangulation::GeometryQuery

pub trait GeometryQuery {
type Orientation: Orientation;
    fn get_vertices_orientation(
        &self,
        v0: VertexIndex,
        v1: VertexIndex,
        v2: VertexIndex
    ) -> Self::Orientation;
fn get_edge_vertex_orientation(
        &self,
        f: FaceIndex,
        i: Rot3,
        v: VertexIndex
    ) -> Self::Orientation;
fn is_convex(&self, f: FaceIndex, i: Rot3) -> bool; }

Associated Types

Loading content...

Required methods

fn get_vertices_orientation(
    &self,
    v0: VertexIndex,
    v1: VertexIndex,
    v2: VertexIndex
) -> Self::Orientation

fn get_edge_vertex_orientation(
    &self,
    f: FaceIndex,
    i: Rot3,
    v: VertexIndex
) -> Self::Orientation

fn is_convex(&self, f: FaceIndex, i: Rot3) -> bool

Loading content...

Implementors

impl<PR, V, F, C> GeometryQuery for Triangulation<PR::Position, V, F, C> where
    PR: Predicates,
    V: Vertex<Position = PR::Position>,
    F: Face,
    C: PredicatesContext<Predicates = PR>, 
[src]

type Orientation = PR::Orientation

fn is_convex(&self, f: FaceIndex, i: Rot3) -> bool[src]

Returns if the quad defined by the two adjacent triangles is a convex polygon.

Loading content...