POV-Ray : Newsgroups : povray.newusers : Highlighting the edges and joins of a CSG. : Re: Highlighting the edges and joins of a CSG. Server Time
30 Jul 2024 16:17:58 EDT (-0400)
  Re: Highlighting the edges and joins of a CSG.  
From: Carl Hoff
Date: 6 Dec 2003 14:29:54
Message: <3fd22e32@news.povray.org>
Thanks... atleast that gives me a way to do what I want to do.  Still looks
rather labor intensive but atleast its a solution.

Thanks again,
Carl

> A way to draw a line around the join of two objects would be to use a
> CSG of scaled copies of the intersecting items as an pigment/object
> pattern.
>
> eg:
>
> #declare object_a = box{-1,1}
> #declare vec_a=<-0.5,0,0>;
>
> #declare object_b = sphere{0,1}
> #declare vec_b=<0.5,0.5,-0.5>;
>
> union
> {
>     object{object_a translate vec_a}
>     object{object_b translate vec_b}
>     pigment
>     {
>         object
>         {
>             intersection
>             {
>                 object{object_a scale 1.01 translate vec_a}
>                 object{object_b scale 1.01 translate vec_b}
>             }
>             pigment {rgb 0.5}
>             pigment {rgb <1,0,0>}
>         }
>     }
> }


Post a reply to this message

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