EgtGeomKernel 1.6g6 :
- gestione dei Dump con unità di misura (mm o inch) per interfaccia.
This commit is contained in:
+7
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user