[−][src]Struct isosurface::PointCloud
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]
S: Sample<D>,
E: Extractor,
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]
D: RefUnwindSafe,
impl<D> Send for PointCloud<D> where
D: Send,
[src]
D: Send,
impl<D> Sync for PointCloud<D> where
D: Sync,
[src]
D: Sync,
impl<D> Unpin for PointCloud<D> where
D: Unpin,
[src]
D: Unpin,
impl<D> UnwindSafe for PointCloud<D> where
D: UnwindSafe,
[src]
D: UnwindSafe,
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>,