POV-Ray : Newsgroups : povray.newusers : Detail on curved surfaces? : Re: Detail on curved surfaces? Server Time
2 Nov 2024 17:17:18 EDT (-0400)
  Re: Detail on curved surfaces?  
From: Dave!
Date: 7 Oct 2003 13:00:02
Message: <web.3f82f0937ae16a6af0000e6e0@news.povray.org>
Hughes, B. wrote:

>Yes, and unfortunately this is what CSG is all about. Only thing that might
>prove simpler is to use a difference {} with 'inverse' instead. Not a great
>improvement. Well, let's see:
>
>union {
>difference { // create curved faced cylinder end
> cylinder {
>  <-4,0,-20>,<-4,0,-10>,4
> }
> sphere {
>  0,15
>  inverse // within is without, if you understand
> }
> pigment {rgb <.6,.6,.8>}
>} // end difference
> sphere { // sphere, of course
>  0,15
>  pigment {rgb <1,1,1>}
> }
>} // end union
>
>Interestingly enough, this seems to work okay. No visible coincident
>surfaces even though a hole wasn't removed from the sphere. I'd almost have
>expected to see trouble with that surface (and it might, under other
>viewpoints, scales, etc.).
>
>There would need to be some kind of retainment which allows keeping of an
>object after the CSG procedure. Might be a nice idea, if plausible. That
>sphere would be reused without adding it in a second time, if such a thing
>existed.
>
>Maybe someone else has a thought on this.

  Thanks for your input--I'll give it a try when I get home.  At the very
least, the method you've described is considerably more parsimonious than
mine!

Thanks again,
Dave!


Post a reply to this message

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