EgtExecutor 2.5j1 :
- riallineamento - sistemazioni per chiave di rete esposta su Internet.
This commit is contained in:
+11
-8
@@ -392,7 +392,7 @@ LuaSurfTmCut( lua_State* L)
|
||||
static int
|
||||
LuaSubtractProjectedFacesOnStmFace( lua_State* L)
|
||||
{
|
||||
// 3 o 4 o 5 o 6 parametri : nSurfId, nFaceInd, nDestGrpId [, vSurfsId] [, vSurfFacesInd] [, bOCFlag]
|
||||
// 3 o 4 o 5 o 6 parametri : nSurfId, nFaceInd, nDestGrpId [, vSurfsId, vSurfFacesInd] [, bOCFlag]
|
||||
int nSurfId ;
|
||||
LuaCheckParam( L, 1, nSurfId) ;
|
||||
int nFaceInd ;
|
||||
@@ -400,25 +400,28 @@ LuaSubtractProjectedFacesOnStmFace( lua_State* L)
|
||||
int nDestGrpId ;
|
||||
LuaCheckParam( L, 3, nDestGrpId) ;
|
||||
INTVECTOR vSurfsId ;
|
||||
LuaGetParam( L, 4, vSurfsId) ;
|
||||
INTVECTOR vSurfFacesInd ;
|
||||
LuaGetParam( L, 5, vSurfFacesInd) ;
|
||||
bool bOCFlag = true ;
|
||||
LuaGetParam( L, 6, bOCFlag) ;
|
||||
if ( LuaGetParam( L, 4, vSurfsId)) {
|
||||
LuaCheckParam( L, 5, vSurfFacesInd)
|
||||
LuaGetParam( L, 6, bOCFlag) ;
|
||||
}
|
||||
else
|
||||
LuaGetParam( L, 4, bOCFlag) ;
|
||||
LuaClearStack( L) ;
|
||||
// sottraggo alla faccia scelta la proiezione delle altre
|
||||
int nNewId = GDB_ID_NULL;
|
||||
bool bExistProjection = false ;
|
||||
int nNewFaceNbr = -1 ;
|
||||
bool bOk = ExeSubtractProjectedFacesOnStmFace( nSurfId, nFaceInd, nDestGrpId, vSurfsId, vSurfFacesInd,
|
||||
bOCFlag, nNewId, bExistProjection, nNewFaceNbr) ;
|
||||
int nNewFaceNbr = 0 ;
|
||||
bool bOk = ExeSurfTmSubtractProjectedFacesOnFace( nSurfId, nFaceInd, nDestGrpId, vSurfsId, vSurfFacesInd,
|
||||
bOCFlag, bExistProjection, nNewId, nNewFaceNbr) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
LuaSetParam( L, bExistProjection) ;
|
||||
LuaSetParam( L, nNewFaceNbr) ;
|
||||
if ( nNewId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nNewId) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
LuaSetParam( L, nNewFaceNbr) ;
|
||||
return 4 ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user