From 92aeb76ec21c6f22732b321a52511d66f02bda81 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 5 Jan 2016 11:29:37 +0000 Subject: [PATCH] EgtMachKernel 1.6l5 : - aggiunta regione in preview taglio con lama. --- EgtMachKernel.rc | Bin 11782 -> 11782 bytes MachiningConst.h | 3 ++- Sawing.cpp | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 5c6d8b7d1a87e63673cd22d439c6c9760af9d90c..7084942344cc0bf3f224446a324b68536e678ee0 100644 GIT binary patch delta 119 zcmZpRX^YwLhmFy6^ItYwW=7M=j>5W=vxGJ^ItYwW=50Aj>5W=vxGJSetName( 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) ;