Commit 82f5979e authored by Michele Compostella's avatar Michele Compostella
Browse files

Fixing atom size in the visualization

parent 9010b064
......@@ -30,7 +30,7 @@
##################################################################################
# Parameters of the script
input_s = '/home/favad/sample/input/atom_file.xyz'
input_s = '/home/favad/sample/output/fe_sample.DVs.xyz'
input_v = '/home/favad/sample/output/near_d.vtk'
out_dir = '/home/favad/sample/output/visualization/'
out_name = 'fe'
......@@ -190,12 +190,10 @@ OpenDatabase(input_s, 0)
AddPlot("Pseudocolor",x["R"])
p = PseudocolorAttributes()
p.colorTableName = "R"
#p.pointType = p.SphereGeometry
#pointSize = 0.15
p.pointType = p.SphereGeometry
p.pointSize = 1.
p.pointSizeVarEnabled = 1
p.pointSizeVar = "av_rad"
p.pointType = p.Sphere
p.pointSizePixels = 14
SetPlotOptions(p)
addthreshold()
......@@ -212,12 +210,10 @@ if fading:
AddPlot("Pseudocolor",x["R"])
p = PseudocolorAttributes()
p.colorTableName = "R"
#p.pointType = p.SphereGeometry
#p.pointSize = 0.15
p.pointType = p.SphereGeometry
p.pointSize = 1.
p.pointSizeVarEnabled = 1
p.pointSizeVar = "av_rad"
p.pointType = p.Sphere
p.pointSizePixels = 14
SetPlotOptions(p)
addbox()
......@@ -240,9 +236,7 @@ if fading:
SetActivePlots(2)
p = GetPlotOptions()
p.colorTableName = "black"
#p.pointSize = 0.15*(1.-float(i)/float(fadesteps))
#p.pointSize = int(15.*(1.-float(i)/float(fadesteps)))
p.pointSizePixels = max(1,int(14.*(1.-float(i)/float(fadesteps))))
p.pointSize = 1.*(1.-float(i)/float(fadesteps))
SetPlotOptions(p)
# Save image
......@@ -273,9 +267,7 @@ if fading:
ChangeActivePlotsVar(x[ch])
p = GetPlotOptions()
p.colorTableName = ch
#p.pointSize = 0.15*(1.-float(i)/float(fadesteps))
#p.pointSize = int(15.*(1.-float(i)/float(fadesteps)))
p.pointSizePixels = max(1,int(14.*(1.-float(i)/float(fadesteps))))
p.pointSize = 1.*(1.-float(i)/float(fadesteps))
SetPlotOptions(p)
# Save image
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment