opatIO-cpp 0.3.0a
Open Parametrized Array Table
Loading...
Searching...
No Matches
opat::lattice::Simplex Struct Reference

Represents a simplex containing a point, along with barycentric weights. More...

#include <tableLattice.h>

Public Attributes

std::size_t ID = static_cast<std::size_t>(-1)
 The ID of the simplex in the triangulation. Defaults to an invalid ID.
 
std::vector< double > barycentricWeights
 Barycentric weights of the point within this simplex.
 

Detailed Description

Represents a simplex containing a point, along with barycentric weights.

Example:

simplex_info.ID = 5; // Simplex ID from the triangulation
simplex_info.barycentricWeights = {0.25, 0.5, 0.25}; // Weights for a 2D simplex (triangle)
// An ID of static_cast<std::size_t>(-1) indicates an invalid or not-found simplex.
Represents a simplex containing a point, along with barycentric weights.
Definition tableLattice.h:38
std::vector< double > barycentricWeights
Barycentric weights of the point within this simplex.
Definition tableLattice.h:40
std::size_t ID
The ID of the simplex in the triangulation. Defaults to an invalid ID.
Definition tableLattice.h:39

Member Data Documentation

◆ barycentricWeights

std::vector<double> opat::lattice::Simplex::barycentricWeights

Barycentric weights of the point within this simplex.

◆ ID

std::size_t opat::lattice::Simplex::ID = static_cast<std::size_t>(-1)

The ID of the simplex in the triangulation. Defaults to an invalid ID.


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