Commit df3cdb2 1 parent 05b691b commit df3cdb2 Copy full SHA for df3cdb2
File tree 1 file changed +6
-2
lines changed
crystal_toolkit/renderables
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ def get_site_scene(
90
90
91
91
radii = [legend .get_radius (sp , site = self ) for sp in self .species ]
92
92
max_radius = float (min (radii ))
93
+
94
+ rscale_factor = 0.996
95
+ rscale = 1.0
93
96
94
97
for sp , occu in self .species .items ():
95
98
if isinstance (sp , DummySpecie ):
@@ -130,13 +133,14 @@ def get_site_scene(
130
133
sphere = Spheres (
131
134
positions = [position ],
132
135
color = color ,
133
- radius = radius ,
136
+ radius = radius * rscale ,
134
137
phiStart = phiStart ,
135
138
phiEnd = phiEnd ,
136
139
clickable = True ,
137
140
tooltip = name ,
138
141
)
139
142
atoms .append (sphere )
143
+ rscale *= rscale_factor
140
144
141
145
# Add magmoms
142
146
if draw_magmoms and (magmom := self .properties .get ("magmom" )):
@@ -161,7 +165,7 @@ def get_site_scene(
161
165
sphere = Spheres (
162
166
positions = [position ],
163
167
color = "#ffffff" ,
164
- radius = max_radius ,
168
+ radius = max_radius * rscale_factor ,
165
169
phiStart = phiEnd ,
166
170
phiEnd = np .pi * 2 ,
167
171
)
You can’t perform that action at this time.
0 commit comments