EgtExecutor 1.6t3 :

- CompoChain prende estrusione di prima curva
- aggiunte Exe e Lua GetCurveLinearConvexHullXY e CurveMinAreaRectangleXY.
This commit is contained in:
Dario Sassi
2016-08-25 15:56:36 +00:00
parent 61f65bfe2a
commit 4de59fbd33
11 changed files with 177 additions and 27 deletions
+4 -4
View File
@@ -770,9 +770,9 @@ LuaCreateCurveCompoByApproximation( lua_State* L)
PNTVECTOR vPnt ;
LuaCheckParam( L, 2, vPnt)
int nType ;
LuaGetParam( L, 3, nType) ;
LuaCheckParam( L, 3, nType)
double dLinTol ;
LuaGetParam( L, 4, dLinTol) ;
LuaCheckParam( L, 4, dLinTol)
int nRefType = RTY_DEFAULT ;
LuaGetParam( L, 5, nRefType) ;
LuaClearStack( L) ;
@@ -805,7 +805,7 @@ LuaCreateCurveCompoFromPoints( lua_State* L)
PolyLine PL ;
// creo una polilinea a partire dai punti
for ( size_t i = 0 ; i < vPnt.size() ; ++ i)
PL.AddUPoint( 0, vPnt[i]) ;
PL.AddUPoint( double( i), vPnt[i]) ;
// creo la curva composita
int nId = ExeCreateCurveCompoFromPoints( nParentId, PL, nRefType) ;
// restituisco il risultato
@@ -831,7 +831,7 @@ LuaCreateCurveCompoFromPointBulges( lua_State* L)
// creo un poliarco a partire dai punti con bulge
PolyArc PA ;
for ( size_t i = 0 ; i < vPntB.size() ; ++ i)
PA.AddUPoint( 0, vPntB[i].first, vPntB[i].second) ;
PA.AddUPoint( double( i), vPntB[i].first, vPntB[i].second) ;
// creo la curva composita
int nId = ExeCreateCurveCompoFromPointBulges( nParentId, PA, nRefType) ;
// restituisco il risultato