POV-Ray : Newsgroups : povray.general : Braids? : Re: Braids? Server Time
2 Aug 2024 14:17:19 EDT (-0400)
  Re: Braids?  
From: Mike Williams
Date: 8 Oct 2004 00:00:11
Message: <7HxyPaAeBhZBFwAF@econym.demon.co.uk>
Wasn't it Stefan Viljoen who wrote:
>
>I was thinking that something simple like a spiral of spheres, each "strand"
>starting a little bit rotated out of position might look nice. But splines
>might be an idea too... thanks!

Sound's like you're trying to reinvent the helix.

#declare R1=0.3;
#declare R2=0.2;
#declare W=R1+R2;
isosurface {
  function { f_helix1(x,y,z,4,4,R2,R1,1,1,0) }
        max_gradient 1.5
        contained_by{box{ <-W,-1,-W><W,1,W>}}
        pigment {rgb 1}
}

For something slightly more braid-like, try this:

#declare R1=0.3;
#declare R2=0.2;
#declare W=R1+R2;

isosurface {
  function { f_helix1(x,y,z,4,4,R2,R1,1,1,0)
   + f_helix1(x,y,z,4,-4,R2,R1,1,1,0) *0.2}
        max_gradient 1.5
        contained_by{box{ <-W,-1,-W><W,1,W>}}
        pigment {rgb 1}
}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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