Include :

- modificata Validate di Triangle3d
- aggiunta interfaccia per gestione blocchi di visualizzazione di Zmap.
This commit is contained in:
Dario Sassi
2017-02-02 08:32:44 +00:00
parent a02d92fcc9
commit dbed7be67d
2 changed files with 6 additions and 3 deletions
+4 -3
View File
@@ -39,10 +39,11 @@ class Triangle3d
return false ;
Vector3d vtV = ( ptP[1] - ptP[0]) ^ ( ptP[2] - ptP[0]) ;
vtV.Normalize() ;
bool bOk = ( vtN.IsZero() || AreSameVectorApprox( vtV, vtN)) ;
if ( bOverwrite)
if ( vtN.IsZero() || bOverwrite) {
vtN = vtV ;
return bOk ;
return true ;
}
return AreSameVectorApprox( vtV, vtN) ;
}
bool ToGlob( const Frame3d& frRef)
{ return ( ptP[0].ToGlob( frRef) && ptP[1].ToGlob( frRef) && ptP[2].ToGlob( frRef)) ; }
+2
View File
@@ -31,6 +31,8 @@ class __declspec( novtable) IVolZmap : public IGeoObj
virtual bool CreateFromFlatRegion( const ISurfFlatRegion& Surf, double dDimZ, double dPrec, bool bTriDex) = 0 ;
virtual bool CreateFromTriMesh( const ISurfTriMesh& Surf, double dPrec, bool bTriDex) = 0 ;
virtual bool GetAllTriangles( TRIA3DLIST& lstTria) const = 0 ;
virtual bool GetBlockTriangles( int nBlock, TRIA3DLIST& lstTria) const = 0 ;
virtual bool GetBlockInfo( std::vector<bool> & bModified) const = 0 ;
virtual bool GetDexelLines( int nDir, int nPos1, int nPos2, POLYLINELIST& lstPL) const = 0 ;
virtual bool SetTolerances( double dLinTol, double dAngTolDeg = 90) = 0 ;
virtual bool SetStdTool( const std::string& pToolName, double dH, double dR, double dCornR) = 0 ;