Struct splashsurf_lib::SurfaceReconstruction
source · pub struct SurfaceReconstruction<I: Index, R: Real> { /* private fields */ }
Expand description
Result data returned when the surface reconstruction was successful
Implementations§
source§impl<I: Index, R: Real> SurfaceReconstruction<I, R>
impl<I: Index, R: Real> SurfaceReconstruction<I, R>
sourcepub fn mesh(&self) -> &TriMesh3d<R>
pub fn mesh(&self) -> &TriMesh3d<R>
Returns a reference to the actual triangulated surface mesh that is the result of the reconstruction
sourcepub fn octree(&self) -> Option<&Octree<I, R>>
pub fn octree(&self) -> Option<&Octree<I, R>>
Returns a reference to the octree generated for spatial decomposition of the input particles (mostly useful for debugging visualization)
sourcepub fn density_map(&self) -> Option<&DensityMap<I, R>>
pub fn density_map(&self) -> Option<&DensityMap<I, R>>
Returns a reference to the sparse density map (discretized on the vertices of the background grid) that is used as input for marching cubes (always None
when using domain decomposition)
sourcepub fn particle_densities(&self) -> Option<&Vec<R>>
pub fn particle_densities(&self) -> Option<&Vec<R>>
Returns a reference to the global particle density vector if it was computed during the reconstruction (always None
when using independent subdomains with domain decomposition)
sourcepub fn particle_neighbors(&self) -> Option<&Vec<Vec<usize>>>
pub fn particle_neighbors(&self) -> Option<&Vec<Vec<usize>>>
Returns a reference to the global particle density vector if it was computed during the reconstruction (always None
when using octree based domain decomposition)
sourcepub fn grid(&self) -> &UniformGrid<I, R>
pub fn grid(&self) -> &UniformGrid<I, R>
Returns a reference to the virtual background grid that was used as a basis for discretization of the density map for marching cubes, can be used to convert the density map to a hex mesh (using density_map::sparse_density_map_to_hex_mesh
)
Trait Implementations§
source§impl<I: Clone + Index, R: Clone + Real> Clone for SurfaceReconstruction<I, R>
impl<I: Clone + Index, R: Clone + Real> Clone for SurfaceReconstruction<I, R>
source§fn clone(&self) -> SurfaceReconstruction<I, R>
fn clone(&self) -> SurfaceReconstruction<I, R>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<I: Index, R: Real> Default for SurfaceReconstruction<I, R>
impl<I: Index, R: Real> Default for SurfaceReconstruction<I, R>
source§fn default() -> Self
fn default() -> Self
Returns an empty SurfaceReconstruction to pass into the inplace surface reconstruction
Auto Trait Implementations§
impl<I, R> !RefUnwindSafe for SurfaceReconstruction<I, R>
impl<I, R> Send for SurfaceReconstruction<I, R>
impl<I, R> Sync for SurfaceReconstruction<I, R>
impl<I, R> Unpin for SurfaceReconstruction<I, R>where I: Unpin, R: Unpin,
impl<I, R> UnwindSafe for SurfaceReconstruction<I, R>where I: UnwindSafe, R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.