POV-Ray : Newsgroups : povray.general : Double Helix : Re: Double Helix Server Time
9 Aug 2024 23:26:28 EDT (-0400)
  Re: Double Helix  
From: Thomas Willhalm
Date: 26 Apr 2000 18:56:19
Message: <qqmln20xyi4.fsf@schlatt.fmi.uni-konstanz.de>
Peter Popov <pet### [at] usanet> writes:

> On Wed, 26 Apr 2000 15:19:27 -0500, Chris Huff
> <chr### [at] yahoocom> wrote:
> 
> >> Or use the helix object in the megapatch.
> >
> >There is no such thing as a helix object, not even in MegaPOV. You could 
> >do it with the parametric or the isosurface objects in MegaPOV, though.
> 
> I think Thomas had in mind the built-in helix isosurface function.

You're right. I should have given a more detailed answer. Here is a small
scene that uses the helix isosurface function:

#version unofficial MegaPov 0.4;
camera { location <4,2,0> look_at <0,0,0> }
light_source { <10,10,10> color 1 }

#declare rad1 = 1;
#declare rad2 = 0.2FF;
#declare length = 0.5;
isosurface { 
  function "helix1", <2, 2*pi*length, rad2, rad1, 1, 1, 0> 
  contained_by{ 
    box <-rad1-rad2-0.001, -2,-rad1-rad2-0.001>, 
    <rad1+rad2+0.001, 2, rad1+rad2+0.001> 
  }
  pigment { color rgb 1 }
}

Thomas

-- 
http://thomas.willhalm.de/ (includes pgp key)


Post a reply to this message

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