26 #include "../system/FreestyleConfig.h"
28 #ifdef WITH_CXX_GUARDEDALLOC
66 static void SortIndexedVertexArray(
const float *iVertices,
68 const unsigned *iIndices,
94 static void CompressIndexedVertexArray(
const float *iVertices,
96 const unsigned *iIndices,
100 unsigned **oIndices);
122 static void SortAndCompressIndexedVertexArray(
const float *iVertices,
124 const unsigned *iIndices,
128 unsigned **oIndices);
151 static void CleanIndexedVertexArray(
const float *iVertices,
153 const unsigned *iIndices,
157 unsigned **oIndices);
159 #ifdef WITH_CXX_GUARDEDALLOC
160 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:GeomCleaner")
225 _Vector = iv._Vector;
238 return (_Vector <
v._Vector);
243 return (_Vector ==
v._Vector);
246 #ifdef WITH_CXX_GUARDEDALLOC
247 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:IndexedVertex")
252 bool operator<(
const IndexedVertex &iv1,
const IndexedVertex &iv2)
254 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)