pub struct MshFile<U, I, F>{
pub header: MshHeader,
pub data: MshData<U, I, F>,
}
Expand description
A parsed MSH file containing mesh and header data
Models MSH files after revision 4.1 described at gmsh.info
Fields§
§header: MshHeader
Data extracted from the file format header
data: MshData<U, I, F>
Actual mesh data of the MSH file
Implementations§
Source§impl<U, I, F> MshFile<U, I, F>
impl<U, I, F> MshFile<U, I, F>
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the total number of point entities in the MSH file
Sourcepub fn curve_count(&self) -> usize
pub fn curve_count(&self) -> usize
Returns the total number of curve entities in the MSH file
Sourcepub fn surface_count(&self) -> usize
pub fn surface_count(&self) -> usize
Returns the total number of surface entities in the MSH file
Sourcepub fn volume_count(&self) -> usize
pub fn volume_count(&self) -> usize
Returns the total number of volume entities in the MSH file
Sourcepub fn total_node_count(&self) -> usize
pub fn total_node_count(&self) -> usize
Returns the total number of nodes in the MSH file
Sourcepub fn total_element_count(&self) -> usize
pub fn total_element_count(&self) -> usize
Returns the total number of elements in the MSH file
pub fn count_element_types(&self) -> HashMap<ElementType, usize>
Trait Implementations§
Source§impl<'a> TryFrom<&'a [u8]> for MshFile<u64, i32, f64>
Try to parse a MshFile from a slice of bytes
impl<'a> TryFrom<&'a [u8]> for MshFile<u64, i32, f64>
Try to parse a MshFile from a slice of bytes
The input can be the content of an ASCII or binary encoded MSH file of file format version 4.1.
impl<U, I, F> StructuralPartialEq for MshFile<U, I, F>
Auto Trait Implementations§
impl<U, I, F> Freeze for MshFile<U, I, F>where
U: Freeze,
impl<U, I, F> RefUnwindSafe for MshFile<U, I, F>
impl<U, I, F> Send for MshFile<U, I, F>
impl<U, I, F> Sync for MshFile<U, I, F>
impl<U, I, F> Unpin for MshFile<U, I, F>
impl<U, I, F> UnwindSafe for MshFile<U, I, F>
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
Mutably borrows from an owned value. Read more