|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Is there a built in function that I'm overlooking that would allow me to
compute a normal and tangent vector to a given point on a spline? I saw
that Chris Colefax's spline macro can do this but is there something I can
use with POV's built in splines? I'm looking at approximating the vectors
by using adjacent points, but I was hoping there might be something a little
more accurate.
Skip
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Skip Talbot wrote:
> Is there a built in function that I'm overlooking that would allow me to
> compute a normal and tangent vector to a given point on a spline? I saw
> that Chris Colefax's spline macro can do this but is there something I can
> use with POV's built in splines? I'm looking at approximating the vectors
> by using adjacent points, but I was hoping there might be something a little
> more accurate.
>
> Skip
>
>
You could work out the polynomials that controls the
spline and then differentiate those.
Or you could use numerical methods to calculate the
tangent-, normal- and binormal-vectors.
Some keywords for Google:
"Frenet frame"
"TNB frame"
"Tangent vector"
"Normal vector"
"Binormal vector"
"Numerical differentiaton"
"Vector valued function"
While working on the tools for my POVCOMP image I made
macros that will produce a set of frenet frame functions
for my NURBS functions (and other functions).
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
You are gonna get mega technical points on your POVCOMP entry... as I
expected from you. :) Thanks for the help.
Skip
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Skip Talbot wrote:
> You are gonna get mega technical points on your POVCOMP entry... as I
> expected from you. :) Thanks for the help.
I'm sorry. I have not entered. I did not have enough
spare time to make all the tools needed for my image.
Hopefully I will find time to clean up and release
some of the macros I have made during the last weeks.
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote in message
news:416f2813@news.povray.org...
: Hopefully I will find time to clean up and release
: some of the macros I have made during the last weeks.
I'm curious Tor, what were you working on?
=Bob=
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
=Bob= wrote:
> "Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote in message
news:416f2813@news.povray.org...
> : Hopefully I will find time to clean up and release
> : some of the macros I have made during the last weeks.
>
> I'm curious Tor, what were you working on?
I was thinking about modelling something like Escher's
"Moebius Strip II" (woodcut from 1963):
http://images.google.com/images?q=%22Moebius+Strip+II%22
http://www.google.com/search?q=%22Moebius+Strip+II%22
(But the making of the tool macros took too much time,
so I didn't get to the modelling stage.)
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Skip Talbot" <ski### [at] aolcom> wrote:
> Is there a built in function that I'm overlooking that would allow me to
> compute a normal and tangent vector to a given point on a spline? I saw
> that Chris Colefax's spline macro can do this but is there something I can
> use with POV's built in splines? I'm looking at approximating the vectors
> by using adjacent points, but I was hoping there might be something a little
> more accurate.
>
> Skip
Would official support for this be too difficult? It would definitely extend
the usefulness of built-in splines.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Shishberg who wrote:
>"Skip Talbot" <ski### [at] aolcom> wrote:
>> Is there a built in function that I'm overlooking that would allow me to
>> compute a normal and tangent vector to a given point on a spline? I saw
>> that Chris Colefax's spline macro can do this but is there something I can
>> use with POV's built in splines? I'm looking at approximating the vectors
>> by using adjacent points, but I was hoping there might be something a little
>> more accurate.
>>
>> Skip
>
>Would official support for this be too difficult? It would definitely extend
>the usefulness of built-in splines.
I somehow seem to have missed the beginning of this thread, so apologies
if this has been said already.
To find the normal you can do something like
#macro SplineNormal(Spline,C)
vnormalize(Spline(C+0.00001)-Spline(C-0.00001))
#end
Finding the normals is a bit trickier because there are an infinite
number of normal vectors to a spline at any point.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Mike Williams who wrote:
>Wasn't it Shishberg who wrote:
>>"Skip Talbot" <ski### [at] aolcom> wrote:
>>> Is there a built in function that I'm overlooking that would allow me to
>>> compute a normal and tangent vector to a given point on a spline? I saw
>>> that Chris Colefax's spline macro can do this but is there something I can
>>> use with POV's built in splines? I'm looking at approximating the vectors
>>> by using adjacent points, but I was hoping there might be something a little
>>> more accurate.
>>>
>>> Skip
>>
>>Would official support for this be too difficult? It would definitely extend
>>the usefulness of built-in splines.
>
>I somehow seem to have missed the beginning of this thread, so apologies
>if this has been said already.
>
>To find the normal you can do something like
>
>#macro SplineNormal(Spline,C)
> vnormalize(Spline(C+0.00001)-Spline(C-0.00001))
>#end
>
>Finding the normals is a bit trickier because there are an infinite
>number of normal vectors to a spline at any point.
>
Oops. Replace the first two occurrences of "normal" in the above by
"tangent".
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |