EgtExecutor 1.6x2 :
- modifiche per Zmap con tridexel.
This commit is contained in:
+13
-7
@@ -24,7 +24,7 @@ using namespace std ;
|
||||
static int
|
||||
LuaCreateVolZmapBox( lua_State* L)
|
||||
{
|
||||
// 5 o 6 parametri : ParentId, PtIni, dDimX, dDimY, dDimZ, dPrec [, nRefType]
|
||||
// 7 o 8 parametri : ParentId, PtIni, dDimX, dDimY, dDimZ, dPrec, bTriDex [, nRefType]
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
Point3d ptIni ;
|
||||
@@ -37,11 +37,13 @@ LuaCreateVolZmapBox( lua_State* L)
|
||||
LuaCheckParam( L, 5, dDimZ)
|
||||
double dPrec ;
|
||||
LuaCheckParam( L, 6, dPrec)
|
||||
bool bTriDex ;
|
||||
LuaCheckParam( L, 7, bTriDex)
|
||||
int nRefType = RTY_DEFAULT ;
|
||||
LuaGetParam( L, 7, nRefType) ;
|
||||
LuaGetParam( L, 8, nRefType) ;
|
||||
LuaClearStack( L) ;
|
||||
// creo VZM parallelepipedo
|
||||
int nId = ExeCreateVolZmap( nParentId, ptIni, dDimX, dDimY, dDimZ, dPrec, nRefType) ;
|
||||
int nId = ExeCreateVolZmap( nParentId, ptIni, dDimX, dDimY, dDimZ, dPrec, bTriDex, nRefType) ;
|
||||
// restituisco il risultato
|
||||
if ( nId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nId) ;
|
||||
@@ -54,7 +56,7 @@ LuaCreateVolZmapBox( lua_State* L)
|
||||
static int
|
||||
LuaCreateVolZmapByRegionExtrusion( lua_State* L)
|
||||
{
|
||||
// 4 parametri : ParentId, SfrId, dDimZ, dPrec
|
||||
// 5 parametri : ParentId, SfrId, dDimZ, dPrec, bTriDex
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nSfrId ;
|
||||
@@ -63,9 +65,11 @@ LuaCreateVolZmapByRegionExtrusion( lua_State* L)
|
||||
LuaCheckParam( L, 3, dDimZ)
|
||||
double dPrec ;
|
||||
LuaCheckParam( L, 4, dPrec)
|
||||
bool bTriDex ;
|
||||
LuaCheckParam( L, 5, bTriDex)
|
||||
LuaClearStack( L) ;
|
||||
// creo VZM per estrusione di flat region
|
||||
int nId = ExeCreateVolZmapByRegionExtrusion( nParentId, nSfrId, dDimZ, dPrec) ;
|
||||
int nId = ExeCreateVolZmapByRegionExtrusion( nParentId, nSfrId, dDimZ, dPrec, bTriDex) ;
|
||||
// restituisco il risultato
|
||||
if ( nId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nId) ;
|
||||
@@ -78,16 +82,18 @@ LuaCreateVolZmapByRegionExtrusion( lua_State* L)
|
||||
static int
|
||||
LuaCreateVolZmapFromSurfTm( lua_State* L)
|
||||
{
|
||||
// 4 parametri : ParentId, StmId, dPrec
|
||||
// 4 parametri : ParentId, StmId, dPrec, bTriDex
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nStmId ;
|
||||
LuaCheckParam( L, 2, nStmId)
|
||||
double dPrec ;
|
||||
LuaCheckParam( L, 3, dPrec)
|
||||
bool bTriDex ;
|
||||
LuaCheckParam( L, 4, bTriDex)
|
||||
LuaClearStack( L) ;
|
||||
// creo VZM da superficie trimesh
|
||||
int nId = ExeCreateVolZmapFromSurfTm( nParentId, nStmId, dPrec) ;
|
||||
int nId = ExeCreateVolZmapFromSurfTm( nParentId, nStmId, dPrec, bTriDex) ;
|
||||
// restituisco il risultato
|
||||
if ( nId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nId) ;
|
||||
|
||||
Reference in New Issue
Block a user