hpp-affordance 4.15.1
Implementation to Extract Whole-Body Affordances for Mutli-Contact Planning.
Loading...
Searching...
No Matches
hpp::affordance::Triangle Struct Reference

Helper class to save triangle information. More...

#include <hpp/affordance/affordance-extraction.hh>

Collaboration diagram for hpp::affordance::Triangle:

Public Member Functions

 Triangle ()
 
 Triangle (const TrianglePoints &inPoints)
 Constructor that takes in a TrianglePoints object. More...
 
void TriangleArea (TrianglePoints &tri)
 
void TriangleNormal (TrianglePoints &tri)
 

Public Attributes

TrianglePoints points
 The global position of a triangles vertices. More...
 
double area
 The area of a triangle. More...
 
fcl::Vec3f normal
 The normal vector of a triangle. More...
 

Detailed Description

Helper class to save triangle information.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

hpp::affordance::Triangle::Triangle ( )
inline

◆ Triangle() [2/2]

hpp::affordance::Triangle::Triangle ( const TrianglePoints inPoints)
inline

Constructor that takes in a TrianglePoints object.

Member Function Documentation

◆ TriangleArea()

void hpp::affordance::Triangle::TriangleArea ( TrianglePoints tri)
inline

Computes the area of a triangle.

Parameters
triThe global position of a triangles vertices

◆ TriangleNormal()

void hpp::affordance::Triangle::TriangleNormal ( TrianglePoints tri)
inline

Computes the normal vector of a triangle based on the global position of its vertices. The normal is subject to convention!

Parameters
triThe global position of a triangles vertices

Member Data Documentation

◆ area

double hpp::affordance::Triangle::area

The area of a triangle.

◆ normal

fcl::Vec3f hpp::affordance::Triangle::normal

The normal vector of a triangle.

◆ points

TrianglePoints hpp::affordance::Triangle::points

The global position of a triangles vertices.


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