EgtGeomKernel :

- piccole correzioni
- tolti commenti.
This commit is contained in:
Daniele Bariletti
2024-09-10 09:17:59 +02:00
parent 8e22267476
commit 0cc63d40eb
2 changed files with 4 additions and 2 deletions
+4
View File
@@ -75,7 +75,11 @@ class SurfBezier : public ISurfBezier, public IGeoObjRW
bool GetVolume( double& dVolume) const override
{ if ( &dVolume == nullptr)
return false ;
if( m_pSTM == nullptr)
GetAuxSurf() ;
dVolume = 0 ;
if( m_pSTM != nullptr)
m_pSTM->GetVolume( dVolume) ;
return true ; }
bool GetCentroid( Point3d& ptCen) const override ;
bool Invert( void) override ;
-2
View File
@@ -2835,12 +2835,10 @@ SurfTriMesh::CreateByScrewing( const PolyLine& PL, const Point3d& ptAx, const Ve
// verifico che la polilinea non attraversi l'asse di rivoluzione o lo tocchi in punti interni
PolyLine MyPL = PL ;
// commented for debug
if ( ! VeryfyPolylineForRevolution( MyPL, ptAx, vtAx) && ! AdjustPolylineForRevolution( MyPL, ptAx, vtAx)) {
LOG_ERROR( GetEGkLogger(), "StmCreateByRevolution : polyline inside meets axis")
return false ;
}
// commented for debug
// imposto ricalcolo
m_nStatus = ERR ;