POV-Ray : Newsgroups : povray.binaries.images : Your opinions, please : Re: Your opinions, please Server Time
14 Aug 2024 01:24:37 EDT (-0400)
  Re: Your opinions, please  
From: Anders K 
Date: 31 Dec 2002 12:07:38
Message: <3e11ceda$1@news.povray.org>
Ib Rasmussen
> Since I can't find anything in the PovRay docs about using "thin rulers"
> to odel things, I have tried to fake..eh..approximate the shape with
> some different CSG primitives.

I'm certainly no expert on this stuff, but have you tried using a lathe?
Based on your description, I'd try something like:

union {
  cylinder { <0, 0, 0>, <0, Height/3, 0>, ThickRadius }
  lathe {
    bezier_spline 4,
    <ThickRadius, Height/3>
    <ThickRadius, 2*Height/3>
    <ThinRadius, Height>
    <ThinRadius, Height>
  }
}

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

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