From 7de7ac541d24aaf2107d1b6e03d9ebcb7db58f15 Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 17 Feb 2012 16:26:43 +0000 Subject: [PATCH] getCellIdsCrossingPlane implementation. --- src/MEDCoupling_Swig/MEDCouplingBasicsTest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py index f9f65986e..21f200d03 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest.py @@ -8593,6 +8593,17 @@ class MEDCouplingBasicsTest(unittest.TestCase): self.assertAlmostEqual(expected5[i],m3.getCoords().getIJ(0,i),12); pass pass + + def testGetCellIdsCrossingPlane1(self): + mesh3D,mesh2D=MEDCouplingDataForTest.build3DExtrudedUMesh_1(); + vec=[-0.07,1.,0.07] + origin=[1.524,1.4552,1.74768] + ids1=mesh3D.getCellIdsCrossingPlane(origin,vec,1e-10) + self.assertEqual([1,3,4,7,9,10,13,15,16],ids1.getValues()) + vec2=[0.,0.,1.] + ids2=mesh3D.getCellIdsCrossingPlane(origin,vec2,1e-10) + self.assertEqual([6,7,8,9,10,11],ids2.getValues()) + pass def setUp(self): pass -- 2.39.2