EgtExecutor 1.6t3 :
- CompoChain prende estrusione di prima curva - aggiunte Exe e Lua GetCurveLinearConvexHullXY e CurveMinAreaRectangleXY.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user