Struct nd_triangulation::Triangulation[][src]

pub struct Triangulation { /* fields omitted */ }

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]

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<'_>

Notable traits for CellIter<'a>

impl<'a> Iterator for CellIter<'a> type Item = Cell<'a>;
[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<'_>

Notable traits for CellIter<'a>

impl<'a> Iterator for CellIter<'a> type Item = Cell<'a>;
[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]

impl StructuralEq for Triangulation[src]

impl StructuralPartialEq for Triangulation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.