From: ageay Date: Thu, 23 Apr 2009 14:13:30 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~397 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cacd4d79f393e11b4d59ba604ee948c50674dbd6;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/INTERP_KERNEL/Interpolation3DSurf.hxx b/src/INTERP_KERNEL/Interpolation3DSurf.hxx index 3055b158c..4fff636cf 100644 --- a/src/INTERP_KERNEL/Interpolation3DSurf.hxx +++ b/src/INTERP_KERNEL/Interpolation3DSurf.hxx @@ -35,6 +35,8 @@ namespace INTERP_KERNEL public: bool doRotate() const { return _do_rotate; } double medianPlane() const { return _median_plane; } + double surf3DAdjustmentEps() const { return _surf_3D_adjustment_eps; } + void setSurf3DAdjustmentEps(double val) { _surf_3D_adjustment_eps=val; } template void performAdjustmentOfBB(PlanarIntersector* intersector, std::vector& bbox) const { intersector->adjustBoundingBoxes(bbox,_surf_3D_adjustment_eps); } diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index 66c91674a..336e0d059 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -38,6 +38,7 @@ class MEDCouplingBasicsTest(unittest.TestCase): # field=MEDCouplingFieldDouble.New(ON_CELLS) field.setMesh(mesh) + field.setNature(Integral) myCoords=DataArrayDouble.New() sampleTab=[] for i in range(nbOfCells*9): diff --git a/src/MEDCoupling_Swig/libMEDCoupling_Swig.i b/src/MEDCoupling_Swig/libMEDCoupling_Swig.i index 5b56520fd..7368d5202 100644 --- a/src/MEDCoupling_Swig/libMEDCoupling_Swig.i +++ b/src/MEDCoupling_Swig/libMEDCoupling_Swig.i @@ -66,6 +66,7 @@ using namespace INTERP_KERNEL; %include "MEDCouplingMesh.hxx" %include "NormalizedUnstructuredMesh.hxx" %include "MEDCouplingField.hxx" +%include "MEDCouplingNatureOfField.hxx" namespace ParaMEDMEM { @@ -163,6 +164,8 @@ namespace ParaMEDMEM void applyLin(double a, double b, int compoId); int getNumberOfComponents() const; int getNumberOfTuples() const throw(INTERP_KERNEL::Exception); + NatureOfField getNature() const { return _nature; } + void setNature(NatureOfField nat) throw(INTERP_KERNEL::Exception); void updateTime(); %extend { void setValues(PyObject *li)