POV-Ray : Newsgroups : povray.general : Problems combining two isosurfaces with non-flat surface : Re: Problems combining two isosurfaces with non-flat surface Server Time
30 Jul 2024 16:26:59 EDT (-0400)
  Re: Problems combining two isosurfaces with non-flat surface  
From: Mike
Date: 8 Mar 2009 14:30:01
Message: <web.49b40e8e8416b8f9cb45af7a0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> Christian Froeschlin wrote:
>
> > me, the line went away (in the merge case) after replacing
> >
> > box{<-1.899, 3,-1.899000001>,<1.899000001,5,1.899000001>
>
> of course, the line I was replacing was actually
>
>    box{<-1.899, 3,-1.899>,<1.899,5,1.899>
>
> ;)

Cool, I got it to work with the flat interface (even when lit from behind which
seems to be the more difficult case).  Actually I was really hopeful so tried
it on my sine wave interface, but I guess it still did not work.  It looks good
at first, but when lit from behind (with the backlight code I put up) I still
see interface weirdness.
I used my isosurface function for the AlcoholRegion this time making the
contained by box { <-1.899000001, .21, -1.899000001>, <1.899000001, 3.5,
1.899000001> }.
Then in the heavy liquid region I did a difference operator (as suggested to me)
difference{
box{<-1.899, .21,-1.899>,<1.899,5,1.899>}
object{AlcoholRegion}
I also did a " translate -0.001*y " in the HeavyLiquidRegion so they overlap, if
I do not do this it looks even worse.
Then, I merge them.  And when lit from the back it does not look good.  When lit
from the front the interface is only a little weird at the edges, but with flat
boxes both cases seem to work.

-Mike


Post a reply to this message

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