Rasterfarm-SDK
Loading...
Searching...
No Matches
contour.h File Reference
#include "utils.h"
#include "circulator.h"
#include "vector.h"

Namespaces

namespace  Contour
 API for manipulating contour points.
 

Macros

#define CONTOUR_NAMESPACE_BEGIN    ENGINE_NAMESPACE_BEGIN namespace Contour {
 
#define CONTOUR_NAMESPACE_END    ENGINE_NAMESPACE_END }
 

Functions

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

Macro Definition Documentation

◆ CONTOUR_NAMESPACE_BEGIN

#define CONTOUR_NAMESPACE_BEGIN    ENGINE_NAMESPACE_BEGIN namespace Contour {

◆ CONTOUR_NAMESPACE_END

#define CONTOUR_NAMESPACE_END    ENGINE_NAMESPACE_END }