Files
EgtGeomKernel/CAvToolSurfTm.h
T
Dario Sassi 75e1b46cf8 EgtGeomKernel 1.9e2 :
- aggiunto SetAdvTool a CAvToolSurfTm.
2018-05-08 16:44:12 +00:00

49 lines
1.9 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2018-2018
//----------------------------------------------------------------------------
// File : CAToolSurfTm.h Data : 08.05.18 Versione : 1.9e2
// Contenuto : Dichiarazioni per classe CAToolSurfTm.
//
//
//
// Modifiche : 27.04.18 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "HashGrids2d.h"
#include "SurfTriMesh.h"
#include "Tool.h"
#include "/EgtDev/Include/EGkCAvToolSurfTm.h"
//-----------------------------------------------------------------------------
class CAvToolSurfTm : public ICAvToolSurfTm
{
public : // ICAvToolSurfTm
bool SetSurfTm( const ISurfTriMesh& Stm) override ;
bool SetMoveDir( const Vector3d& vtrMove) override ;
bool SetStdTool( double dH, double dR, double dCornR) override ;
bool SetAdvTool( double dH, double dR, double dTipH, double dTipR, double dCornR) override ;
bool TestPosition( const Point3d& ptT, const Vector3d& vtDir, double& dTotDist) override ;
bool TestPath( PNTULIST& lPntM, const Vector3d& vtDir, double dLinTol) override ;
public :
CAvToolSurfTm( void) ;
private :
double MyTestPosition( Point3d& ptT, const Vector3d& vtDir) ;
double MyTestPositionHG( Point3d& ptT, const Vector3d& vtDir) ;
bool MyTestMidPointHG( PNTULIST& lPntM, const PNTULIST::iterator& itPntMPrev, const PNTULIST::iterator& itPntMCurr,
const Point3d& ptPrev, const Point3d& ptCurr, const Vector3d& vtDir, double dLinTol, int nLev) ;
bool PrepareHashGrid( void) ;
private :
Frame3d m_frMove ;
const SurfTriMesh* m_pSTm ;
HashGrids2d m_HGrids ;
Tool m_Tool ;
} ;