EgtGeomKernel :

- aggiunta VolZmap::ResetTool
- in VolZmap aggiunto controllo utensile definito prima di effettuare un movimento di lavorazione.
This commit is contained in:
Dario Sassi
2019-05-20 06:47:14 +00:00
parent dabbd3eae5
commit b80b251d24
3 changed files with 11 additions and 0 deletions
+7
View File
@@ -1680,3 +1680,10 @@ VolZmap::SetChiselTool( const string& sToolName, double dH, double dW, double dT
{
return m_Tool.SetChiselTool( sToolName, dH, dW, dTh, nFlag) ;
}
//----------------------------------------------------------------------------
bool
VolZmap::ResetTool( void)
{
return m_Tool.Clear() ;
}
+1
View File
@@ -84,6 +84,7 @@ class VolZmap : public IVolZmap, public IGeoObjRW
bool SetGenTool( const std::string& sToolName, const ICurveComposite* pToolOutline, int nFlag) override ;
bool SetMortiserTool( const std::string& sToolName, double dH, double dW, double dTh, double dRc, int nFlag) override ;
bool SetChiselTool( const std::string& sToolName, double dH, double dW, double dTh, int nFlag) override ;
bool ResetTool( void) override ;
const ICurveComposite& GetToolOutline( bool bApprox = false) const override
{ return ( bApprox ? m_Tool.GetApproxOutline() : m_Tool.GetOutline()) ;}
bool MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Point3d& ptPe, const Vector3d& vtDe) override ;
+3
View File
@@ -489,6 +489,9 @@ VolZmap::MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Point3d&
bool
VolZmap::MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Vector3d& vtAs, const Point3d& ptPe, const Vector3d& vtDe, const Vector3d& vtAe)
{
// Se non è definito l'utensile, non devo fare alcunchè
if ( m_Tool.GetType() == Tool::UNDEF)
return true ;
// Controllo definizione vettori direzione
if ( vtDs.IsSmall() || vtDe.IsSmall())
return false ;