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