Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
});
}
}