EgtMachKernel 1.6h3 :

- piccoli adattamenti
- Count invece di Num o Nbr.
This commit is contained in:
Dario Sassi
2015-08-18 07:32:29 +00:00
parent 09a9dcf526
commit e2a7280a07
8 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -376,7 +376,7 @@ Sawing::VerifyGeometry( SelData Id, int& nSubs)
if ( Id.nSub == SEL_SUB_ALL) {
pCurve = ::GetCurve( m_pGeomDB->GetGeoObj( Id.nId)) ;
if ( pCurve != nullptr && pCurve->GetType() == CRV_COMPO)
nSubs = ::GetCurveComposite( pCurve)->GetCurveNumber() ;
nSubs = ::GetCurveComposite( pCurve)->GetCurveCount() ;
}
// altrimenti sottocurva di composita
else {
@@ -511,7 +511,7 @@ Sawing::Chain( int nGrpDestId)
return false ;
}
// se non sono state inserite curve, vado oltre
if ( pCrvCompo->GetCurveNumber() == 0)
if ( pCrvCompo->GetCurveCount() == 0)
continue ;
// imposto estrusione e spessore
pCrvCompo->SetExtrusion( vtExtr) ;
@@ -624,7 +624,7 @@ Sawing::PathApply( int nPathId, int nClId)
// ciclo sulle curve elementari
bool bClosed = pCompo->IsClosed() ;
int nMaxInd = pCompo->GetCurveNumber() - 1 ;
int nMaxInd = pCompo->GetCurveCount() - 1 ;
for ( int i = 0 ; i <= nMaxInd ; ++ i) {
// curva precedente
int j = (( i == 0 && bClosed) ? nMaxInd : i - 1) ;