bond.search_show is not working

32 views
Skip to first unread message

Victor Wu

unread,
Oct 4, 2024, 10:22:52 AM10/4/24
to Beautiful Atoms
Hi, 

I followed the tutorial Bond and Polyhedra — Beautiful Atoms 2.2.0 documentation (beautiful-atoms.readthedocs.io) trying to visualize the TiO2 with polyhedra. However, the atoms outside the unit cell were not shown even with tio2.bond.show_search = True.

The following is the script I used:
from batoms.bio import read >>> tio2 = read("tio2.cif") >>> tio2.boundary = 0.01>>> tio2.bond.settings[("Ti", "O")].search = 1 >>> tio2.model_style = 2 >>> # show atoms >>> tio2.bond.show_search = True
which resulting a plot shown in the attachment.
Screenshot 2024-10-04 161401.png

I encountered this issue on various Blender versions from 3.3 3.4 3.5 3.6 on both windows and ubuntu. In fact, these are all the blenders I managed to install the Batoms into. 

Thanks in advance!

regards,
Victor

Xing Wang

unread,
Oct 4, 2024, 12:00:31 PM10/4/24
to Beautiful Atoms
Hi Victor,

Yes, you are right. There is a bug.

This is fixed in the branch `blender-4.2`:  https://github.com/beautiful-atoms/beautiful-atoms/tree/blender-4.2

You can download this branch, and install it inside Blender 4.2. 

Best,
Xing

Reply all
Reply to author
Forward
0 new messages