POV-Ray : Newsgroups : povray.general : Spline object: what is it? Server Time
6 Nov 2024 08:19:46 EST (-0500)
  Spline object: what is it? (Message 1 to 10 of 38)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Greg M  Johnson
Subject: Spline object: what is it?
Date: 17 Sep 2002 13:54:38
Message: <3d876c5e$1@news.povray.org>
I remember seeing splines as objects, perhaps in Chris Colefax's include
file.  It's not just a means of decribing points but an "object."

What kind of pov primitive is that: sphere sweep,  bicubic, etc.


Post a reply to this message

From: ABX
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 14:12:12
Message: <e0seous1gv4knl640h9d0rq1kuvqqt87nf@4ax.com>
On Tue, 17 Sep 2002 13:53:47 -0400, "Greg M. Johnson" <gregj:-)565### [at] aolcom>
wrote:
> What kind of pov primitive is that: sphere sweep,  bicubic, etc.

Spline is in general vector function (in POV 2D-5D). It's equations base on
set of points. Just like you have function based primitives you can spline
based primitives. There is whole chapter about it in documentation.

ABX


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 14:18:21
Message: <3d8771ed$1@news.povray.org>
I read the docs but thought someone had a utility that make "visible"
splines.


Post a reply to this message

From: ABX
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 14:22:23
Message: <9iseousvbet76h4l4tbdnqddr43ckbap9s@4ax.com>
On Tue, 17 Sep 2002 14:17:29 -0400, "Greg M. Johnson" <gregj:-)565### [at] aolcom>
wrote:
> I read the docs but thought someone had a utility that make "visible"
> splines.

There is no "visible" spline. There are only spline based objects. Examples of
splines "visible" this way are in sample docs. You have to precise what you
want to make visible.

ABX


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 14:27:49
Message: <3d877425@news.povray.org>
Has anyone else looked at Chris Colefax's spline include file?
http://www.geocities.com/ccolefax/spline/index.html

Is his
    preview_spline (MySpline, default_options)
simply a sphere sweep?


Post a reply to this message

From: Slime
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 15:07:40
Message: <3d877d7c$1@news.povray.org>
> Is his
>     preview_spline (MySpline, default_options)
> simply a sphere sweep?

Don't confuse Chris Colefax's spline include file with POV-Ray 3.5 splines.
The include file was written well before splines were brought into POV-Ray,
so it doesn't make any use of them at all.

The preview_spline macro does not use sphere sweeps, though it may simulate
them. If you want the 3.5 equivalent of that macro, then use a sphere_sweep.

Unfortunately, POV-Ray has no way to apply a separarely defined spline to a
sphere_sweep object. Nor can it apply a separate spline to a prism object or
something of that sort. I think this is a weakness in POV-Ray - it has the
same data structure represented in different ways depending on what you're
using it for.

I understand that the data structures aren't *identical*, but they're darn
similar and would be much more powerful if they were more portable.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Jellby
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 18:00:58
Message: <3d87a619@news.povray.org>
Slime wrote:

> <snip>
> 
> Unfortunately, POV-Ray has no way to apply a separarely defined spline to
> a sphere_sweep object. Nor can it apply a separate spline to a prism
> object or something of that sort. I think this is a weakness in POV-Ray -
> it has the same data structure represented in different ways depending on
> what you're using it for.
> 
> I understand that the data structures aren't *identical*, but they're darn
> similar and would be much more powerful if they were more portable.

Something vaguely related that came to my mind: Is it possible with the 
current tools to define a sort of hybrid between a lathe and a prism? I 
mean: in a prism you specify the section with a spline, in a lathe you 
specify the generatrix (is that the word?) with a spline, what about 
specifying both? In case it isn't possible (as I guess), wouldn't it be 
cool to have this kind of objects (lathes with non-circular section / 
prisms with non-linear sweeps)? Just an idea, though.

Greetings


Post a reply to this message

From: James Taylor
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 19:53:06
Message: <3d87c062$1@news.povray.org>
"Jellby" <jel### [at] M-softhomenet> wrote in message
news:3d87a619@news.povray.org...

> Something vaguely related that came to my mind: Is it possible with the
> current tools to define a sort of hybrid between a lathe and a prism? I
> mean: in a prism you specify the section with a spline, in a lathe you
> specify the generatrix (is that the word?) with a spline, what about
> specifying both? In case it isn't possible (as I guess), wouldn't it be
> cool to have this kind of objects (lathes with non-circular section /
> prisms with non-linear sweeps)? Just an idea, though.
>

I've used this before in Imagine 2 on the amiga (where is was called
'Forms') and I think it will have to become my new project while I wait for
inspiration on the current IRTC topic

jim


Post a reply to this message

From: Warp
Subject: Re: Spline object: what is it?
Date: 17 Sep 2002 22:51:27
Message: <3d87ea2f@news.povray.org>
Jellby <jel### [at] m-softhomenet> wrote:
> Something vaguely related that came to my mind: Is it possible with the 
> current tools to define a sort of hybrid between a lathe and a prism? I 
> mean: in a prism you specify the section with a spline, in a lathe you 
> specify the generatrix (is that the word?) with a spline, what about 
> specifying both? In case it isn't possible (as I guess), wouldn't it be 
> cool to have this kind of objects (lathes with non-circular section / 
> prisms with non-linear sweeps)? Just an idea, though.

  It shouldn't be too difficult to make a macro which creates that kind
of surface as a mesh using the two splines. (It would probably render 10
times faster as a mesh, as well.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: ingo
Subject: Re: Spline object: what is it?
Date: 18 Sep 2002 01:56:10
Message: <Xns928D517C42B77seed7@povray.org>
in news:3d87a619@news.povray.org Jellby wrote:

> Is it possible with the 
> current tools to define a sort of hybrid between a lathe and a prism?

http://www.econym.demon.co.uk/isotut/splines.htm
prismatic lathe

Ingo


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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