EgtExecutor :

- aggiunta funzione Exe e Lua MoveCurveCompoCurve.
This commit is contained in:
Dario Sassi
2021-04-05 16:25:43 +00:00
parent 8d218b85b7
commit 53575c745b
2 changed files with 53 additions and 1 deletions
+21
View File
@@ -712,6 +712,26 @@ LuaRemoveCurveCompoJoint( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaMoveCurveCompoCurve( lua_State* L)
{
// 3 o 4 parametri : Id, nCrv, vtMove [, nRefType]
int nId ;
LuaCheckParam( L, 1, nId)
int nCrv ;
LuaCheckParam( L, 2, nCrv)
Vector3d vtMove ;
LuaCheckParam( L, 3, vtMove)
int nRefType = RTY_DEFAULT ;
LuaGetParam( L, 4, nRefType) ;
LuaClearStack( L) ;
// muovo la curva
bool bOk = ExeMoveCurveCompoCurve( nId, nCrv, vtMove, nRefType) ;
LuaSetParam( L, bOk) ;
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaModifyCurveCompoCurveToArc( lua_State* L)
@@ -882,6 +902,7 @@ LuaInstallGdbModifyCurve( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtAddCurveCompoJoint", LuaAddCurveCompoJoint) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtModifyCurveCompoJoint", LuaModifyCurveCompoJoint) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtRemoveCurveCompoJoint", LuaRemoveCurveCompoJoint) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtMoveCurveCompoCurve", LuaMoveCurveCompoCurve) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtModifyCurveCompoCurveToArc", LuaModifyCurveCompoCurveToArc) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtModifyCurveCompoCurveToLine", LuaModifyCurveCompoCurveToLine) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtExplodeCurveCompo", LuaExplodeCurveCompo) ;