diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 5c6d8b7..7084942 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachiningConst.h b/MachiningConst.h index 92366d3..54f4d73 100644 --- a/MachiningConst.h +++ b/MachiningConst.h @@ -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" ; //---------------------------------------------------------------------------- diff --git a/Sawing.cpp b/Sawing.cpp index d02fff5..373bd2b 100644 --- a/Sawing.cpp +++ b/Sawing.cpp @@ -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) ;