Struct fenris::io::vtk::FiniteElementMeshDataSetBuilder
source · pub struct FiniteElementMeshDataSetBuilder<'a, T, D, C>where
T: Scalar,
D: DimName,
DefaultAllocator: Allocator<T, D>,{ /* private fields */ }
Implementations§
source§impl<'a, T, D, C> FiniteElementMeshDataSetBuilder<'a, T, D, C>where
T: Scalar,
D: DimName,
DefaultAllocator: Allocator<T, D>,
impl<'a, T, D, C> FiniteElementMeshDataSetBuilder<'a, T, D, C>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D>,
source§impl<'a, T, D, C> FiniteElementMeshDataSetBuilder<'a, T, D, C>where
T: Real + ToPrimitive,
D: DimName,
DefaultAllocator: Allocator<T, D>,
impl<'a, T, D, C> FiniteElementMeshDataSetBuilder<'a, T, D, C>where T: Real + ToPrimitive, D: DimName, DefaultAllocator: Allocator<T, D>,
pub fn with_title(self, title: impl Into<String>) -> Self
sourcepub fn with_point_vector_attributes<S: Scalar + Zero + ToPrimitive>(
self,
name: impl Into<String>,
num_components: usize,
attributes: &[S]
) -> Self
pub fn with_point_vector_attributes<S: Scalar + Zero + ToPrimitive>( self, name: impl Into<String>, num_components: usize, attributes: &[S] ) -> Self
Adds the given attribute data as vector point attributes.
The size of each vector is inferred from the size of the attributes array. For example, if the number of elements in the attributes array is 20 and the number of points is 10, each vector will be interpreted as two-dimensional.
Panics
Panics if the number of entries in the attribute vector is not equal to the product of the vertex count in the mesh and the number of components,
Panics if there are more than 3 components per vector.
sourcepub fn with_point_scalar_attributes<S: Scalar + ToPrimitive>(
self,
name: impl Into<String>,
num_components: usize,
attributes: &[S]
) -> Self
pub fn with_point_scalar_attributes<S: Scalar + ToPrimitive>( self, name: impl Into<String>, num_components: usize, attributes: &[S] ) -> Self
Adds the given attribute data as scalar point attributes.
Panics
Panics if the number of entries in the attribute vector is not equal to the product of the vertex count in the mesh and the number of components.
sourcepub fn with_cell_scalar_attributes<S: Scalar + ToPrimitive>(
self,
name: impl Into<String>,
num_components: usize,
attributes: &[S]
) -> Self
pub fn with_cell_scalar_attributes<S: Scalar + ToPrimitive>( self, name: impl Into<String>, num_components: usize, attributes: &[S] ) -> Self
Adds the given attribute data as scalar cell attributes.
Panics
Panics if the number of entries in the attribute vector is not equal to the product of the cell count in the mesh and the number of components.
pub fn try_build(&self) -> Result<DataSet>where C: VtkCellConnectivity,
sourcepub fn try_export(&self, filename: impl AsRef<Path>) -> Result<()>where
C: VtkCellConnectivity,
pub fn try_export(&self, filename: impl AsRef<Path>) -> Result<()>where C: VtkCellConnectivity,
Convenience function for directly exporting the dataset to a file.
Auto Trait Implementations§
impl<'a, T, D, C> !RefUnwindSafe for FiniteElementMeshDataSetBuilder<'a, T, D, C>
impl<'a, T, D, C> !Send for FiniteElementMeshDataSetBuilder<'a, T, D, C>
impl<'a, T, D, C> !Sync for FiniteElementMeshDataSetBuilder<'a, T, D, C>
impl<'a, T, D, C> Unpin for FiniteElementMeshDataSetBuilder<'a, T, D, C>
impl<'a, T, D, C> !UnwindSafe for FiniteElementMeshDataSetBuilder<'a, T, D, C>
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.