How to use the 3dmol.VolumeData function in 3dmol

To help you get started, we’ve selected a few 3dmol examples, based on popular ways it is used in public projects.

github Autodesk / molecule-3d-for-react / src / components / molecule_3d.jsx View on Github external
static render3dMolOrbital(glviewer, orbital) {
    if (orbital.cube_file) {
      const volumeData = new $3Dmol.VolumeData(orbital.cube_file, 'cube');
      glviewer.addIsosurface(volumeData, {
        isoval: orbital.iso_val,
        color: ORBITAL_COLOR_POSITIVE,
        opacity: orbital.opacity,
      });
      glviewer.addIsosurface(volumeData, {
        isoval: -orbital.iso_val,
        color: ORBITAL_COLOR_NEGATIVE,
        opacity: orbital.opacity,
      });
    }
  }

3dmol

Object oriented Javascript molecular visualization library

BSD-3-Clause
Latest version published 8 months ago

Package Health Score

78 / 100
Full package analysis

Similar packages