Loading...
Searching...
No Matches
meshkit::Mesh Struct Reference

Neutral owned mesh: XYZ vertices, triangle/quad cells, marked edges, paths, optional external ids and markers, region labels, source aliases and metadata. More...

#include <meshkit/mesh.hpp>

Collaboration diagram for meshkit::Mesh:

Public Attributes

std::vector< Point3 > vertices
 Vertex positions; every coordinate must be finite.
 
std::vector< Cell > cells
 Triangle and quadrilateral cells.
 
std::vector< Edge > edges
 Marked constraint edges, not every cell edge.
 
std::vector< Path > paths
 Delivered paths.
 
std::vector< std::int64_t > vertexIds
 External vertex ids: empty means 1, 2, 3, ...; otherwise one unique id per vertex.
 
std::vector< std::int64_t > cellIds
 External cell ids: empty means one-based sequential ids; otherwise one unique id per cell.
 
std::vector< std::int64_t > edgeIds
 External edge ids: empty means one-based sequential ids; otherwise one unique id per edge.
 
std::vector< std::int32_t > vertexMarkers
 Numeric vertex markers: empty means all zero; otherwise one marker per vertex.
 
std::vector< Label > labels
 Names of the region ids used by Cell::region; ids are unique.
 
std::vector< VertexAlias > aliases
 Further source identities merged into shared vertices (exact XY duplicates).
 
Metadata metadata
 Units, CRS text and description.
 

Detailed Description

Neutral owned mesh: XYZ vertices, triangle/quad cells, marked edges, paths, optional external ids and markers, region labels, source aliases and metadata.

X and Y are in XY plane units and Z in elevation units (see Metadata). Each optional per-item array is either empty or exactly as long as the array it annotates; validateMesh() checks this.

Member Data Documentation

◆ aliases

std::vector<VertexAlias> meshkit::Mesh::aliases

Further source identities merged into shared vertices (exact XY duplicates).

◆ cellIds

std::vector<std::int64_t> meshkit::Mesh::cellIds

External cell ids: empty means one-based sequential ids; otherwise one unique id per cell.

◆ cells

std::vector<Cell> meshkit::Mesh::cells

Triangle and quadrilateral cells.

◆ edgeIds

std::vector<std::int64_t> meshkit::Mesh::edgeIds

External edge ids: empty means one-based sequential ids; otherwise one unique id per edge.

◆ edges

std::vector<Edge> meshkit::Mesh::edges

Marked constraint edges, not every cell edge.

runJob() fills it with the cell-edge chains of delivered paths and the interior lines of quad patches.

◆ labels

std::vector<Label> meshkit::Mesh::labels

Names of the region ids used by Cell::region; ids are unique.

◆ metadata

Metadata meshkit::Mesh::metadata

Units, CRS text and description.

◆ paths

std::vector<Path> meshkit::Mesh::paths

Delivered paths.

runJob() also delivers the rings of planned quad regions as Region paths with negative ids.

◆ vertexIds

std::vector<std::int64_t> meshkit::Mesh::vertexIds

External vertex ids: empty means 1, 2, 3, ...; otherwise one unique id per vertex.

◆ vertexMarkers

std::vector<std::int32_t> meshkit::Mesh::vertexMarkers

Numeric vertex markers: empty means all zero; otherwise one marker per vertex.

◆ vertices

std::vector<Point3> meshkit::Mesh::vertices

Vertex positions; every coordinate must be finite.


The documentation for this struct was generated from the following file: