EgtExecutor :
- aggiunta ExeGetCurveCompoJointCount - migliorata ExePackPartCluster.
This commit is contained in:
@@ -1013,6 +1013,23 @@ ExeModifyCurveCompoJoint( int nId, int nU, const Point3d& ptP, int nRefType)
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
int
|
||||
ExeGetCurveCompoJointCount( int nId)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, 0)
|
||||
// recupero la curva composita
|
||||
ICurveComposite* pCompo = GetCurveComposite( pGeomDB->GetGeoObj( nId)) ;
|
||||
if ( pCompo == nullptr)
|
||||
return 0 ;
|
||||
// calcolo il numero di giunzioni (se chiusa è uguale al numero delle curve altrimenti -1)
|
||||
if ( pCompo->IsClosed())
|
||||
return pCompo->GetCurveCount() ;
|
||||
else
|
||||
return ( pCompo->GetCurveCount() - 1) ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
bool
|
||||
ExeRemoveCurveCompoJoint( int nId, int nU)
|
||||
|
||||
Reference in New Issue
Block a user