EgtExecutor 1.6f4 :

- ApproxCurve con nuove opzioni
- aggiunta funzione ExeSetMachiningParam.
This commit is contained in:
Dario Sassi
2015-06-30 14:00:47 +00:00
parent ff53dcb8e3
commit 57d69257f1
5 changed files with 84 additions and 2 deletions
+3 -1
View File
@@ -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) ;
}