EgtExecutor 1.6f4 :
- ApproxCurve con nuove opzioni - aggiunta funzione ExeSetMachiningParam.
This commit is contained in:
@@ -781,7 +781,9 @@ ExeApproxCurve( int nId, int nApprType, double dLinTol)
|
||||
const double ANG_TOL_MAX_DEG = 90 ;
|
||||
PtrOwner<ICurveComposite> pCC( CreateCurveComposite()) ;
|
||||
bOk = bOk && ! IsNull( pCC) ;
|
||||
if ( nApprType == APP_LINES || nApprType == APP_LEFT_LINES || nApprType == APP_RIGHT_LINES) {
|
||||
if ( nApprType == APP_LINES ||
|
||||
nApprType == APP_LEFT_LINES || nApprType == APP_LEFT_CONVEX_LINES ||
|
||||
nApprType == APP_RIGHT_LINES || nApprType == APP_RIGHT_CONVEX_LINES) {
|
||||
PolyLine PL ;
|
||||
bOk = bOk && pCurve->ApproxWithLines( dLinTol, ANG_TOL_MAX_DEG, nApprType, PL) && pCC->FromPolyLine( PL) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user