Back to Eqiora docs Skip to main content

MeshGeometry

Trait MeshGeometry 

pub trait MeshGeometry: MeshTopology {
    type Map<'a>: GeometryMap
       where Self: 'a;

    // Required methods
    fn geometric_dimension(&self) -> usize;
    fn geometry_map(&self, entity: MeshEntity) -> Option<Self::Map<'_>>;
}
Description

Geometry ownership contract paired with MeshTopology.

Required Associated Types§

type Map<'a>: GeometryMap where Self: 'a

Concrete map type; implementations may use an enum for mixed cells.

Required Methods§

fn geometric_dimension(&self) -> usize

Dimension of embedding physical coordinates.

fn geometry_map(&self, entity: MeshEntity) -> Option<Self::Map<'_>>

Geometry map for a valid mesh entity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl MeshGeometry for CartesianMesh

§

impl MeshGeometry for LineMesh

§

impl MeshGeometry for SimplicialMesh