CCCoreLib 31 May 2022
CloudCompare Core algorithms
|
A simple triangle class. More...
#include <SimpleTriangle.h>
Public Member Functions | |
SimpleTriangle () | |
Default constructor. | |
SimpleTriangle (const CCVector3 &_A, const CCVector3 &_B, const CCVector3 &_C) | |
Constructor from 3 vertices. More... | |
const CCVector3 * | _getA () const override |
Returns the first vertex (A) More... | |
const CCVector3 * | _getB () const override |
Returns the second vertex (B) More... | |
const CCVector3 * | _getC () const override |
Returns the third vertex (C) More... | |
Public Member Functions inherited from CCCoreLib::GenericTriangle | |
virtual | ~GenericTriangle ()=default |
Default destructor. | |
virtual const CCVector3 * | _getA () const =0 |
Returns the first vertex (A) More... | |
virtual const CCVector3 * | _getB () const =0 |
Returns the second vertex (B) More... | |
virtual const CCVector3 * | _getC () const =0 |
Returns the third vertex (C) More... | |
Public Attributes | |
CCVector3 | A |
A vertex. | |
CCVector3 | B |
B vertex. | |
CCVector3 | C |
C vertex. | |
A simple triangle class.
Implements the GenericTriangle class with a triplet of 3D points. Relies on direct storage for speed enhancement and parallelization!
|
inline |
Constructor from 3 vertices.
_A | first vertex |
_B | second vertex |
_C | third vertex |
|
inlineoverridevirtual |
Returns the first vertex (A)
Implements CCCoreLib::GenericTriangle.
|
inlineoverridevirtual |
Returns the second vertex (B)
Implements CCCoreLib::GenericTriangle.
|
inlineoverridevirtual |
Returns the third vertex (C)
Implements CCCoreLib::GenericTriangle.