SaDVIO
Public Member Functions | List of all members
isae::Polygon Struct Reference

A polygon in the 3D mesh, representing a surface with its vertices, normal, barycenter, and covariance. More...

#include <mesh.h>

Inheritance diagram for isae::Polygon:
Inheritance graph
[legend]
Collaboration diagram for isae::Polygon:
Collaboration graph
[legend]

Public Member Functions

 Polygon ()
 
 Polygon (std::vector< std::shared_ptr< Vertex >> vertices)
 
 ~Polygon ()=default
 
void setNormal (Eigen::Vector3d normal)
 
void setBarycenter (Eigen::Vector3d barycenter)
 
void setCovariance (Eigen::Matrix2d covariance)
 
void setScore (double score)
 
void setOutlier ()
 
Eigen::Vector3d getPolygonNormal () const
 
Eigen::Vector3d getBarycenter () const
 
Eigen::Matrix2d getCovariance () const
 
std::vector< std::shared_ptr< Vertex > > getVertices () const
 
double getScore () const
 
bool isOutlier ()
 

Detailed Description

A polygon in the 3D mesh, representing a surface with its vertices, normal, barycenter, and covariance.

It contains the vertices of the polygon, its normal, barycenter, covariance matrix, and a traversability score.

Constructor & Destructor Documentation

◆ Polygon() [1/2]

isae::Polygon::Polygon ( )
inline

◆ Polygon() [2/2]

isae::Polygon::Polygon ( std::vector< std::shared_ptr< Vertex >>  vertices)
inline

◆ ~Polygon()

isae::Polygon::~Polygon ( )
default

Member Function Documentation

◆ getBarycenter()

Eigen::Vector3d isae::Polygon::getBarycenter ( ) const
inline

◆ getCovariance()

Eigen::Matrix2d isae::Polygon::getCovariance ( ) const
inline

◆ getPolygonNormal()

Eigen::Vector3d isae::Polygon::getPolygonNormal ( ) const
inline

◆ getScore()

double isae::Polygon::getScore ( ) const
inline

◆ getVertices()

std::vector<std::shared_ptr<Vertex> > isae::Polygon::getVertices ( ) const
inline

◆ isOutlier()

bool isae::Polygon::isOutlier ( )
inline

◆ setBarycenter()

void isae::Polygon::setBarycenter ( Eigen::Vector3d  barycenter)
inline

◆ setCovariance()

void isae::Polygon::setCovariance ( Eigen::Matrix2d  covariance)
inline

◆ setNormal()

void isae::Polygon::setNormal ( Eigen::Vector3d  normal)
inline

◆ setOutlier()

void isae::Polygon::setOutlier ( )
inline

◆ setScore()

void isae::Polygon::setScore ( double  score)
inline

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