Skip to content

Plugin Cube File Viewer

Hiromichi Yokoyama edited this page Nov 3, 2026 · 7 revisions

Plugin: Cube File Viewer

Cube File Viewer visualizes 3D volumetric scalar datasets from Gaussian Cube files (.cube, .cub), rendering positive and negative isosurfaces for molecular orbitals, electron densities, electrostatic potentials, and spin densities directly in MoleditPy's 3D viewer.

Repository Bundled in moleditpy-plugins (plugins/Cube_File_Viewer)
Author HiroYokoyama
Supported OS Windows, macOS, Linux, WSL
Supported Python >=3.9, <3.15
Supported MoleditPy >=5.0.0, <6.0.0
First-party plugin license LGPL-3.0-or-later
Menu location Associated with .cube and .cub files (drag-and-drop or File ▸ Open)
Extra dependencies None (uses RDKit, PyVista, NumPy from the MoleditPy environment)

See Official Plugins for the full catalogue.


1. Opening and parsing Cube files

  • Automatic file association: Automatically registers file openers for .cube and .cub extensions. Opening a cube file via File ▸ Open or dragging it into the 3D window parses the file immediately.
  • Embedded geometry: Reads the atomic numbers and Cartesian coordinates stored in the cube file header, populating the molecular geometry alongside the volumetric grid.
  • Volumetric data support: Handles molecular orbitals (signed wavefunctions), total electron density (positive-only), electrostatic potential (ESP), and spin density ($\alpha - \beta$).

2. Isosurface controls

  • Dual-phase rendering: For signed wavefunctions (molecular orbitals), renders paired positive (blue) and negative (red/orange) isosurfaces simultaneously.
  • Isovalue adjustment: Interactive slider allows real-time adjustment of the contour threshold value.
  • Opacity and styling: Adjust surface transparency to see the underlying ball-and-stick atomic skeleton through the volumetric cloud.
  • Solid, wireframe, and points: Switch rendering representation between solid surfaces, wireframe meshes, and point clouds.

Usage notes

Cube files support up to 256 MiB and 2,000,000 grid points. The header supplies units and grid geometry. Loading requires complete atom and field data, finite coordinates and independent grid axes.


3. See also


This page documents Cube File Viewer v2026.10.31, and was last updated on 2026-11-03. See REGISTRY/plugins.json for the current version.

Clone this wiki locally