EgtMachKernel :
- aggiunta funzione KeepFixture - estesa funzione KeepRawPart.
This commit is contained in:
+6
-3
@@ -182,8 +182,9 @@ Generator::ProcessDisposition( int nOpId, int nOpInd)
|
||||
int nId ;
|
||||
Point3d ptPos ;
|
||||
double dAngDeg ;
|
||||
if ( pDisp->GetFixtureData( i, sName, nId, ptPos, dAngDeg)) {
|
||||
if ( ! OnFixtureData( nId, i + 1, sName, ptPos, dAngDeg))
|
||||
double dMov ;
|
||||
if ( pDisp->GetFixtureData( i, sName, nId, ptPos, dAngDeg, dMov)) {
|
||||
if ( ! OnFixtureData( nId, i + 1, sName, ptPos, dAngDeg, dMov))
|
||||
return false ;
|
||||
}
|
||||
else
|
||||
@@ -617,7 +618,8 @@ Generator::OnTableData( const string& sName, const Point3d& ptOri1)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Generator::OnFixtureData( int nFixId, int nFixInd, const string& sName, const Point3d& ptPos, double dAngDeg)
|
||||
Generator::OnFixtureData( int nFixId, int nFixInd, const string& sName, const Point3d& ptPos,
|
||||
double dAngDeg, double dMov)
|
||||
{
|
||||
// assegno dati bloccaggio
|
||||
bool bOk = m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FIXID, nFixId) ;
|
||||
@@ -625,6 +627,7 @@ Generator::OnFixtureData( int nFixId, int nFixInd, const string& sName, const Po
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FIXNAME, sName) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FIXPOS, ptPos) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FIXANG, dAngDeg) ;
|
||||
bOk = bOk && m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_FIXMOB, dMov) ;
|
||||
// chiamo la funzione di gestione dati bloccaggio
|
||||
bOk = bOk && m_pMachine->LuaCallFunction( ON_FIXTURE_DATA) ;
|
||||
return bOk ;
|
||||
|
||||
Reference in New Issue
Block a user