lab-cosmo / chemiscope

An interactive structure/property explorer for materials and molecules
http://chemiscope.org
BSD 3-Clause "New" or "Revised" License
119 stars 29 forks source link

Periodic neighbors of molecules are shown #331

Closed PicoCentauri closed 2 months ago

PicoCentauri commented 2 months ago

I want to verify a dataset with my favorite visualization tool, but I obtain confusing view.

I have a test structure with one single water molecule but chemiscope is showing me my molecule plus 3 "ghost" atoms.

chemiscope-structure h2o_mic.xyz.txt

I already talked to @Luthaf and I know that this is intended behavior and makes looking and crystals much nicer.

But, for molecules it can be very confusing - at least it is for me. I know that I can get rid of it if I move my atoms away from the origin or disable the PBC but this is not really useful if one wants to verify something and it is required to first manipulate them.

I rather would have a bool viewer option like there is already one for cell etc or an addition to the already existing option to show the neighboring cells.

Luthaf commented 2 months ago

We could also hide/show these with the cell option: if cell is on, we show duplicated atoms at the boundaries, if it is off we don't.

PicoCentauri commented 2 months ago

I think showing the cell is useful. I have a dataset where I scale the cell but the positions of my atoms are the same between the structures. Verifying, that I actually scaled the cell correctly only works when I see the cell and my atoms.

ceriottm commented 2 months ago

Has this always been enabled? I remember one had to manually select replicas to see entire molecules that are broken across the periodic boundaries. I also find this behavior confusing, TBH.

Luthaf commented 2 months ago

This was actually not the intended behavior (I got a bit confused) but a change inside 3Dmol. Should be fixed by #332