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.
|
inline |
Computes the area of a triangle.
tri | The global position of a triangles vertices |
References a, b, c, hpp::affordance::TrianglePoints::p1, hpp::affordance::TrianglePoints::p2, and hpp::affordance::TrianglePoints::p3.
|
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 hpp::affordance::TrianglePoints::p1, hpp::affordance::TrianglePoints::p2, and hpp::affordance::TrianglePoints::p3.
double hpp::affordance::Triangle::area |
The area of a triangle.
fcl::Vec3f hpp::affordance::Triangle::normal |
The normal vector of a triangle.
TrianglePoints hpp::affordance::Triangle::points |
The global position of a triangles vertices.