[][src]Trait shine_math::triangulation::Builder

pub trait Builder {
type Position: Position;
type Constraint: Constraint;
    fn add_vertex(
        &mut self,
        p: Self::Position,
        hint: Option<FaceIndex>
    ) -> VertexIndex;
fn add_constraint_segment(
        &mut self,
        p0: Self::Position,
        p1: Self::Position,
        c: Self::Constraint
    ) -> (VertexIndex, VertexIndex);
fn add_constraint_edge(
        &mut self,
        v0: VertexIndex,
        v1: VertexIndex,
        c: Self::Constraint
    ); }

Associated Types

Loading content...

Required methods

fn add_vertex(
    &mut self,
    p: Self::Position,
    hint: Option<FaceIndex>
) -> VertexIndex

Add a point to the triangulation and return the index of the generated vertex. A hint can be provided to find the triangle containing the given point.

fn add_constraint_segment(
    &mut self,
    p0: Self::Position,
    p1: Self::Position,
    c: Self::Constraint
) -> (VertexIndex, VertexIndex)

Add the two (new) vertices and a constraining edge between them.

fn add_constraint_edge(
    &mut self,
    v0: VertexIndex,
    v1: VertexIndex,
    c: Self::Constraint
)

Add a constraining edge between the given vertices.

Loading content...

Implementors

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

type Position = PR::Position

type Constraint = F::Constraint

Loading content...