POV-Ray : Newsgroups : povray.programming : function x=y=z Server Time
28 Jun 2024 01:56:46 EDT (-0400)
  function x=y=z (Message 1 to 4 of 4)  
From: 1ternaut
Subject: function x=y=z
Date: 16 Jun 2004 03:24:57
Message: <40cff5c9@news.povray.org>
Completly newbe, i used that :

#include "colors.inc"
  background{White}
  camera {
    angle 15
    location <0,2,-10>
    look_at <0,0,0>
  }
  light_source { <10, 20, -10> color White }

cylinder {
<-1000,-1000,-1000>, // starting point
<1000,1000,1000>, // ending point
0.002 // radius

pigment { rgb 0.1 } // white
}

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 of it with and & function,
for exemple i need to see point of space where x=y=z and x is even and x
different of x * 10 ;o)




> Well, the cylinder that I described is:
>
> cylinder {
> <-100,-100,-100>, // starting point
> <100,100,100>, // ending point
> 0.1 // radius
>
> pigment {rgb 1} // white
> }
>
> You'll also need a light source and a camera.
>
> If this is new to you, then I strongly suggest you read the tutorials that
> come with POV-Ray. Start by clicking on the button in POV-Ray that says
> "Scene", which will bring you to the help files.
>
>  - Slime
>  [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

From: Warp
Subject: Re: function x=y=z
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

From: Shay
Subject: Re: function x=y=z
Date: 17 Jun 2004 14:00:43
Message: <40d1dc4b$1@news.povray.org>
"1ternaut" <ded### [at] sparkwirecom> wrote in message
news:40cff5c9@news.povray.org...

Look in povray.text.scene-files for an example scene with documentation
references

 -Shay


Post a reply to this message

From: 1ternaut
Subject: Re: function x=y=z
Date: 17 Jun 2004 18:10:50
Message: <40d216ea@news.povray.org>
Thank you all of you ;o) I have a pist ;o)



news:40d1dc4b$1@news.povray.org...
>
> "1ternaut" <ded### [at] sparkwirecom> wrote in message
> news:40cff5c9@news.povray.org...
>
> Look in povray.text.scene-files for an example scene with documentation
> references
>
>  -Shay
>
>


Post a reply to this message

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