27 #ifndef __ND_POLYGONSOUP_BUILDER_H__
28 #define __ND_POLYGONSOUP_BUILDER_H__
30 #include "ndCoreStdafx.h"
44 ndInt64 m_edgeMap[256];
59 D_CORE_API
virtual void Begin();
60 D_CORE_API
virtual void End(
bool optimize);
61 D_CORE_API
virtual void AddFace(
const ndFloat32*
const vertex, ndInt32 strideInBytes, ndInt32 vertexCount,
const ndInt32 faceId);
62 D_CORE_API
virtual void AddFaceIndirect(
const ndFloat32*
const vertex, ndInt32 strideInBytes, ndInt32 faceId,
const ndInt32*
const indexArray, ndInt32 indexCount);
64 D_CORE_API
void LoadPLY(
const char*
const fileName);
65 D_CORE_API
void SavePLY(
const char*
const fileName)
const;
71 void OptimizeByIndividualFaces();
72 void FinalizeAndOptimize(ndInt32
id);
73 ndInt32 FilterFace (ndInt32 count, ndInt32*
const indexArray);
74 ndInt32 AddConvexFace (ndInt32 count, ndInt32*
const indexArray, ndInt32*
const facesArray);