EgtExecutor :

- aggiunta la funzione per modificare lo smooth angle delle surf trimesh.
This commit is contained in:
Daniele Bariletti
2024-05-22 16:35:13 +02:00
parent 2221934f3c
commit 2f3d1a84ef
2 changed files with 38 additions and 0 deletions
+21
View File
@@ -1214,3 +1214,24 @@ ExeSurfBzTrim( int nId, int nCutterId)
}
return bOk ;
}
//----------------------------------------------------------------------------
bool
ExeSurfTmSetSmoothAng( int nId, double dAngDeg)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero la superficie trimseh da trimmare
ISurfTriMesh* pSrfTm = GetSurfTriMesh( pGeomDB->GetGeoObj( nId)) ;
if ( pSrfTm == nullptr)
return false ;
pSrfTm->SetSmoothAngle( dAngDeg) ;
ExeSetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtSurfTmSetSmoothAng(" + ToString( nId) + "," +
ToString( dAngDeg) ;
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
}
return true ;
}