[][src]Struct isosurface::PointCloud

pub struct PointCloud<D: Distance> { /* fields omitted */ }

Convert isosurfaces to point clouds

Pros:

  • Blindingly fast.

Cons:

  • Doesn't contain any surface data. Surfaces have to be reconstructed, ideally on the GPU itself.

Implementations

impl<D: Distance> PointCloud<D>[src]

pub fn new(size: usize) -> Self[src]

Create a new PointCloud with the given chunk size.

For a given size, this will evaluate chunks of size^3 voxels.

pub fn extract<S, E>(&mut self, source: &S, extractor: &mut E) where
    S: Sample<D>,
    E: Extractor
[src]

Extracts a point cloud from the given Sample.

The Source will be sampled in the range (0,0,0) to (1,1,1), with the number of steps determined by the size provided to the constructor.

The resulting vertex data will be returned via the provided Extractor. Note that no face data will be produced.

Auto Trait Implementations

impl<D> RefUnwindSafe for PointCloud<D> where
    D: RefUnwindSafe
[src]

impl<D> Send for PointCloud<D> where
    D: Send
[src]

impl<D> Sync for PointCloud<D> where
    D: Sync
[src]

impl<D> Unpin for PointCloud<D> where
    D: Unpin
[src]

impl<D> UnwindSafe for PointCloud<D> where
    D: UnwindSafe
[src]

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.