Dave,

When looking at 1crn.pdb I see a strange 'hairpin turn' at one end of the
chain.

I am quite sure that this is my bug, not yours.

But since you have been working on this code recently you are probably
more familiar with it than me.

Try the following:

load samples/pdb/1crn.pdb
wireframe off; cpk off;
select alpha; cpk .4
backbone .3; color backbone lime
strands .75; color strands hotpink

On one of the ends, the strands are curling back to the second
alpha-carbon.

Your Ribbons/Mesh code has inherited this behavior.

Q: Can you confirm that this is a bug?

I suspect that it is in the routine Strands.calcCentersAndVectors, either
at the beginning or the end of the loop. But it has been so long since I
looked at that code that I cannot get my head around it right now.

Please do not feel obligated to fix it.

It would be helpful for me if you could just confirm whether or not it
looks like a bug to you in the rendering of 1crn.pdb.

--

Separately, we should think about changing the class hierarchy with
Strands.java/Ribbons.java/Mesh.java so that all the classes inherit from a
common base class. That way we can eliminate the redundant code between
those classes.

Miguel





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to