]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Thu, 23 Apr 2009 14:13:30 +0000 (14:13 +0000)
committerageay <ageay>
Thu, 23 Apr 2009 14:13:30 +0000 (14:13 +0000)
src/INTERP_KERNEL/Interpolation3DSurf.hxx
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py
src/MEDCoupling_Swig/libMEDCoupling_Swig.i

index 3055b158c40bd11f3568b58a975c3bed847504ff..4fff636cf800bcf32bb6e239e6c008848679747b 100644 (file)
@@ -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<class MyMeshType, class MyMatrixRow>
       void performAdjustmentOfBB(PlanarIntersector<MyMeshType,MyMatrixRow>* intersector, std::vector<double>& bbox) const
     { intersector->adjustBoundingBoxes(bbox,_surf_3D_adjustment_eps); }
index 66c91674af0416a83567d321affc2a73c5cef274..336e0d059cab1da4483a4a36bee6f400d6b55378 100644 (file)
@@ -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):
index 5b56520fd8d4eff3e30c48970d44f35870527508..7368d520220114c4db59a13b9e2d187e0535c989 100644 (file)
@@ -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)