Login  Register

Re: How to fill the gap between two cylinders

Posted by Irene Tang on Apr 01, 2016; 2:50am
URL: https://forum.jogamp.org/How-to-fill-the-gap-between-two-cylinders-tp4036552p4036574.html

Hi, I still don't get it. I wrote a demo to explain it. First, I drew c1 according to p(0,0,0) and p(0,0,1), and c2 according to p(0,0,1) and p(1,0,2),
Then I calculated the angle between two cylinders and drew many disks to fill the gap. It works well when there is only one gap. But it slows down the project since there are so many gaps in the real project.

You said I could use gluCylinder with different base and top value to fill the gaps. How to set the base and top that can perfectly fit the gaps?