Struct nd_triangulation::Triangulation [−][src]
Triangulation
Uses the dD triangulation package from CGAL internally.
Implementations
impl Triangulation
[src]
pub fn new(dim: usize) -> Triangulation
[src]
Create new triangulation for vertices of size/dimension dim
pub fn add_vertex(
&mut self,
coords: &[f64]
) -> Result<usize, TriangulationError>
[src]
&mut self,
coords: &[f64]
) -> Result<usize, TriangulationError>
Add vertex to the triangulation.
The operation fails if coords
has the wrong dimension.
pub unsafe fn add_vertex_unchecked(&mut self, coords: &[f64]) -> usize
[src]
Add vertex to triangulation without veryfing the dimension
Safety
If the dimension of coords
is too small undefined behavior might be triggered on the c++ side.
If the dimension of coords
is too large only the first dim
values will be considered.
pub fn convex_hull_cells(&mut self) -> CellIter<'_>ⓘ
[src]
Returns a iterator over all convex hull cells/facets.
This allocates a vector with cell handles internally and is not implemented in the typical streaming fashion of rust iterators.
pub fn cells(&mut self) -> CellIter<'_>ⓘ
[src]
Returns a iterator over all cells/facets of the triangulation.
This allocates a vector with cell handles internally and is not implemented in the typical streaming fashion of rust iterators.
Trait Implementations
impl Debug for Triangulation
[src]
impl Drop for Triangulation
[src]
impl Eq for Triangulation
[src]
impl PartialEq<Triangulation> for Triangulation
[src]
fn eq(&self, other: &Triangulation) -> bool
[src]
fn ne(&self, other: &Triangulation) -> bool
[src]
impl StructuralEq for Triangulation
[src]
impl StructuralPartialEq for Triangulation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Triangulation
[src]
impl !Send for Triangulation
[src]
impl !Sync for Triangulation
[src]
impl Unpin for Triangulation
[src]
impl UnwindSafe for Triangulation
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,