[BUG] Show disordered sites without gaps#441
[BUG] Show disordered sites without gaps#441jmmshn wants to merge 2 commits intomaterialsproject:mainfrom
Conversation
1c33763 to
df3cdb2
Compare
for more information, see https://pre-commit.ci
|
@mkhorton, I check the data being represented in python and cannot find any problems. The TS code here also looks fine: So not sure where this problem could be coming from. |
|
This is an interesting bug, thanks for the report. Only now getting to this. I'll look into the three.js changelog/api too in case there have been changes, or perhaps we're misusing it somehow. |
|
Additional context: figure outputs can be made to look OK with if you do a bit of "russian doll" nesting with them. So that is a solution to have in our back pocket if this the three.js stuff proof too difficult |
Show disordered sites without gaps
Currently there are rendering artifacts that results in some weird looking sites when there is partial occupancy.
This is due to some weirdness with how the
phiStartandphiEndsare being parse after the python part of the code.If I try to draw a 0.2/0.2/0.2 alloy site then it becomes more obvious that something is wrong.
The data at the python level is here:
Here the three colors should each be 1/5 of the circle and fit together, but it looks like the
phisize of these are doubling each time we go to a new species.Since the starting phi positions of these are still correct we can mostly fix the plots by nesting the spheres inside each other as I do in this PR. but it would be nice to figure out what exactly is going wrong.