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
@@ -137,7 +137,7 @@ ExtText::Clone( void) const
|
||||
// alloco oggetto
|
||||
ExtText* pGPt = new(nothrow) ExtText ;
|
||||
if ( pGPt != nullptr) {
|
||||
if ( ! pGPt->Copy( *this)) {
|
||||
if ( ! pGPt->CopyFrom( *this)) {
|
||||
delete pGPt ;
|
||||
return nullptr ;
|
||||
}
|
||||
@@ -148,17 +148,17 @@ ExtText::Clone( void) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ExtText::Copy( const IGeoObj* pGObjSrc)
|
||||
ExtText::CopyFrom( const IGeoObj* pGObjSrc)
|
||||
{
|
||||
const ExtText* pTxt = dynamic_cast<const ExtText*>( pGObjSrc) ;
|
||||
if ( pTxt == nullptr)
|
||||
return false ;
|
||||
return Copy( *pTxt) ;
|
||||
return CopyFrom( *pTxt) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ExtText::Copy( const ExtText& clSrc)
|
||||
ExtText::CopyFrom( const ExtText& clSrc)
|
||||
{
|
||||
if ( &clSrc == this)
|
||||
return true ;
|
||||
|
||||
Reference in New Issue
Block a user