Salome HOME
Implemenatation of MEDFileFields::linearToQuadratic + Remapper is now dealing with...
[tools/medcoupling.git] / src / INTERP_KERNEL / BoundingBox.cxx
index 45d51460cb9c02dd6f6d915be1b04844cad82544..b20ca410064ad655a57070fe5adfcf6c3dd776b4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -162,4 +162,14 @@ namespace INTERP_KERNEL
     return valid;
   }
 
+  void BoundingBox::toCompactData(double data[6]) const
+  {
+    data[0]=_coords[XMIN];
+    data[1]=_coords[XMAX];
+    data[2]=_coords[YMIN];
+    data[3]=_coords[YMAX];
+    data[4]=_coords[ZMIN];
+    data[5]=_coords[ZMAX];
+  }
+
 }