Helper class to save triangle information. More...
#include <hpp/affordance/affordance-extraction.hh>
Public Member Functions | |
Triangle () | |
Triangle (const TrianglePoints &inPoints) | |
Constructor that takes in a TrianglePoints object. More... | |
void | TriangleArea (TrianglePoints &tri) |
Computes the area of a triangle. More... | |
void | TriangleNormal (TrianglePoints &tri) |
Computes the normal vector of a triangle based on the global position of its vertices. More... | |
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... | |
Helper class to save triangle information.
|
inline |
|
inline |
Constructor that takes in a TrianglePoints object.
References points, TriangleArea(), and TriangleNormal().
|
inline |
Computes the area of a triangle.
tri | The global position of a triangles vertices |
References area, hpp::affordance::TrianglePoints::p1, hpp::affordance::TrianglePoints::p2, and hpp::affordance::TrianglePoints::p3.
Referenced by Triangle().
|
inline |
Computes the normal vector of a triangle based on the global position of its vertices.
The normal is subject to convention!
tri | The global position of a triangles vertices |
References normal, hpp::affordance::TrianglePoints::p1, hpp::affordance::TrianglePoints::p2, and hpp::affordance::TrianglePoints::p3.
Referenced by Triangle().
double hpp::affordance::Triangle::area |
The area of a triangle.
Referenced by TriangleArea().
fcl::Vec3f hpp::affordance::Triangle::normal |
The normal vector of a triangle.
Referenced by TriangleNormal().
TrianglePoints hpp::affordance::Triangle::points |
The global position of a triangles vertices.
Referenced by Triangle().