POV-Ray : Newsgroups : povray.unofficial.patches : Simple flat curves : Re: Simple flat curves Server Time
2 Sep 2024 08:14:54 EDT (-0400)
  Re: Simple flat curves  
From: Bob Hughes
Date: 1 Apr 2000 08:22:01
Message: <38e5f7f9@news.povray.org>
This might help if you use MegaPov:


#version unofficial MegaPov 0.4;

background {rgb 1}

sphere_sweep {
  b_spline_sphere_sweep,
   6,
  <-5, -5, 0>, 0
  <-5, 2.5, 0>, 0.1
  <-2.5, 5, 0>, 0.5
  < 2.5, -5, 0>, 1
  < 5, -2.5, 0>, 1.5
  < 5, 5, 0>, 3
 // sphere_sweep_depth_tolerance 1.0e-3
 pigment {rgb 0}
  scale <1,1,0.01>
}

light_source { <-10,10,-10>, 1}
camera {
  location  <1,1,-15>
  angle 67
  look_at   <0, 0, 0>
}


You could adjust the sphere positions and sizes to get what you're looking for I
believe.  If using POV-Ray 3.* I could only suggest using 'height_field' and/or
'image_map' with a drawing of the shape you need.  Don't know if there might be
yet another way.

Bob

"Nigel Warner" <nwa### [at] freenetnamecouk> wrote in message
news:38E5F21F.E6649CF6@freenetname.co.uk...
| Dear all,
|
|     I am trying to work out which of the various patches I need to do
| the following.
|
|     I want to draw a curved line between two points varying the
| thickness
| of the line as I go as if the line was drawn with a flat nibbed pen;
| thinner at the
| ends and fatter in the middle. The object I want is a slur used to join
| two notes
| or above a musical phrase.
|
|     I have looked through lot's of posts but I am still non the wiser as
| the maths is
| all a bit confusing.. Any pointers or better still a macro I can
| experiment with
| would be most educational.
|
|     Regards,
|
|     Nigel.
|
|
|


Post a reply to this message

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