EgtMachKernel 1.6l5 :
- aggiunta regione in preview taglio con lama.
This commit is contained in:
Binary file not shown.
+2
-1
@@ -27,9 +27,10 @@ static std::string MCH_PATH = "P" ;
|
||||
static std::string MCH_RISE = "RISE" ;
|
||||
// Nomi di entità di preview
|
||||
static std::string MCH_PV_CUT = "CUT" ;
|
||||
static std::string MCH_PV_RCUT = "RCUT" ;
|
||||
static std::string MCH_PV_PRE_CUT = "PRC" ;
|
||||
static std::string MCH_PV_POST_CUT = "POC" ;
|
||||
// Chaive info con DeltaT lama in Preview
|
||||
// Chiave info con DeltaT lama in Preview
|
||||
static std::string MCH_PV_KEY_DT = "DT" ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
+5
-2
@@ -1059,7 +1059,7 @@ Sawing::GenerateEntityPv( const ICurveLine* pLine, const Vector3d& vtTool, const
|
||||
m_pGeomDB->SetName( nPxId, sName) ;
|
||||
m_pGeomDB->SetMaterial( nPxId, BLUE) ;
|
||||
|
||||
// rettangolo per parte di taglio completo
|
||||
// rettangolo e regione equivalente per parte di taglio completo
|
||||
Point3d ptIni = pLine->GetStart() + dElev * vtCorr ;
|
||||
Point3d ptEnd = pLine->GetEnd() + dElev * vtCorr ;
|
||||
Vector3d vtToolH( vtTool.x, vtTool.y, 0) ;
|
||||
@@ -1067,9 +1067,12 @@ Sawing::GenerateEntityPv( const ICurveLine* pLine, const Vector3d& vtTool, const
|
||||
Point3d ptCross = ptEnd + vtToolH ;
|
||||
Vector3d vtDZ( 0, 0, 0.1) ;
|
||||
int nId = ExeCreateRectangle3P( nPxId, ptIni + vtDZ, ptCross + vtDZ, ptEnd + vtDZ, RTY_LOC) ;
|
||||
// assegno nome e colore
|
||||
m_pGeomDB->SetName( nId, MCH_PV_CUT) ;
|
||||
m_pGeomDB->SetMaterial( nId, LIME) ;
|
||||
int nRId = ExeCreateSurfFrRectangle3P( nPxId, ptIni + vtDZ, ptCross + vtDZ, ptEnd + vtDZ, RTY_LOC) ;
|
||||
m_pGeomDB->SetName( nRId, MCH_PV_RCUT) ;
|
||||
Color colR = LIME ; colR.SetAlpha( 0) ; // completamente trasparente
|
||||
m_pGeomDB->SetMaterial( nRId, colR) ;
|
||||
|
||||
// distanza XY tra centro e bordo taglio
|
||||
double dDeltaT = (( dElev < 0.5 * m_TParams.m_dDiam) ? sqrt( dElev * m_TParams.m_dDiam - dElev * dElev) : 0) ;
|
||||
|
||||
Reference in New Issue
Block a user