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:
+4
-4
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user