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