CCCoreLib 31 May 2022
CloudCompare Core algorithms
Public Member Functions | Public Attributes | List of all members
CCCoreLib::SimpleRefTriangle Class Reference

A simple triangle class. More...

#include <SimpleTriangle.h>

Inheritance diagram for CCCoreLib::SimpleRefTriangle:
Inheritance graph
[legend]
Collaboration diagram for CCCoreLib::SimpleRefTriangle:
Collaboration graph
[legend]

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 CCVector3A
 A vertex (ref)
 
const CCVector3B
 B vertex (ref)
 
const CCVector3C
 C vertex (ref)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SimpleRefTriangle()

CCCoreLib::SimpleRefTriangle::SimpleRefTriangle ( const CCVector3 _A,
const CCVector3 _B,
const CCVector3 _C 
)
inline

Constructor from 3 vertices (references to)

Parameters
_Afirst vertex
_Bsecond vertex
_Cthird vertex

Member Function Documentation

◆ _getA()

const CCVector3 * CCCoreLib::SimpleRefTriangle::_getA ( ) const
inlineoverridevirtual

Returns the first vertex (A)

Implements CCCoreLib::GenericTriangle.

◆ _getB()

const CCVector3 * CCCoreLib::SimpleRefTriangle::_getB ( ) const
inlineoverridevirtual

Returns the second vertex (B)

Implements CCCoreLib::GenericTriangle.

◆ _getC()

const CCVector3 * CCCoreLib::SimpleRefTriangle::_getC ( ) const
inlineoverridevirtual

Returns the third vertex (C)

Implements CCCoreLib::GenericTriangle.


The documentation for this class was generated from the following file: