EgtExecutor :

- aggiunta ExeGetCurveCompoJointCount
- migliorata ExePackPartCluster.
This commit is contained in:
Dario Sassi
2016-02-22 18:35:57 +00:00
parent 28f6f1240f
commit 3bfb359101
2 changed files with 55 additions and 17 deletions
+17
View File
@@ -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)