598d06443e
- aggiornamento e nuovi prototipi.
44 lines
1.6 KiB
C++
44 lines
1.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2017-2017
|
|
//----------------------------------------------------------------------------
|
|
// File : EGkIntersPlaneSurfTm.h Data : 16.10.17 Versione : 1.8j4
|
|
// Contenuto : Dichiarazione delle funzioni intersezione Piano/SurfTriMesh.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 16.10.17 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkSurfTriMesh.h"
|
|
#include "/EgtDev/Include/EGkHashGrids1d.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
|
|
|
|
//-----------------------------------------------------------------------------
|
|
EGK_EXPORT bool IntersPlaneSurfTm( const Plane3d& plPlane, const ISurfTriMesh& Stm,
|
|
PNTVECTOR& vPnt, BIPNTVECTOR& vBpt, TRIA3DVECTOR& vTria) ;
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class IntersParPlanesSurfTm
|
|
{
|
|
public :
|
|
EGK_EXPORT IntersParPlanesSurfTm( const Frame3d& frPlanes, const ISurfTriMesh& Stm) ;
|
|
EGK_EXPORT bool GetInters( double dDist, PNTVECTOR& vPnt, BIPNTVECTOR& vBpt, TRIA3DVECTOR& vTria) const ;
|
|
|
|
private :
|
|
bool m_bOk ;
|
|
const Frame3d m_frPlanes ;
|
|
const ISurfTriMesh* m_pSTm ;
|
|
HashGrids1d m_HGrids ;
|
|
} ; |