EgtMachKernel :
- conservazione temp prop in Operation per curve. - migliorie intersezioni trimesh con piano.
This commit is contained in:
@@ -1345,6 +1345,9 @@ Operation::ApproxWithArcsIfUseful( ICurveComposite* pCompo, bool bCareTempProp)
|
||||
pCompo->GetExtrusion( vtExtr) ;
|
||||
double dThick = 0 ;
|
||||
pCompo->GetThickness( dThick) ;
|
||||
// recupero le proprietà temporanee
|
||||
int nProp0 = pCompo->GetTempProp( 0) ;
|
||||
int nProp1 = pCompo->GetTempProp( 1) ;
|
||||
// verifico se ci sono tante linee corte
|
||||
int nSmallLineCnt = 0 ;
|
||||
const ICurve* pCrv = pCompo->GetFirstCurve() ;
|
||||
@@ -1440,6 +1443,10 @@ Operation::ApproxWithArcsIfUseful( ICurveComposite* pCompo, bool bCareTempProp)
|
||||
pCompo->SetExtrusion( vtExtr) ;
|
||||
pCompo->SetThickness( dThick) ;
|
||||
|
||||
// riassegno le proprietà temporanee
|
||||
pCompo->SetTempProp( nProp0, 0) ;
|
||||
pCompo->SetTempProp( nProp1, 1) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user