12 #include "../system/FreestyleConfig.h"
14 #ifdef WITH_CXX_GUARDEDALLOC
52 static void SortIndexedVertexArray(
const float *iVertices,
54 const unsigned *iIndices,
80 static void CompressIndexedVertexArray(
const float *iVertices,
82 const unsigned *iIndices,
108 static void SortAndCompressIndexedVertexArray(
const float *iVertices,
110 const unsigned *iIndices,
114 unsigned **oIndices);
137 static void CleanIndexedVertexArray(
const float *iVertices,
139 const unsigned *iIndices,
143 unsigned **oIndices);
145 #ifdef WITH_CXX_GUARDEDALLOC
146 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:GeomCleaner")
211 _Vector = iv._Vector;
224 return (_Vector <
v._Vector);
229 return (_Vector ==
v._Vector);
232 #ifdef WITH_CXX_GUARDEDALLOC
233 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:IndexedVertex")
238 bool operator<(
const IndexedVertex &iv1,
const IndexedVertex &iv2)
240 return iv1.operator<(iv2);
Vectors and Matrices (useful type definitions)
Read Guarded memory(de)allocation.
ATTR_WARN_UNUSED_RESULT const BMVert * v
void setIndex(unsigned iIndex)
const Vec3f & vector() const
IndexedVertex(Vec3f iVector, unsigned iIndex)
float operator[](const unsigned i)
void setVector(const Vec3f &iVector)
IndexedVertex & operator=(const IndexedVertex &iv)
bool operator<(const IndexedVertex &v) const
bool operator==(const IndexedVertex &v)
constexpr bool operator<(StringRef a, StringRef b)