From: vbd Date: Fri, 14 Sep 2007 12:17:51 +0000 (+0000) Subject: staffan : X-Git-Tag: trio_trio_coupling~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e24b32a2a28b62c23236803735c8cd098ba00694;p=tools%2Fmedcoupling.git staffan : * added testUnitTetra.cxx --- diff --git a/src/INTERP_KERNEL/testUnitTetra.cxx b/src/INTERP_KERNEL/testUnitTetra.cxx new file mode 100644 index 000000000..07b786972 --- /dev/null +++ b/src/INTERP_KERNEL/testUnitTetra.cxx @@ -0,0 +1,16 @@ +#include "MEDMEM_Mesh.hxx" +#include "Interpolation3D.hxx" +#include "./Test/TestingUtils.hxx" + +using namespace MEDMEM; + +// simple test to see if a certain mesh is diagonal when intersected with itself + +int main() +{ + MEDMEM::MESH mesh1(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler"); + MEDMEM::MESH mesh2(MED_DRIVER,"/home/vb144235/resources/DividedUnitTetraSimpler.med","DividedUnitTetraSimpler"); + Interpolation3D interpolator; + vector > matrix = interpolator.interpol_maillages(mesh1,mesh2); + dumpIntersectionMatrix(matrix); +}