EgtExecutor :
- aggiunta funzione per l'estensione di una superficie in tangenza. - cambiata chiamata alla offset3d.
This commit is contained in:
@@ -1481,6 +1481,35 @@ LuaCreateSurfBzSwept( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaCreateSurfExtension( lua_State* L)
|
||||
{
|
||||
// 3 o 7 parametri : ParentId, nSurfId, dExtLen [, nCrv] [, nSubCrv] [, nType] [, dTol]
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nSurfId ;
|
||||
LuaCheckParam( L, 2, nSurfId)
|
||||
double dExtLen ;
|
||||
LuaCheckParam( L, 3, dExtLen)
|
||||
int nCrv = 0 ; // di default loop 0
|
||||
int nSubCrv = -1 ; // di default tutto estendo la superficie lungo tutto il loop
|
||||
int nType = ICurve::OFF_CHAMFER ;
|
||||
double dTol = LIN_TOL_STD ;
|
||||
if ( LuaGetParam( L, 4, nCrv)) {
|
||||
LuaGetParam( L, 5, nSubCrv) ;
|
||||
LuaGetParam( L, 6, nType) ;
|
||||
LuaGetParam( L, 7, dTol) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
int nId = ExeCreateSurfExtension( nParentId, nSurfId, dExtLen, nCrv, nSubCrv, nType, dTol) ;
|
||||
if ( nId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nId) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
bool
|
||||
LuaInstallGdbCreateSurf( LuaMgr& luaMgr)
|
||||
@@ -1537,5 +1566,6 @@ LuaInstallGdbCreateSurf( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfBzRuledGuided", LuaCreateSurfBzRuledGuided) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfBzSkinned", LuaCreateSurfBzSkinned) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfBzSwept", LuaCreateSurfBzSwept) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfExtend", LuaCreateSurfExtension) ;
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user