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

Triangle or quadrilateral cell of a Mesh. More...

#include <meshkit/mesh.hpp>

Collaboration diagram for meshkit::Cell:

Public Attributes

std::array< Index, 4 > vertices {}
 Corner vertex indices in counter-clockwise order; only the first count entries are used (runJob() writes 0 to the unused fourth entry of a triangle).
 
std::int32_t region = 0
 Region identifier, named by the Label with the same id when one exists; 0 when no region was assigned.
 
std::uint8_t count = 3
 Number of corners: 3 (triangle) or 4 (quadrilateral).
 

Detailed Description

Triangle or quadrilateral cell of a Mesh.

validateMesh() requires every used corner index to be inside Mesh::vertices and the corners to form a strictly convex, counter-clockwise polygon in the XY plane.

Member Data Documentation

◆ count

std::uint8_t meshkit::Cell::count = 3

Number of corners: 3 (triangle) or 4 (quadrilateral).

◆ region

std::int32_t meshkit::Cell::region = 0

Region identifier, named by the Label with the same id when one exists; 0 when no region was assigned.

◆ vertices

std::array<Index, 4> meshkit::Cell::vertices {}

Corner vertex indices in counter-clockwise order; only the first count entries are used (runJob() writes 0 to the unused fourth entry of a triangle).


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