Struct representing a triangle.
More...
#include <STLReader.h>
|
| Vector3d | getVertex1 () const |
| | Get the first vertex of the triangle.
|
| |
| const Vector3d & | getVertex2 () const |
| | Get the second vertex of the triangle.
|
| |
| const Vector3d & | getVertex3 () const |
| | Get the third vertex of the triangle.
|
| |
| const Vector3d & | getNormal () const |
| | Get the normal of the triangle.
|
| |
| Vector3d | getCentroid () const |
| | Calculate the centroid of the triangle.
|
| |
| double | getArea () const |
| | Calculate the area of the triangle.
|
| |
|
| Vector3d | normal |
| | Normal vector of the triangle.
|
| |
| Vector3d | v1 |
| |
| Vector3d | v2 |
| |
| Vector3d | v3 |
| | Vertices of the triangle.
|
| |
Struct representing a triangle.
◆ getArea()
| double Triangle::getArea |
( |
| ) |
const |
|
inline |
Calculate the area of the triangle.
- Returns
- The area of the triangle
◆ getCentroid()
| Vector3d Triangle::getCentroid |
( |
| ) |
const |
|
inline |
Calculate the centroid of the triangle.
- Returns
- The centroid of the triangle
◆ getNormal()
| const Vector3d & Triangle::getNormal |
( |
| ) |
const |
|
inline |
Get the normal of the triangle.
- Returns
- The normal vector of the triangle
◆ getVertex1()
| Vector3d Triangle::getVertex1 |
( |
| ) |
const |
|
inline |
Get the first vertex of the triangle.
- Returns
- The first vertex (v1)
◆ getVertex2()
| const Vector3d & Triangle::getVertex2 |
( |
| ) |
const |
|
inline |
Get the second vertex of the triangle.
- Returns
- The second vertex (v2)
◆ getVertex3()
| const Vector3d & Triangle::getVertex3 |
( |
| ) |
const |
|
inline |
Get the third vertex of the triangle.
- Returns
- The third vertex (v3)
◆ normal
| Vector3d Triangle::normal |
Normal vector of the triangle.
◆ v1
◆ v2
◆ v3
Vertices of the triangle.
The documentation for this struct was generated from the following file: