EgtMachKernel 1.6h3 :
- piccoli adattamenti - Count invece di Num o Nbr.
This commit is contained in:
+3
-3
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user