Rasterfarm-SDK
Loading...
Searching...
No Matches
Contour Namespace Reference

API for manipulating contour points. More...

Functions

template<class C , class S >
HeapArray< S > createSegments (const C &contour)
 
template<class VECTOR >
HeapArray< VECTOR >::iterator parallelAdjacentVertex (const typename HeapArray< VECTOR >::iterator &begin, const typename HeapArray< VECTOR >::iterator &end, float precision=0.0f)
 
template<class VECTOR >
HeapArray< VECTOR >::const_iterator duplicateVertex (const typename HeapArray< VECTOR >::const_iterator &begin, const typename HeapArray< VECTOR >::const_iterator &end, float precision=0.0f)
 
template<class C >
bool hasDuplicateVertices (const HeapArray< C > &vertex, float precision=0.0f)
 
template<class VECTOR >
void removeDuplicateVertices (HeapArray< VECTOR > *pVertex)
 
template<class VECTOR >
void removeParallelAdjacentVertices (HeapArray< VECTOR > *pVertex, float precision=0.0f)
 
template<class C >
bool hasParallelAdjacentVertices (HeapArray< C > vertex, float precision=0.0f)
 
template<class S >
bool sortSegmentsBySize (const S &left, const S &right)
 
template<typename T >
float getArea (const HeapArray< Vector< T, 2 > > &c)
 
template<typename T >
bool isClockWise (const HeapArray< Vector< T, 2 > > &vertex)
 

Detailed Description

API for manipulating contour points.

Function Documentation

◆ createSegments()

template<class C , class S >
HeapArray< S > Contour::createSegments ( const C & contour)

◆ duplicateVertex()

template<class VECTOR >
HeapArray< VECTOR >::const_iterator Contour::duplicateVertex ( const typename HeapArray< VECTOR >::const_iterator & begin,
const typename HeapArray< VECTOR >::const_iterator & end,
float precision = 0.0f )

◆ getArea()

template<typename T >
float Contour::getArea ( const HeapArray< Vector< T, 2 > > & c)

◆ hasDuplicateVertices()

template<class C >
bool Contour::hasDuplicateVertices ( const HeapArray< C > & vertex,
float precision = 0.0f )

◆ hasParallelAdjacentVertices()

template<class C >
bool Contour::hasParallelAdjacentVertices ( HeapArray< C > vertex,
float precision = 0.0f )

◆ isClockWise()

template<typename T >
bool Contour::isClockWise ( const HeapArray< Vector< T, 2 > > & vertex)

◆ parallelAdjacentVertex()

template<class VECTOR >
HeapArray< VECTOR >::iterator Contour::parallelAdjacentVertex ( const typename HeapArray< VECTOR >::iterator & begin,
const typename HeapArray< VECTOR >::iterator & end,
float precision = 0.0f )

◆ removeDuplicateVertices()

template<class VECTOR >
void Contour::removeDuplicateVertices ( HeapArray< VECTOR > * pVertex)

◆ removeParallelAdjacentVertices()

template<class VECTOR >
void Contour::removeParallelAdjacentVertices ( HeapArray< VECTOR > * pVertex,
float precision = 0.0f )

◆ sortSegmentsBySize()

template<class S >
bool Contour::sortSegmentsBySize ( const S & left,
const S & right )