POV-Ray : Newsgroups : povray.binaries.images : Smooth Triangle. (107kbs) : Re: Smooth Triangle. (107kbs) Server Time
20 Nov 2024 08:39:59 EST (-0500)
  Re: Smooth Triangle. (107kbs)  
From: 25ct
Date: 13 Sep 2001 17:53:16
Message: <3ba12acc@news.povray.org>
"Trevor Quayle" <Tin### [at] hotmailcom> wrote in message
news:3ba11f50$1@news.povray.org...
> try loops and macros
>
> i.e.:
>
> #macro SphereLine (startpt,endpt,rad,nsegments)
>     union{
>       #local i=0;
>       #local seglen=(endpt-startpt)/nsegments;
>       #while (i<=nsegments)
>           sphere{0 rad translate startpt+seglen*i}
>           #local i=i+1;
>       #end
>   }
> #end
>
>
> use like:
> object{SphereLine(<-5,0,-5>,<2,1,2>,0.25,100) texture{MyTexture}}
>
> creates a line from pt1 to pt2 using 100 evenly spaced spheres of radius
> 0.25

     That's great Trevor. I'll try that. Many thanks.

     ~Steve~


>
> -tgq


Post a reply to this message

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