POV-Ray : Newsgroups : povray.programming : function x=y=z : Re: function x=y=z Server Time
1 Jul 2024 03:25:41 EDT (-0400)
  Re: function x=y=z  
From: Warp
Date: 16 Jun 2004 06:34:30
Message: <40d02236@news.povray.org>
1ternaut <ded### [at] sparkwirecom> wrote:
> it is working, i have a line, but, in fact i am not satisfied, because i
> need  the line x=y=z to show only certain points

  A point is infinitely small (and a line is infinitely thin as well)
so what you are asking is impossible.

  You can, however, *approximate* what you want by using eg. spheres or
cylinders.

  What you probably want is to create a loop where you create spheres
along the line in the places you want.
  The POV-Ray documentation has some tutorials on making loops and other
things. You should check it.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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