EgtGeomKernel 1.6g6 :

- gestione dei Dump con unità di misura (mm o inch) per interfaccia.
This commit is contained in:
Dario Sassi
2015-07-22 20:36:06 +00:00
parent 3226e030c8
commit d0d5146f99
29 changed files with 77 additions and 64 deletions
+7 -6
View File
@@ -20,9 +20,10 @@
#include "DistPointLine.h"
#include "Triangulate.h"
#include "GeoConst.h"
#include "\EgtDev\Include\EGkStringUtils3d.h"
#include "\EgtDev\Include\EGkPointGrid3d.h"
#include "\EgtDev\Include\EGkPolyLine.h"
#include "/EgtDev/Include/EGkPointGrid3d.h"
#include "/EgtDev/Include/EGkPolyLine.h"
#include "/EgtDev/Include/EGkStringUtils3d.h"
#include "/EgtDev/Include/EGkUiUnits.h"
#include <new>
using namespace std ;
@@ -665,17 +666,17 @@ SurfTriMesh::GetTitle( void) const
//----------------------------------------------------------------------------
bool
SurfTriMesh::Dump( string& sOut, const char* szNewLine) const
SurfTriMesh::Dump( string& sOut, bool bMM, const char* szNewLine) const
{
// area
double dArea ;
GetArea( dArea) ;
sOut += "Area=" + ToString( dArea,1) + szNewLine ;
sOut += "Area=" + ToString( GetAreaInUiUnits( dArea, bMM),1) + szNewLine ;
// altri dati per superficie chiusa
if ( m_bClosed) {
double dVolume ;
GetVolume( dVolume) ;
sOut += "Closed Volume=" + ToString( dVolume,1) + szNewLine ;
sOut += "Closed Volume=" + ToString( GetVolumeInUiUnits( dVolume, bMM), 1) + szNewLine ;
}
// se segnalo eventuale incongruenza di orientamento
if ( ! m_bOriented)