Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization not changing from spheres to ball and stick #20

Open
lucasgpmoreira opened this issue Nov 16, 2023 · 1 comment
Open

Visualization not changing from spheres to ball and stick #20

lucasgpmoreira opened this issue Nov 16, 2023 · 1 comment

Comments

@lucasgpmoreira
Copy link

I want to make ball and stick as default, but when i click apply nothing happens. i tried even change this part of the code to just this.drawBondsAsStick(target, hetatm, this.cylinderRadius / 2.0, this.cylinderRadius, true, true, 0.3); but nothing happend

   if ($(idHeader + 'showHetatms').attr('checked')) {
      var hetatmMode = $(idHeader + 'hetatm').val();
      if (hetatmMode == 'stick') {
         this.drawBondsAsStick(target, hetatm, this.cylinderRadius, this.cylinderRadius, true);
      } else if (hetatmMode == 'sphere') {
         this.drawAtomsAsSphere(target, hetatm, this.sphereRadius);
      } else if (hetatmMode == 'line') {
         this.drawBondsAsLine(target, hetatm, this.curveWidth);
      } else if (hetatmMode == 'icosahedron') {
         this.drawAtomsAsIcosahedron(target, hetatm, this.sphereRadius);
     } else if (hetatmMode == 'ballAndStick') {
         this.drawBondsAsStick(target, hetatm, this.cylinderRadius / 2.0, this.cylinderRadius, true, false, 0.3);
     } else if (hetatmMode == 'ballAndStick2') {
         this.drawBondsAsStick(target, hetatm, this.cylinderRadius / 2.0, this.cylinderRadius, true, true, 0.3);
     }

   }

don't even the background changes to white when i click on apply button.

@biochem-fan
Copy link
Owner

biochem-fan commented Nov 16, 2023

Are your molecules really "HETATM"s in the PDB file? The above does not apply to "ATOM" records.

Thank you very much for your interest in GLmol but this project is no longer actively maintained. I suggest you to use more modern WebGL based molecular viewers, for example Mol*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants