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
Patch/11 may16 #202
Patch/11 may16 #202
Conversation
I will look at it this weekend latest... |
No rush |
…Here we simply store a visit map and only bend/stretch a bond if it's the first pair it's seen in.
…epresentation, for example (H2O)8.
Rebased to stop Travis moaning. |
Yeah, never tell me "no rush"... too much other things will interfere then, and then I won't get to it :/ |
@@ -556,6 +557,13 @@ private double bend(AtomPair pair, IntStack stack, Point2d[] coords) { | |||
for (IBond bond : pair.bndAt) { | |||
if (bond.isInRing()) continue; | |||
|
|||
// has this bond already been tested as part of another pair | |||
AtomPair first = firstVisit.get(bond); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible NPE source? It's a private method, so probably not...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep - If public would check the params at top of method.
Thanks. |
Some misc patches... on rendering of course!