23bb013dec
- aggiunti prototipi per Polygon3d, per IntersPlanePlane e per Inters3Planes - aggiornati Plane3d e IntersLinePlane.
37 lines
1.5 KiB
C
37 lines
1.5 KiB
C
//----------------------------------------------------------------------------
|
|
// EgalTech 2017-2017
|
|
//----------------------------------------------------------------------------
|
|
// File : EGkIntersPlanePlane.h Data : 15.10.17 Versione : 1.8j3
|
|
// Contenuto : Dichiarazione della classe intersezione piano/piano.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 15.10.17 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkPlane3d.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 int IntersPlanePlane( const Plane3d& plPlane1, const Plane3d& plPlane2,
|
|
Point3d& ptInt, Vector3d& vtDir) ;
|
|
EGK_EXPORT int Inters3Planes( const Plane3d& plPlane1, const Plane3d& plPlane2, const Plane3d& plPlane3,
|
|
Point3d& ptInt) ;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Tipo di intersezione piano-piano
|
|
const int IPPT_NO = 0 ; // non c'è intersezione (piani paralleli)
|
|
const int IPPT_OVERLAPS = 1 ; // piani coincidenti
|
|
const int IPPT_YES = 2 ; // intersezione
|
|
|