C3D Toolkit
Kernel  117982, Vision  2.9.2.2

Ndimensional accuracy. More...
#include <mb_dim_accuracy.h>
Public Member Functions  
MbDimAccuracy (double xEps, double yEps)  
Constructor for twodimensional accuracy on the three values. More...  
MbDimAccuracy (double xEps, double yEps, double zEps)  
Constructor for twodimensional accuracy on the three values. More...  
template<class Vector >  
MbDimAccuracy (const Vector &vector)  
Constructor of Ndimensional accuracy on a vector of values. More...  
MbDimAccuracy (const MbDimAccuracy &acc)  
The copy constructor.  
MbDimAccuracy ()=delete  
Default constructor explicitly deleted.  
~MbDimAccuracy ()  
Destructor.  
size_t  GetDimension () const 
Get the accuracy dimension.  
const c3d::DoubleVector &  GetEpsilon () const 
Get a vector with accuracy components.  
double  GetMin () const 
Return the value of the minimum accuracy component.  
double  GetLength () const 
Length of the vector built on accuracy components.  
double &  operator[] (size_t i) 
Access to accuracy component by index.  
double  operator[] (size_t i) const 
The value of accuracy component by index.  
MbDimAccuracy &  operator= (const MbDimAccuracy &) 
Assign the value of another accuracy to the accuracy.  
Static Public Attributes  
static const MbDimAccuracy  twoDimAcc 
Default twodimensional accuracy  ( PARAM_EPSILON, PARAM_EPSILON )  
static const MbDimAccuracy  twoDimRgn 
Default twodimensional accuracy  ( METRIC_REGION, METRIC_REGION )  
static const MbDimAccuracy  threeDimAcc 
Default threedimensional accuracy  ( METRIC_EPSILON, METRIC_EPSILON, METRIC_EPSILON )  
Ndimensional accuracy.
Ndimensional accuracy is specified by N positive numbers. Twodimensional and threedimensional accuracies are the most demanded.
Components of accuracy in these cases correspond to accuracies along x, y and z axes. Twodimensional precision can be used, for example, when performing operations on twodimensional MbCurve curves. In this case, the accuracy components will be calculated using the GetUEpsilon() and GetVEpsilon() methods called for the surface (MbSurface) on which the curve lies.
MbDimAccuracy::MbDimAccuracy  (  double  xEps, 
double  yEps  
) 
Constructor for twodimensional accuracy on the three values.
Constructor for twodimensional accuracy on two values. If the passed accuracy components are smaller than the 'DOUBLE_EPSILON', then the value of 'DOUBLE_EPSILON' is assigned to these components.
[in]  xEps   xaxis accuracy. 
[in]  yEps   yaxis accuracy. 
MbDimAccuracy::MbDimAccuracy  (  double  xEps, 
double  yEps,  
double  zEps  
) 
Constructor for twodimensional accuracy on the three values.
Constructor for threedimensional accuracy on three values. If the passed accuracy components are smaller than the 'DOUBLE_EPSILON', then the value of 'DOUBLE_EPSILON' is assigned to these components.
[in]  xEps   xaxis accuracy. 
[in]  yEps   yaxis accuracy. 
[in]  zEps   zaxis accuracy. 
MbDimAccuracy::MbDimAccuracy  (  const Vector &  vector  ) 
Constructor of Ndimensional accuracy on a vector of values.
Constructor of Ndimensional accuracy on a vector of values. If the vector is empty, a onedimensional accuracy with component equal to 'DOUBLE_EPSILON' is returned.
[in]  vector   Vector with components of Ndimensional accuracy. 