EgtExecutor 2.1a6 :

- aggiunta a Exe e Lua funzione CutVolZmapPlane
- modifica a ExeCreateSurfTmByVolZmap per allineamento con libreria.
This commit is contained in:
Dario Sassi
2019-01-25 08:01:57 +00:00
parent 8b896c489f
commit 0274b9cc24
4 changed files with 57 additions and 1 deletions
+22
View File
@@ -383,6 +383,27 @@ LuaVolZmapAvoidSphere( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaCutVolZmapPlane( lua_State* L)
{
// 3 o 4 parametri : Id, ptOn, vtN [, nRefType]
int nId ;
LuaCheckParam( L, 1, nId)
Point3d ptOn ;
LuaCheckParam( L, 2, ptOn)
Vector3d vtN ;
LuaCheckParam( L, 3, vtN)
int nRefType = RTY_DEFAULT ;
LuaGetParam( L, 4, nRefType) ;
LuaClearStack( L) ;
// taglio la superficie con ilpiano
bool bOk = ExeCutVolZmapPlane( nId, ptOn, vtN, nRefType) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
bool
LuaInstallGdbModifyVol( LuaMgr& luaMgr)
@@ -402,5 +423,6 @@ LuaInstallGdbModifyVol( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapGetDepth", LuaVolZmapGetDepth) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapAvoidBox", LuaVolZmapAvoidBox) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapAvoidSphere", LuaVolZmapAvoidSphere) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCutVolZmapPlane", LuaCutVolZmapPlane) ;
return bOk ;
}