Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::OrientedBox::CovarienceData Struct Reference

#include <OrientedBox.hpp>

+ Collaboration diagram for moab::OrientedBox::CovarienceData:

Public Member Functions

 CovarienceData ()
 
 CovarienceData (const Matrix3 &m, const CartVect &c, double a)
 

Public Attributes

Matrix3 matrix
 Running sum for covariance matrix. More...
 
CartVect center
 Sum of triangle centroids weighted by 2*triangle area. More...
 
double area
 2x the sum of the triangle areas More...
 

Detailed Description

Structure to hold temporary accumulated triangle data for calculating box orientation. See box_from_covariance_data to see how this is used to calculate the final covariance matrix and resulting box orientation.

Definition at line 102 of file OrientedBox.hpp.

Constructor & Destructor Documentation

◆ CovarienceData() [1/2]

moab::OrientedBox::CovarienceData::CovarienceData ( )
inline

Definition at line 104 of file OrientedBox.hpp.

104 : area( 0.0 ) {}

◆ CovarienceData() [2/2]

moab::OrientedBox::CovarienceData::CovarienceData ( const Matrix3 m,
const CartVect c,
double  a 
)
inline

Definition at line 105 of file OrientedBox.hpp.

105 : matrix( m ), center( c ), area( a ) {}

Member Data Documentation

◆ area

double moab::OrientedBox::CovarienceData::area

2x the sum of the triangle areas

Definition at line 108 of file OrientedBox.hpp.

Referenced by moab::OrientedBox::compute_from_covariance_data(), and moab::OrientedBox::covariance_data_from_tris().

◆ center

CartVect moab::OrientedBox::CovarienceData::center

Sum of triangle centroids weighted by 2*triangle area.

Definition at line 107 of file OrientedBox.hpp.

Referenced by moab::OrientedBox::compute_from_covariance_data(), and moab::OrientedBox::covariance_data_from_tris().

◆ matrix

Matrix3 moab::OrientedBox::CovarienceData::matrix

Running sum for covariance matrix.

Definition at line 106 of file OrientedBox.hpp.

Referenced by moab::OrientedBox::compute_from_covariance_data(), and moab::OrientedBox::covariance_data_from_tris().


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