Include :
- in ConvertCurveToComposite aggiunta gestione estrusione, spessore e proprietà temporanee.
This commit is contained in:
+13
-1
@@ -94,7 +94,19 @@ inline ICurveComposite* ConvertCurveToComposite( IGeoObj* pGObj)
|
||||
delete pGObj ;
|
||||
return nullptr ;
|
||||
}
|
||||
pCrvCo->AddCurve( static_cast<ICurve*>( pGObj)) ;
|
||||
ICurve* pCrv = static_cast<ICurve*>( pGObj) ;
|
||||
Vector3d vtExtr ;
|
||||
if ( pCrv->GetExtrusion( vtExtr) && ! vtExtr.IsSmall())
|
||||
pCrvCo->SetExtrusion( vtExtr) ;
|
||||
double dThick ;
|
||||
if ( pCrv->GetThickness( dThick) && abs( dThick) > EPS_SMALL)
|
||||
pCrvCo->SetThickness( dThick) ;
|
||||
for ( int i = 0 ; i < 2 ; ++ i) {
|
||||
int nProp = pCrv->GetTempProp( i) ;
|
||||
if ( nProp != 0)
|
||||
pCrvCo->SetTempProp( nProp, i) ;
|
||||
}
|
||||
pCrvCo->AddCurve( pCrv) ;
|
||||
return pCrvCo ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user