Skip to content

Class SFCGAL::Triangle#

ClassList > SFCGAL > Triangle

More...

  • #include <Triangle.h>

Inherits the following classes: SFCGAL::Surface

Public Functions#

Type Name
Triangle ()
Triangle (const Kernel::Triangle_2 & triangle)
Triangle (const Kernel::Triangle_3 & triangle)
Triangle (const Point & p, const Point & q, const Point & r)
Triangle (const Triangle & other)
void accept (GeometryVisitor & visitor) override
void accept (ConstGeometryVisitor & visitor) override const
Triangle * clone () override const
int coordinateDimension () override const
auto dropM () override
auto dropZ () override
std::string geometryType () override const
GeometryType geometryTypeId () override const
bool is3D () override const
bool isEmpty () override const
bool isMeasured () override const
Triangle & operator= (const Triangle & other)
void reverse ()
void serialize (Archive & ar, const unsigned int)
auto swapXY () override
Polygon toPolygon () const
Kernel::Triangle_2 toTriangle_2 () const
Kernel::Triangle_3 toTriangle_3 () const
detail::TypeForDimension< D >::Triangle toTriangle_d () const
const Point & vertex (const int & i) const
Point & vertex (const int & i)
~Triangle ()

Public Functions inherited from SFCGAL::Surface#

See SFCGAL::Surface

Type Name
int dimension () override const
virtual ~Surface ()

Protected Functions inherited from SFCGAL::Surface#

See SFCGAL::Surface

Type Name
Surface ()
Surface (Surface const & other)

Detailed Description#

[OGC/SFA]Triangle

Warning:

According to SFA, a Triangle should be inherited from a Polygon. That means that a triangle "is a" Polygon with hole. This inheritance is removed in order to keep CGAL modeling.

Warning:

An empty triangle has empty points

Public Functions Documentation#

function Triangle [1/5]#

SFCGAL::Triangle::Triangle () 

empty Triangle constructor


function Triangle [2/5]#

SFCGAL::Triangle::Triangle (
    const Kernel::Triangle_2 & triangle
) 

Constructor with a CGAL triangle


function Triangle [3/5]#

SFCGAL::Triangle::Triangle (
    const Kernel::Triangle_3 & triangle
) 

Constructor with a CGAL triangle


function Triangle [4/5]#

SFCGAL::Triangle::Triangle (
    const Point & p,
    const Point & q,
    const Point & r
) 

constructor with 3 points


function Triangle [5/5]#

SFCGAL::Triangle::Triangle (
    const Triangle & other
) 

copy constructor


function accept [1/2]#

void SFCGAL::Triangle::accept (
    GeometryVisitor & visitor
) override

function accept [2/2]#

void SFCGAL::Triangle::accept (
    ConstGeometryVisitor & visitor
) override const

function clone#

Triangle * SFCGAL::Triangle::clone () override const

function coordinateDimension#

int SFCGAL::Triangle::coordinateDimension () override const

function dropM#

auto SFCGAL::Triangle::dropM () override

function dropZ#

auto SFCGAL::Triangle::dropZ () override

function geometryType#

std::string SFCGAL::Triangle::geometryType () override const

function geometryTypeId#

GeometryType SFCGAL::Triangle::geometryTypeId () override const

function is3D#

bool SFCGAL::Triangle::is3D () override const

function isEmpty#

bool SFCGAL::Triangle::isEmpty () override const

function isMeasured#

bool SFCGAL::Triangle::isMeasured () override const

function operator=#

Triangle & SFCGAL::Triangle::operator= (
    const Triangle & other
) 

assign operator


function reverse#

void SFCGAL::Triangle::reverse () 

reverse Triangle orientation


function serialize#

template<class Archive>
inline void SFCGAL::Triangle::serialize (
    Archive & ar,
    const unsigned int
) 

Serializer


function swapXY#

auto SFCGAL::Triangle::swapXY () override

function toPolygon#

Polygon SFCGAL::Triangle::toPolygon () const

convert a triangle to a polygon


function toTriangle_2#

inline Kernel::Triangle_2 SFCGAL::Triangle::toTriangle_2 () const

Convert to CGAL::Triangle_2


function toTriangle_3#

inline Kernel::Triangle_3 SFCGAL::Triangle::toTriangle_3 () const

Convert to CGAL::Triangle_3


function toTriangle_d#

template<int D>
inline detail::TypeForDimension < D > ::Triangle SFCGAL::Triangle::toTriangle_d () const

Convert to CGAL::Triangle_2 or CGAL::Triangle_2


function vertex [1/2]#

inline const Point & SFCGAL::Triangle::vertex (
    const int & i
) const

returns the i-th vertex


function vertex [2/2]#

inline Point & SFCGAL::Triangle::vertex (
    const int & i
) 

returns the i-th vertex


function ~Triangle#

SFCGAL::Triangle::~Triangle () 

destructor



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/Triangle.h