25 lines
364 B
C++
25 lines
364 B
C++
#pragma once
|
|
#include "getol.h"
|
|
|
|
class SHGeTol
|
|
{
|
|
public:
|
|
SHGeTol(const double &dTol, bool bVector = false)
|
|
: m_dTol(dTol)
|
|
, m_bVector(bVector)
|
|
{
|
|
if (bVector)
|
|
m_tol.setEqualVector(dTol);
|
|
else
|
|
m_tol.setEqualPoint(dTol);
|
|
}
|
|
private:
|
|
double m_dTol;
|
|
bool m_bVector;
|
|
AcGeTol m_tol;
|
|
public:
|
|
operator const AcGeTol &() const
|
|
{
|
|
return m_tol;
|
|
}
|
|
}; |