[−][src]Struct shine_math::triangulation::Context
Context the enables/disables triangulation features and also stores the required datas
Fields
predicates: Predicates
tag: Tag
builder: Builder
trace: Trace
phantom: PhantomData<(P, V, F)>
Methods
impl<P, V, F> Context<P, V, F, (), (), (), ()> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
impl<P, V, F> Context<P, V, F, (), (), (), ()> where
P: Position,
P::Real: InexactReal,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
P::Real: InexactReal,
V: Vertex<Position = P>,
F: Face,
pub fn new_inexact_common(
) -> Context<P, V, F, InexactPredicates<P>, TagCtx, BuilderCtx, ()>
[src]
) -> Context<P, V, F, InexactPredicates<P>, TagCtx, BuilderCtx, ()>
impl<P, V, F> Context<P, V, F, (), (), (), ()> where
P: Position,
P::Real: ExactReal,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
P::Real: ExactReal,
V: Vertex<Position = P>,
F: Face,
pub fn new_exact_common(
) -> Context<P, V, F, ExactPredicates<P>, TagCtx, BuilderCtx, ()>
[src]
) -> Context<P, V, F, ExactPredicates<P>, TagCtx, BuilderCtx, ()>
impl<P, V, F, Predicates, Tag, Builder, Trace> Context<P, V, F, Predicates, Tag, Builder, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
pub fn create(self) -> Triangulation<P, V, F, Self>
[src]
impl<P, V, F, Tag, Builder, Trace> Context<P, V, F, (), Tag, Builder, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
pub fn with_predicates<PR>(
self,
predicates: PR
) -> Context<P, V, F, PR, Tag, Builder, Trace> where
PR: Predicates<Position = P>,
[src]
self,
predicates: PR
) -> Context<P, V, F, PR, Tag, Builder, Trace> where
PR: Predicates<Position = P>,
impl<P, V, F, Tag, Builder, Trace> Context<P, V, F, (), Tag, Builder, Trace> where
P: Position,
P::Real: InexactReal,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
P::Real: InexactReal,
V: Vertex<Position = P>,
F: Face,
pub fn with_inexact_predicates(
self
) -> Context<P, V, F, InexactPredicates<P>, Tag, Builder, Trace>
[src]
self
) -> Context<P, V, F, InexactPredicates<P>, Tag, Builder, Trace>
pub fn with_inexact_predicates_eps(
self,
eps: P::Real
) -> Context<P, V, F, InexactPredicates<P>, Tag, Builder, Trace>
[src]
self,
eps: P::Real
) -> Context<P, V, F, InexactPredicates<P>, Tag, Builder, Trace>
impl<P, V, F, Tag, Builder, Trace> Context<P, V, F, (), Tag, Builder, Trace> where
P: Position,
P::Real: ExactReal,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
P::Real: ExactReal,
V: Vertex<Position = P>,
F: Face,
pub fn with_exact_predicates(
self
) -> Context<P, V, F, ExactPredicates<P>, Tag, Builder, Trace>
[src]
self
) -> Context<P, V, F, ExactPredicates<P>, Tag, Builder, Trace>
impl<P, V, F, Predicates, Builder, Trace> Context<P, V, F, Predicates, (), Builder, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
impl<P, V, F, Predicates, Tag, Trace> Context<P, V, F, Predicates, Tag, (), Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
pub fn with_builder(
self
) -> Context<P, V, F, Predicates, Tag, BuilderCtx, Trace>
[src]
self
) -> Context<P, V, F, Predicates, Tag, BuilderCtx, Trace>
impl<P, V, F, Predicates, Tag, Builder> Context<P, V, F, Predicates, Tag, Builder, ()> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
pub fn with_trace<TC, TR, T>(
self,
trace: T
) -> Context<P, V, F, Predicates, Tag, Builder, TraceCtx<TC, TR>> where
TC: TriTraceControl,
TR: TraceRender2,
T: Into<TraceCtx<TC, TR>>,
[src]
self,
trace: T
) -> Context<P, V, F, Predicates, Tag, Builder, TraceCtx<TC, TR>> where
TC: TriTraceControl,
TR: TraceRender2,
T: Into<TraceCtx<TC, TR>>,
Trait Implementations
impl<P, V, F, PR, Tag, Builder, Trace> PredicatesContext for Context<P, V, F, PR, Tag, Builder, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
PR: Predicates<Position = P>,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
PR: Predicates<Position = P>,
type Predicates = PR
fn predicates(&self) -> &Self::Predicates
[src]
impl<P, V, F, Predicates, Builder, Trace> TagContext for Context<P, V, F, Predicates, TagCtx, Builder, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
impl<P, V, F, Predicates, Tag, Trace> BuilderContext for Context<P, V, F, Predicates, Tag, BuilderCtx, Trace> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
fn get_face_vertex_vector(&self, name: &str) -> Rc<RefCell<Vec<FaceVertex>>>
[src]
fn get_face_edge_vector(&self, name: &str) -> Rc<RefCell<Vec<FaceEdge>>>
[src]
impl<P, V, F, Predicates, Tag, Builder, TC, TR> TraceContext for Context<P, V, F, Predicates, Tag, Builder, TraceCtx<TC, TR>> where
P: Position,
V: Vertex<Position = P>,
F: Face,
TC: 'static + TriTraceControl,
TR: 'static + TraceRender2,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
TC: 'static + TriTraceControl,
TR: 'static + TraceRender2,
fn trace_render(&self) -> Rc<RefCell<dyn TraceRender2>>
[src]
fn trace_control(&self) -> Rc<RefCell<dyn TriTraceControl>>
[src]
impl<P, V, F> Default for Context<P, V, F, (), (), (), ()> where
P: Position,
V: Vertex<Position = P>,
F: Face,
[src]
P: Position,
V: Vertex<Position = P>,
F: Face,
Auto Trait Implementations
impl<P, V, F, Predicates, Tag, Builder, Trace> Send for Context<P, V, F, Predicates, Tag, Builder, Trace> where
Builder: Send,
F: Send,
P: Send,
Predicates: Send,
Tag: Send,
Trace: Send,
V: Send,
Builder: Send,
F: Send,
P: Send,
Predicates: Send,
Tag: Send,
Trace: Send,
V: Send,
impl<P, V, F, Predicates, Tag, Builder, Trace> Sync for Context<P, V, F, Predicates, Tag, Builder, Trace> where
Builder: Sync,
F: Sync,
P: Sync,
Predicates: Sync,
Tag: Sync,
Trace: Sync,
V: Sync,
Builder: Sync,
F: Sync,
P: Sync,
Predicates: Sync,
Tag: Sync,
Trace: Sync,
V: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self