Skip to content

iremsucone/3D-molecule-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

3D-molecule-viewer

Molecular Viewer

A PyQt5 and VPython-based molecular viewer for visualizing molecules from .xyz files.

Features

  • Loads molecular structures from .xyz files.

  • Draws bonds based on atomic distances. The bond detection logic used a threshold of 1.3 × (r₁ + r₂) to create bonds, where r₁ and r₂ are the covalent radii of the two atoms. For example, consider two carbon atoms, each with a covalent radius of 0.6, the threshold is computed as follows: 1.3 × (0.6 + 0.6) = 1.56.

Screenshot 2025-03-07 at 17 56 08

Requirements

  • Python 3.x
  • PyQt5
  • VPython

Usage

  • Install dependencies and run the application.
  • Click "Open" to load an .xyz molecular file. The program will visualize atoms and bonds in 3D. By holding the pad/mouse you can rotate the molecule and zoom.

License

This project is licensed under the MIT License.

About

A PyQt5 and VPython-based molecular viewer for visualizing molecules from .xyz files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages