X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FTest%2FtestMEDReader6.py;h=07f0a4cf5939673c6526291e82cc27a1f0a830fd;hb=7f73f7630e2938bcd12c9736c95ab0b72ec8a072;hp=e9e7b266231096bb13ec5a7de8ece0448073187b;hpb=8c63a38303474ce53194ae7b312ef70f3b3daa9f;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/Test/testMEDReader6.py b/src/Plugins/MEDReader/Test/testMEDReader6.py index e9e7b266..07f0a4cf 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader6.py +++ b/src/Plugins/MEDReader/Test/testMEDReader6.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2016 CEA/DEN, EDF R&D +# Copyright (C) 2007-2017 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 @@ -22,7 +22,7 @@ from MEDLoader import * """ This test generate a GaussPoint field on a mesh with groups. -The aim of this test is to check that the ExtractGroup works well for GaussPoints +The aim of this test is to check that the ExtractGroup works well for ELGAfieldToPointSprite """ fname="testMEDReader6.med" @@ -65,10 +65,10 @@ ExtractGroup1 = ExtractGroup(Input=myMedReader) ExtractGroup1.UpdatePipelineInformation() ExtractGroup1.AllGroups = ['GRP_grp0'] -GaussPoints1 = GaussPoints(Input=ExtractGroup1) -GaussPoints1.SelectSourceArray = ['CELLS','ELGA@0'] +ELGAfieldToPointSprite1 = ELGAfieldToPointSprite(Input=ExtractGroup1) +ELGAfieldToPointSprite1.SelectSourceArray = ['CELLS','ELGA@0'] -Glyph1 = Glyph( Input=GaussPoints1, GlyphType="Sphere", GlyphTransform="Transform2" ) +Glyph1 = Glyph( Input=ELGAfieldToPointSprite1, GlyphType="Sphere", GlyphTransform="Transform2" ) Glyph1.GlyphType = "Sphere" Glyph1.Vectors = ['POINTS', ''] Glyph1.ScaleFactor = 0.29 @@ -78,7 +78,6 @@ RenderView1.CameraFocalPoint = [1.5, 1.5, 0.0] RenderView1.CameraPosition = [1.5, 1.5, 10000.0] RenderView1.InteractionMode = '3D' RenderView1.CameraPosition = [1.5, 1.5, 8.196152422706632] -RenderView1.CameraClippingRange = [7.825640906782493, 8.682319698595558] RenderView1.CameraParallelScale = 2.1213203435596424 RenderView1.CenterOfRotation = [1.5, 1.5, 0.0] @@ -109,5 +108,5 @@ baseline_file = os.path.join(baselinePath, "testMEDReader6.png") import vtk.test.Testing vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, - threshold=25) + threshold=1) vtk.test.Testing.interact()