CCCoreLib 31 May 2022
CloudCompare Core algorithms
|
A simple triangle class. More...
#include <SimpleTriangle.h>
Public Member Functions | |
SimpleRefTriangle () | |
Default constructor. | |
SimpleRefTriangle (const CCVector3 *_A, const CCVector3 *_B, const CCVector3 *_C) | |
Constructor from 3 vertices (references to) 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 | |
const CCVector3 * | A |
A vertex (ref) | |
const CCVector3 * | B |
B vertex (ref) | |
const CCVector3 * | C |
C vertex (ref) | |
A simple triangle class.
Implements the GenericTriangle class with references to 3D points. WARNING: make sure that references don't point to temporary objects! WARNING: not compatible with parallelization.
|
inline |
Constructor from 3 vertices (references to)
_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.