POV-Ray : Newsgroups : povray.newusers : Iso surface : Iso surface Server Time
3 May 2024 07:30:33 EDT (-0400)
  Iso surface  
From: avant
Date: 29 May 2014 07:10:00
Message: <web.5387146f807dc52e9ed2167c0@news.povray.org>
Hello,
I have written the following simple code for isosurface. It looks fine but the
surface is not smooth.

//code starts here
camera{location<0,170,0> look_at<0,0,0>}
background{White}
light_source {<-100,400,-400> color White}
box{<-100,-10,-14>,<100,10,14> texture{pigment{color rgb<0.7,1,1> transmit 0.7}}
no_shadow}

isosurface{
  function{ z - (1+sin(x*2*pi/200))*6}
  threshold -14
  contained_by{box{<-100,-10,-14>,<100,10,14>}}
  texture{pigment{ color Gray transmit 0.5}} no_shadow }
}
object{sphere{<-100,-10,-14>,5 texture{pigment{color Blue}}}}
object{sphere{<100,10,14>,5 texture{pigment{color Red}}}}
//code ends

I have difficulty in  making smooth iso-surface. Thanks in advance
Avant


Post a reply to this message

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