> This interests me quite a bit -- I've been working on adding this
> feature as well, although not much lately. I have a partial
> implementation here:
> 
> https://github.com/dlonie/avogadro/commit/1457bedd6ae9e932f758d7c410541de314
> 2475d3
> 
> It's a bit buggy still, but I hope to get it cleaned up soon.
> 
> I tested out your patch, and it needs some work before it can be
> merged in -- I kept getting renderings like the attached, where the
> bonds don't line up with the cell boundary.
> 
> Dave

Yes the stumps are not clipped exactly at the boundary, instead their length 
is always just half the bond length. This was a conscious decision as I didn't 
see the need to have them clipped exactly "right". Your approach is more 
sophisticated but it's also a lot more code.

I'm dealing mostly with amorphous polymer systems with lots of atoms. In such 
cases it doesn't make much difference how the stumps are drawn -- perhaps in 
the case of covalently bonded crystals there are aesthetic factors that should 
be taken into account.

Just let me know what you think.

- Tuukka

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to