EgtGeomKernel 1.8c4 :

- aggiunta funzione CopyAllInfoFrom per copiare tutte le info da una entità ad un'altra
- corretta funzione CurveComposite::MergeTwoCurves con archi.
This commit is contained in:
Dario Sassi
2017-04-04 07:34:28 +00:00
parent ff8da3d6de
commit d4fbe44da9
6 changed files with 213 additions and 174 deletions
+20
View File
@@ -2712,6 +2712,26 @@ GeomDB::RemoveInfo( int nId, const string& sKey)
return pGdbObj->RemoveInfo( sKey) ;
}
//----------------------------------------------------------------------------
bool
GeomDB::CopyAllInfoFrom( int nId, int nSouId)
{
// recupero l'oggetto destinazione
GdbObj* pGdbObj = GetGdbObj( nId) ;
if ( pGdbObj == nullptr)
return false ;
// recupero l'oggetto sorgente
GdbObj* pGdbObjSou = GetGdbObj( nSouId) ;
if ( pGdbObjSou == nullptr)
return false ;
// copio tutte le Info
if ( pGdbObj != pGdbObjSou && pGdbObjSou->m_pAttribs != nullptr)
return pGdbObj->m_pAttribs->CopyAllInfoFrom( *(pGdbObjSou->m_pAttribs)) ;
else
return true ;
}
//----------------------------------------------------------------------------
// TextureData
//----------------------------------------------------------------------------