Include :

- aggiornamento prototipi.
This commit is contained in:
Dario Sassi
2019-07-23 13:56:33 +00:00
parent 4e840db0b3
commit 653ffaec51
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -101,6 +101,10 @@ class Plane3d
{ if ( AreSameFrame( frOri, frDest))
return true ;
return ( ToGlob( frOri) && ToLoc( frDest)) ; }
void Offset( double dDist)
{ m_dDist += dDist ; }
void Invert( void)
{ m_dDist = - m_dDist ; m_vtN = - m_vtN ; }
private :
Vector3d m_vtN ;
double m_dDist ;
+5 -1
View File
@@ -1,13 +1,14 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2019
//----------------------------------------------------------------------------
// File : Polygon3d.h Data : 19.06.19 Versione : 2.1f2
// File : Polygon3d.h Data : 23.07.19 Versione : 2.1g3
// Contenuto : Dichiarazione della classe Polygon3d (poligono nello spazio).
//
//
//
// Modifiche : 30.08.15 DS Creazione modulo.
// 19.06.19 DS Aggiunta GetVertices.
// 23.07.19 Ds Aggiunte Offset e Invert.
//
//----------------------------------------------------------------------------
@@ -61,6 +62,9 @@ class Polygon3d
EGK_EXPORT bool ToGlob( const Frame3d& frRef) ;
EGK_EXPORT bool ToLoc( const Frame3d& frRef) ;
EGK_EXPORT bool LocToLoc( const Frame3d& frOri, const Frame3d& frDest) ;
EGK_EXPORT void Offset( double dDist)
{ Translate( dDist * m_Plane.GetVersN()) ; }
EGK_EXPORT void Invert( void) ;
private :
Plane3d m_Plane ; // piano in cui giace il poligono