POV-Ray : Newsgroups : povray.general : Rounded edges... : Re: Rounded edges... Server Time
4 Nov 2024 21:26:32 EST (-0500)
  Re: Rounded edges...  
From: Tom A 
Date: 3 Sep 2003 09:19:00
Message: <3f55ea44@news.povray.org>
-KK- wrote:

> I am trying to create a pillar with slightly rounded edges.
> Scene text below....
> However, the edges meting at the apex are not equally
> curved, and those joinig the 2 prisms are not curved at all.
> Can anyone help me?
> TIA
> 
> global_settings{assumed_gamma 1.4}
> #include "colors.inc"
> camera {location <0,5,-10> look_at -y*.8 angle 12}
> light_source{<-5,10,-10> colour White}
> background{colour LightBlue}
> 
> #macro RSquare(p1,p2) 32,  // rounded square for use with bezier_spline
>     <-p1,-p2>,<-p1,0>,<-p1,0>,<-p1,p2>,    <-p1,p2>,<-p1,p1>,<-p1,p1>,<-p2,p1>,
>     <-p2,p1>,<0,p1>,<0,p1>,<p2,p1>,        <p2,p1>,<p1,p1>,<p1,p1>,<p1,p2>,
>     <p1,p2>,<p1,0>,<p1,0>,<p1,-p2>,        <p1,-p2>,<p1,-p1>, <p1,-p1>,<p2,-p1>,
>     <p2,-p1>,<0,-p1>,<0,-p1>,<-p2,-p1>,    <-p2,-p1>,<-p1,-p1>,<-p1,-p1>,<-p1,-p2>
> #end
> 
> union{
>   prism {conic_sweep bezier_spline 0, -1, RSquare(1, 0.8)}
>   prism{linear_sweep bezier_spline -1, -1.2, RSquare(1, .8)}
> //  sphere{y*0.2,0.3}
>   texture{pigment{Yellow}
>           finish{specular 0.4}
>   }
> }

I've used superelipsoids as pillows - sorry, don't remember the 
parameters.  Looked fine.

Tom A.


Post a reply to this message

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