</IntVectorProperty>
</SourceProxy>
- <SourceProxy name="ELNOMesh" class="vtkELNOMeshFilter" label="ELNO Mesh">
+ <SourceProxy name="ELNOMesh" class="vtkELNOMeshFilter" label="ELNO field To Surface">
<Documentation
long_help="Create a Mesh with ELNO values mapped at each vertex."
short_help="Create a Mesh with ELNO values mapped at each vertex.">
</Hints>
</SourceProxy>
- <SourceProxy name="ELNOSurface" class="vtkELNOSurfaceFilter" label="ELNO Surface">
+ <SourceProxy name="ELNOSurface" class="vtkELNOSurfaceFilter" label="ELNO field To Surface (skin only)">
<Documentation
long_help="Extract the surface of a dataset with ELNO values."
short_help="Extract the surface of a dataset with ELNO values.">
</Hints>
</SourceProxy>
- <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="Gauss Points">
+ <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="ELGA field To Point Sprite">
<Documentation
long_help="Create a point set with data at Gauss points."
short_help="Create a point set with data at Gauss points.">
</SourceProxy>
- <SourceProxy name="ELNOPoints" class="vtkELNOFilter" label="ELNO Points">
+ <SourceProxy name="ELNOPoints" class="vtkELNOFilter" label="ELNO field To Point Sprite">
<Documentation
long_help="Create a point set with data at ELNO points. Cells are shrinked by a given factor towards the cell center."
short_help="Create a point set with data at ELNO points. Cells are shrinked by a given factor towards the cell center.">
arr_name=[elt.split(myMedReader.GetProperty("Separator").GetData())[0] for elt in arr_name_with_dis]
myMedReader.AllArrays=keys
RenderView1 = GetRenderView()
-ELNOMesh1=ELNOMesh(Input=myMedReader)
-ExtractGroup1=ExtractGroup(Input=ELNOMesh1)
+ELNOfieldToSurface1=ELNOfieldToSurface(Input=myMedReader)
+ExtractGroup1=ExtractGroup(Input=ELNOfieldToSurface1)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=['GRP_ba2','GRP_to1','GRP_web']
assert(isinstance(ExtractGroup1.GetProperty("MeshName")[0],str))
DataRepresentation3.LookupTable = a2_SolutionSIEQ_ELNO_PVLookupTable
DataRepresentation3.Visibility = 1
#
-GaussPoints1=GaussPoints(Input=ELNOMesh1)
-GaussPoints1.SelectSourceArray=['CELLS','ELGA@0']
+ELGAfieldToPointSprite1=ELGAfieldToPointSprite(Input=ELNOfieldToSurface1)
+ELGAfieldToPointSprite1.SelectSourceArray=['CELLS','ELGA@0']
DataRepresentation4 = Show()
DataRepresentation4.ScaleFactor = 0.008999999705702066
DataRepresentation4.EdgeColor = [0.0, 0.0, 0.5000076295109483]
RenderView1.CameraPosition = [1.0, 0.5, 4.319751617610021]
-ELNOMesh3 = ELNOMesh(Input=testMEDReader13_med)
+ELNOfieldToSurface3 = ELNOfieldToSurface(Input=testMEDReader13_med)
DataRepresentation2 = Show()
#DataRepresentation2.ConstantRadius = 1.9999333620071411
for entry in [[ExpectedEntries[0]],[ExpectedEntries[1]],[ExpectedEntries[2],ExpectedEntries[3]],[ExpectedEntries[4]]]:
reader=MEDReader(FileName=fname)
reader.AllArrays=entry
- gaussPoints=GaussPoints(Input=reader)
+ gaussPoints=ELGAfieldToPointSprite(Input=reader)
gaussPoints.SelectSourceArray="ELGA@0"
Show(gaussPoints,renderView1)
pass
from MEDLoader import *
-""" This test is a non regression test of EDF8662 : This bug revealed that ELNOMesh and ELNOPoints do not behave correctly after the call of ExtractGroup"""
+""" This test is a non regression test of EDF8662 : This bug revealed that ELNOfieldToSurface and ELNOfieldToPointSprite do not behave correctly after the call of ExtractGroup"""
fname="testMEDReader16.med"
ExtractGroup1 = ExtractGroup(Input=reader)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
-ELNOMesh1=ELNOMesh(Input=ExtractGroup1)
-ELNOPoints1=ELNOPoints(Input=ExtractGroup1)
-ELNOPoints1.SelectSourceArray=['ELNO@MyField']
-for elt in [ELNOMesh1,ELNOPoints1]:
- elnoMesh=servermanager.Fetch(ELNOPoints1,0)
+ELNOfieldToSurface1=ELNOfieldToSurface(Input=ExtractGroup1)
+ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=ExtractGroup1)
+ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+ elnoMesh=servermanager.Fetch(ELNOfieldToPointSprite1,0)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==8)
assert(vtkArrToTest.GetNumberOfComponents()==2)
pass
#
ExtractGroup1.AllGroups=["GRP_grp2"]
-for elt in [ELNOMesh1,ELNOPoints1]:
- elnoMesh=servermanager.Fetch(ELNOMesh1)
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+ elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==8)
assert(vtkArrToTest.GetNumberOfComponents()==2)
pass
# important to check that if all the field is present that it is OK (check of the optimization)
ExtractGroup1.AllGroups=["GRP_grp3"]
-for elt in [ELNOMesh1,ELNOPoints1]:
- elnoMesh=servermanager.Fetch(ELNOMesh1)
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+ elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==16)
assert(vtkArrToTest.GetNumberOfComponents()==2)
vals=[vtkArrToTest.GetValue(i) for i in xrange(32)]
assert(arr2.isEqualWithoutConsideringStr(DataArrayDouble(vals,16,2),1e-12))
pass
-ELNOMesh1=ELNOMesh(Input=reader)
-ELNOPoints1=ELNOPoints(Input=reader)
-ELNOPoints1.SelectSourceArray=['ELNO@MyField']
-for elt in [ELNOMesh1,ELNOPoints1]:
- elnoMesh=servermanager.Fetch(ELNOMesh1)
+ELNOfieldToSurface1=ELNOfieldToSurface(Input=reader)
+ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader)
+ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+ elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==16)
assert(vtkArrToTest.GetNumberOfComponents()==2)
ExtractGroup1 = ExtractGroup(Input=reader)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
-ELNOPoints1=ELNOPoints(Input=ExtractGroup1)
-ELNOPoints1.SelectSourceArray=['ELNO@MyField']
+ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=ExtractGroup1)
+ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
#
-ELNOPoints1=ELNOPoints(Input=reader)
-ELNOPoints1.SelectSourceArray=['ELNO@MyField']
-ExtractGroup1 = ExtractGroup(Input=ELNOPoints1)
+ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader)
+ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
+ExtractGroup1 = ExtractGroup(Input=ELNOfieldToPointSprite1)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
ExtractGroup1.UpdatePipeline()
vtkBlockColorsPWF = GetOpacityTransferFunction('vtkBlockColors')
# create a new 'ELNO Mesh'
-eLNOMesh1 = ELNOMesh(Input=testTotomed)
+eLNOMesh1 = ELNOfieldToSurface(Input=testTotomed)
# Properties modified on eLNOMesh1
eLNOMesh1.ShrinkFactor = 0.5 # <- test is here !!!!!!!!
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"
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