da7bfcbba3
- aggiunta interfaccia per interpolazione di punti con curve.
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : EGkStmFromTriangleSoup.h Data : 19.05.14 Versione : 1.5e7
|
|
// Contenuto : Dichiarazione della classe StmFromTriangleSoup.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 19.05.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkSurfTriMesh.h"
|
|
#include "/EgtDev/Include/EGkPointGrid3d.h"
|
|
|
|
//----------------------- Macro per import/export ----------------------------
|
|
#undef EGK_EXPORT
|
|
#if defined( I_AM_EGK) // da definirsi solo nella DLL
|
|
#define EGK_EXPORT __declspec( dllexport)
|
|
#else
|
|
#define EGK_EXPORT __declspec( dllimport)
|
|
#endif
|
|
|
|
//----------------------------------------------------------------------------
|
|
class StmFromTriangleSoup
|
|
{
|
|
public :
|
|
EGK_EXPORT static const int GRID_STD_BUCKETS = 50000 ;
|
|
|
|
public :
|
|
EGK_EXPORT StmFromTriangleSoup( void) ;
|
|
EGK_EXPORT ~StmFromTriangleSoup( void) ;
|
|
EGK_EXPORT bool Start( int nBuckets = GRID_STD_BUCKETS) ;
|
|
EGK_EXPORT bool AddTriangle( const Triangle3d& Tria) ;
|
|
EGK_EXPORT bool End( void) ;
|
|
EGK_EXPORT ISurfTriMesh* GetSurf( void) ;
|
|
|
|
private :
|
|
ISurfTriMesh* m_pSTM ;
|
|
PointGrid3d m_VertGrid ;
|
|
} ;
|