</Hints>
</SourceProxy>
- <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="ELGA field To Point Sprite">
+ <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="ELGA field To Point Gaussian">
<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 field To Point Sprite">
+ <SourceProxy name="ELNOPoints" class="vtkELNOFilter" label="ELNO field To Point Gaussian">
<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.">
DataRepresentation3.LookupTable = a2_SolutionSIEQ_ELNO_PVLookupTable
DataRepresentation3.Visibility = 1
#
-ELGAfieldToPointSprite1=ELGAfieldToPointSprite(Input=ELNOfieldToSurface1)
-ELGAfieldToPointSprite1.SelectSourceArray=['CELLS','ELGA@0']
+ELGAfieldToPointGaussian1=ELGAfieldToPointGaussian(Input=ELNOfieldToSurface1)
+ELGAfieldToPointGaussian1.SelectSourceArray=['CELLS','ELGA@0']
DataRepresentation4 = Show()
DataRepresentation4.ScaleFactor = 0.008999999705702066
DataRepresentation4.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation2 = Show()
#DataRepresentation2.ConstantRadius = 1.9999333620071411
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]
-#DataRepresentation2.PointSpriteDefaultsInitialized = 1
+#DataRepresentation2.PointGaussianDefaultsInitialized = 1
DataRepresentation2.SelectionPointFieldDataArrayName = 'fieldELNO'
DataRepresentation2.SelectionCellFieldDataArrayName = 'FamilyIdCell'
#DataRepresentation2.SelectInputVectors = ['POINTS', 'fieldELNO_Vector']
for entry in [[ExpectedEntries[0]],[ExpectedEntries[1]],[ExpectedEntries[2],ExpectedEntries[3]],[ExpectedEntries[4]]]:
reader=MEDReader(FileName=fname)
reader.AllArrays=entry
- gaussPoints=ELGAfieldToPointSprite(Input=reader)
+ gaussPoints=ELGAfieldToPointGaussian(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 ELNOfieldToSurface and ELNOfieldToPointSprite do not behave correctly after the call of ExtractGroup"""
+""" This test is a non regression test of EDF8662 : This bug revealed that ELNOfieldToSurface and ELNOfieldToPointGaussian do not behave correctly after the call of ExtractGroup"""
fname="testMEDReader16.med"
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
ELNOfieldToSurface1=ELNOfieldToSurface(Input=ExtractGroup1)
-ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=ExtractGroup1)
-ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
-for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
- elnoMesh=servermanager.Fetch(ELNOfieldToPointSprite1,0)
+ELNOfieldToPointGaussian1=ELNOfieldToPointGaussian(Input=ExtractGroup1)
+ELNOfieldToPointGaussian1.SelectSourceArray=['ELNO@MyField']
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointGaussian1]:
+ elnoMesh=servermanager.Fetch(ELNOfieldToPointGaussian1,0)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==8)
assert(vtkArrToTest.GetNumberOfComponents()==2)
pass
#
ExtractGroup1.AllGroups=["GRP_grp2"]
-for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointGaussian1]:
elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==8)
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 [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointGaussian1]:
elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==16)
assert(arr2.isEqualWithoutConsideringStr(DataArrayDouble(vals,16,2),1e-12))
pass
ELNOfieldToSurface1=ELNOfieldToSurface(Input=reader)
-ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader)
-ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
-for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]:
+ELNOfieldToPointGaussian1=ELNOfieldToPointGaussian(Input=reader)
+ELNOfieldToPointGaussian1.SelectSourceArray=['ELNO@MyField']
+for elt in [ELNOfieldToSurface1,ELNOfieldToPointGaussian1]:
elnoMesh=servermanager.Fetch(ELNOfieldToSurface1)
vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField")
assert(vtkArrToTest.GetNumberOfTuples()==16)
ExtractGroup1 = ExtractGroup(Input=reader)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
-ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=ExtractGroup1)
-ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
+ELNOfieldToPointGaussian1=ELNOfieldToPointGaussian(Input=ExtractGroup1)
+ELNOfieldToPointGaussian1.SelectSourceArray=['ELNO@MyField']
#
-ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader)
-ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField']
-ExtractGroup1 = ExtractGroup(Input=ELNOfieldToPointSprite1)
+ELNOfieldToPointGaussian1=ELNOfieldToPointGaussian(Input=reader)
+ELNOfieldToPointGaussian1.SelectSourceArray=['ELNO@MyField']
+ExtractGroup1 = ExtractGroup(Input=ELNOfieldToPointGaussian1)
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups=["GRP_grp1"]
ExtractGroup1.UpdatePipeline()
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 ELGAfieldToPointSprite
+The aim of this test is to check that the ExtractGroup works well for ELGAfieldToPointGaussian
"""
fname="testMEDReader6.med"
ExtractGroup1.UpdatePipelineInformation()
ExtractGroup1.AllGroups = ['GRP_grp0']
-ELGAfieldToPointSprite1 = ELGAfieldToPointSprite(Input=ExtractGroup1)
-ELGAfieldToPointSprite1.SelectSourceArray = ['CELLS','ELGA@0']
+ELGAfieldToPointGaussian1 = ELGAfieldToPointGaussian(Input=ExtractGroup1)
+ELGAfieldToPointGaussian1.SelectSourceArray = ['CELLS','ELGA@0']
-Glyph1 = Glyph( Input=ELGAfieldToPointSprite1, GlyphType="Sphere", GlyphTransform="Transform2" )
+Glyph1 = Glyph( Input=ELGAfieldToPointGaussian1, GlyphType="Sphere", GlyphTransform="Transform2" )
Glyph1.GlyphType = "Sphere"
Glyph1.Vectors = ['POINTS', '']
Glyph1.ScaleFactor = 0.29