// Author : Anthony Geay (CEA/DEN)
#include "InterpolationOptions.hxx"
+#include "InterpKernelGeo2DPrecision.hxx"
#include "InterpKernelException.hxx"
#include <sstream>
const char INTERP_KERNEL::InterpolationOptions::PRECISION_STR[]="Precision";
+const char INTERP_KERNEL::InterpolationOptions::ARC_DETECTION_PRECISION_STR[]="ArcDetectionPrecision";
+
const char INTERP_KERNEL::InterpolationOptions::MEDIANE_PLANE_STR[]="MedianPlane";
const char INTERP_KERNEL::InterpolationOptions::BOUNDING_BOX_ADJ_STR[]="BoundingBoxAdjustment";
_splitting_policy=PLANAR_FACE_5;
}
+double INTERP_KERNEL::InterpolationOptions::getArcDetectionPrecision() const
+{
+ return INTERP_KERNEL::QUADRATIC_PLANAR::_arc_detection_precision;
+}
+
+void INTERP_KERNEL::InterpolationOptions::setArcDetectionPrecision(double p)
+{
+ INTERP_KERNEL::QUADRATIC_PLANAR::_arc_detection_precision=p;
+}
+
std::string INTERP_KERNEL::InterpolationOptions::getIntersectionTypeRepr() const
{
if(_intersection_type==INTERP_KERNEL::Triangulation)
setPrecision(value);
return true;
}
+ if(key==ARC_DETECTION_PRECISION_STR)
+ {
+ setArcDetectionPrecision(value);
+ return true;
+ }
else if(key==MEDIANE_PLANE_STR)
{
setMedianPlane(value);
oss << "Print level : " << _print_level << std::endl;
oss << "Intersection type : " << getIntersectionTypeRepr() << std::endl;
oss << "Precision : " << _precision << std::endl;
+ oss << "Arc Detection Precision : " << getArcDetectionPrecision() << std::endl;
oss << "Median plane : " << _median_plane << std::endl;
oss << "Do Rotate status : " << std::boolalpha << _do_rotate << std::endl;
oss << "Bounding box adj : " << _bounding_box_adjustment << std::endl;
double getPrecision() const { return _precision; }
void setPrecision(double p) { _precision=p; }
+ double getArcDetectionPrecision() const;
+ void setArcDetectionPrecision(double p);
+
double getMedianPlane() const { return _median_plane; }
void setMedianPlane(double mp) { _median_plane=mp; }
static const double DFT_MIN_DOT_BTW_3DSURF_INTERSECT;
public:
static const char PRECISION_STR[];
+ static const char ARC_DETECTION_PRECISION_STR[];
static const char MEDIANE_PLANE_STR[];
static const char BOUNDING_BOX_ADJ_STR[];
static const char BOUNDING_BOX_ADJ_ABS_STR[];