EgtGeomKernel 1.5g1 :

- alle curve aggiunto il metodo CopyParamRange (per curve chiuse ammatte range che passano dal punto di chiusura)
- trasformato il metodo Copy di tutti gli oggetti geometrici in CopyFrom
- a TSC aggiunte funzioni CopyCurveByParamRange e SplitCurveByClass
- migliorata gestione intersezioni sovrapposte
- aggiunta classificazione parti di curva (IN,OUT,ONP,ONM) da intersezioni con altra curva chiusa.
This commit is contained in:
Dario Sassi
2014-07-05 07:19:12 +00:00
parent 15f819fe31
commit 73fe8e7a89
28 changed files with 739 additions and 147 deletions
+4 -4
View File
@@ -324,7 +324,7 @@ SurfTriMesh::Clone( void) const
// alloco oggetto
SurfTriMesh* pStm = new(nothrow) SurfTriMesh ;
if ( pStm != nullptr) {
if ( ! pStm->Copy( *this)) {
if ( ! pStm->CopyFrom( *this)) {
delete pStm ;
return nullptr ;
}
@@ -335,17 +335,17 @@ SurfTriMesh::Clone( void) const
//----------------------------------------------------------------------------
bool
SurfTriMesh::Copy( const IGeoObj* pGObjSrc)
SurfTriMesh::CopyFrom( const IGeoObj* pGObjSrc)
{
const SurfTriMesh* pStm = dynamic_cast<const SurfTriMesh*>( pGObjSrc) ;
if ( pStm == nullptr)
return false ;
return Copy( *pStm) ;
return CopyFrom( *pStm) ;
}
//----------------------------------------------------------------------------
bool
SurfTriMesh::Copy( const SurfTriMesh& stmSrc)
SurfTriMesh::CopyFrom( const SurfTriMesh& stmSrc)
{
if ( &stmSrc == this)
return true ;