[−][src]Trait shine_math::triangulation::Builder
Associated Types
type Position: Position
type Constraint: Constraint
Required methods
fn add_vertex(
&mut self,
p: Self::Position,
hint: Option<FaceIndex>
) -> VertexIndex
&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)
&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
)
&mut self,
v0: VertexIndex,
v1: VertexIndex,
c: Self::Constraint
)
Add a constraining edge between the given vertices.
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]
PR: Predicates,
V: Vertex<Position = PR::Position>,
F: Face,
C: PredicatesContext<Predicates = PR> + TagContext + BuilderContext,
type Position = PR::Position
type Constraint = F::Constraint
fn add_vertex(
&mut self,
p: PR::Position,
hint: Option<FaceIndex>
) -> VertexIndex
[src]
&mut self,
p: PR::Position,
hint: Option<FaceIndex>
) -> VertexIndex
fn add_constraint_segment(
&mut self,
p0: PR::Position,
p1: PR::Position,
c: F::Constraint
) -> (VertexIndex, VertexIndex)
[src]
&mut self,
p0: PR::Position,
p1: PR::Position,
c: F::Constraint
) -> (VertexIndex, VertexIndex)
fn add_constraint_edge(
&mut self,
v0: VertexIndex,
v1: VertexIndex,
c: F::Constraint
)
[src]
&mut self,
v0: VertexIndex,
v1: VertexIndex,
c: F::Constraint
)