POV-Ray : Newsgroups : povray.general : Joining cylinders with a miter-join : Re: Joining cylinders with a miter-join Server Time
31 Jul 2024 14:25:09 EDT (-0400)
  Re: Joining cylinders with a miter-join  
From: Bruno Cabasson
Date: 22 Dec 2006 03:30:01
Message: <web.458b965e1e412a2bf5fba6ef0@news.povray.org>
Nicolas George <nicolas$george@salle-s.org> wrote:
> Hi.
>
> I often wonder how to make cylinders joining with a miter-join, that is:
>
> ------------+
>            /|
>           / |
>          /  |
> --------+   |
>         |   |
>         |   |
>         |   |
>
> The solution that comes to mind immediately is to use something like:
>
> union {
>   intersection {
>     cylinder { horizontal }
>     plane { diagonal, interior up }
>   }
>   intersection {
>     cylinder { vertical }
>     plane { diagonal, interior down }
>   }
> }
>
> But it leads to coincident surfaces. Making the cylinders overlap is not
> good either, because near the point of the angle, the biggest cylinder is
> the wrong one.
>
> Any suggestion?

You can clip the joining ends of the cylinders by a plane properly oriented,
and then make the connection (use of clipped_by{plane{}})

    Bruno


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.