On Sunday, April 15, 2012 09:51:09 AM David Lonie wrote:
> Cool -- feel free to take a look at what I've got and let me know if
> you can spot any possible improvements:
> 
> https://github.com/dlonie/avogadro/tree/ENH_intercell_bonds
> 
> A bit more progress today, along with a screenshot. Multiple bond
> intersections are now handled properly, and bond segments are drawn
> between the appropriate boundaries, even when no atoms are directly
> connected (see attached).
> 
> Still have to add a multicylinder implementation, color the bonds
> correctly, and fix up GL picking before it'll be completely ready.
> 
> Dave

Your screenshot looks quite nice, indeed multiple intersections are correctly 
handled. Though I'm getting the feeling that the code is quite large, and the 
support for coloring and higher order bonds still need to be added as you say. 
While thinking of a more straightforward way to achieve the same result I 
stumbled upon some example code to do boolean operations with opengl

http://www.hackchina.com/en/r/78488/csg.c__html

If the clipping could be done with a logical AND operation, multiple bonds 
etc. would be handled without any extra effort. Also cases when the cylinder 
intersects with not just one but two or three walls would be nicely handled.

I will experiment a bit and let you know if anything comes out of it.

- 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