POV-Ray : Newsgroups : povray.binaries.images : lathe - no understanding [34270] : Re: lathe - no understanding [34270] Server Time
19 Nov 2024 22:32:25 EST (-0500)
  Re: lathe - no understanding [34270]  
From: JRG
Date: 31 Oct 2001 19:21:45
Message: <3be09599@news.povray.org>
For a so simple shape I would suggest CSG rather than lathe. BTW, are you
using cubic splines (if so, this picture does not show that)? The bottle's
neck looks like you put your control points in such a way that the spline
*falls* into the bottle. I would use a spline editor ;^) ...OR a macro like
the one I'm posting here.
I find it very handy:
simply #declare your array of points and launch the macro as follows:
test_lathe ( type_of_spline, your_array_of_points, sturm_on_or_off), where
type_of_spline can be 1 (linear), 2 (quadratic), 3 (cubic) or 4 (bezier).
Then you can use that same array into make_lathe to quickly edit your lathe
object (just put it in an object block: i.e. object {make_lathe
(t_o_s,y_a_o_p,s_o_o_o) texture { blah blah blah}}).
It will help you to see how things work here (see the two examples
included).
Hope this helps.

--
Jonathan.


Post a reply to this message


Attachments:
Download 'splineformarabou.inc.txt' (4 KB)

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