POV-Ray : Newsgroups : povray.binaries.images : NURBS surface (22 KB) Server Time
1 Nov 2024 11:16:22 EDT (-0400)
  NURBS surface (22 KB) (Message 1 to 9 of 9)  
From: Tor Olav Kristensen
Subject: NURBS surface (22 KB)
Date: 18 Mar 2002 17:56:52
Message: <3C966F97.6D011C37@hotmail.com>
- as 50x50x2 = 500 triangles in a mesh2{} shape.

This image is a result from some experiments I
have done recently with functions in POV-Ray
v3.5.

The shape is made by a call to 2 macros:

One macro that builds NURBS functions and one
that takes 3 such functions as parameters and
generates a mesh from them.

This is how these macros; ParametricMesh() and
NURBS_Surface_Fn() can be called in order to
make this shape:

object {
  ParametricMesh(
    NURBS_Surface_Fn(Order, Knots, Points, Weights, x),
    NURBS_Surface_Fn(Order, Knots, Points, Weights, y),
    NURBS_Surface_Fn(Order, Knots, Points, Weights, z),
    <0.01, 0.01>, <2.00, 2.00>, 50*<1, 1>
  )
  texture { ... }
}

(The Knots, Points and Weights parameters are
arrays containing the vital information for
the NURBS.)

Here are some statistics:

1 GHz Pentium 3: 

Parsing time: 9 sec
Rendering time: 4 sec


100 MHz Pentium:

Parsing time: 1 min 40 sec
Rendering time: 1 min 5 sec


Now I'll go and make sure that my macros
REALLY works as they should and try to find
out how to make the macros generate smaller
functions.


Tor Olav


Post a reply to this message


Attachments:
Download 'b-splines04_02.jpg' (22 KB)

Preview of image 'b-splines04_02.jpg'
b-splines04_02.jpg


 

From: Tor Olav Kristensen
Subject: Re: NURBS surface (91 KB)
Date: 18 Mar 2002 18:00:32
Message: <3C96705E.6F3AFAB7@hotmail.com>
Tor Olav Kristensen wrote:
> 
> - as 50x50x2 = 500 triangles in a mesh2{} shape.

And here is one more image that shows
all these triangles.


Tor Olav


Post a reply to this message


Attachments:
Download 'b-splines04_03.jpg' (91 KB)

Preview of image 'b-splines04_03.jpg'
b-splines04_03.jpg


 

From: Tor Olav Kristensen
Subject: Re: NURBS surface (22 KB)
Date: 18 Mar 2002 18:03:12
Message: <3C967117.BF5C4106@hotmail.com>
Tor Olav Kristensen wrote:
> 
> - as 50x50x2 = 500 triangles in a mesh2{} shape.
>...

Ehhmm... Sorry...  50x50x2 = 5000


Tor Olav


Post a reply to this message

From: Halbert
Subject: Re: NURBS surface (22 KB)
Date: 18 Mar 2002 22:34:15
Message: <3c96b1b7$1@news.povray.org>
That is very interesting, I cant wait to see the code behind it.





Post a reply to this message

From: Hugo
Subject: Re: NURBS surface (22 KB)
Date: 19 Mar 2002 00:39:44
Message: <3c96cf20$1@news.povray.org>
This is good news!! I'm eager to know more about it!! My friends often talk
about nurbs. I see you're using my idea of the "irregular" meshes again. Are
you still choosing a random way to connect the triangle quads, or does it
depend on curvature? It seems less random on the picture you posted.

Please tell us more!  :o)

Regards,
Hugo


Post a reply to this message

From: Hershel Robinson
Subject: Re: NURBS surface (22 KB)
Date: 19 Mar 2002 06:19:45
Message: <3c971ed1@news.povray.org>
> Now I'll go and make sure that my macros
> REALLY works as they should and try to find
> out how to make the macros generate smaller
> functions

Let us know ASAP when your macros are ready for beta testers.  I think some
of us and ready and willing!

Hershel


Post a reply to this message

From: Shay
Subject: Re: NURBS surface (22 KB)
Date: 19 Mar 2002 09:54:13
Message: <3c975115@news.povray.org>
Very nice. I have tried a web search to learn more about a NURBS surface,
but have not found any good information. Do you know of any good sites which
discuss these surfaces?

How much control do you have over the positions of the edges of the surface?

 -Shay


Tor Olav Kristensen <tor### [at] hotmailcom> wrote in message
news:3C966F97.6D011C37@hotmail.com...


Post a reply to this message

From: Gleb
Subject: Re: NURBS surface (22 KB)
Date: 19 Mar 2002 10:13:48
Message: <3c9755ac@news.povray.org>
"Shay" <sah### [at] simcopartscom> wrote in message
news:3c975115@news.povray.org...
> Very nice. I have tried a web search to learn more about a NURBS surface,
> but have not found any good information. Do you know of any good sites
which
> discuss these surfaces?

This one is about NURB curves, the basis for the surfaces:
http://devworld.apple.com/dev/techsupport/develop/issue25/schneider.html

Gleb


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: NURBS surface (22 KB)
Date: 20 Mar 2002 03:52:14
Message: <3C984C9F.C1F6AE95@hotmail.com>
Thank you for your comments.


Halbert & Hershel:

Yesterday, today and tomorrow are busy
days at work, so I will probably not be
able to post any NURBS code before the
weekend.


Hugo:

Yes, I think the meshes here ends up
quite similar to your "irregular" 
meshes. But I'm not sure yet.

For each UV-square I have two possible
orientations for its 2 triangles. And
the macro checks which of the two
possible diagonals will be in least
conflict with the location of the
surface in the middle of the UV square.
(The same macro were used for the Bezier
patch shape in the image I posted here
some days ago.)


Shay:

I'm sorry that I don't have time to
explain much now, but here are some
links to a few NURBS pages:

http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/notes.html 

http://www.cs.wpi.edu/~matt/courses/cs563/talks/nurbs.html 

http://www.ipm.sci-nnov.ru/~demidov/VRML/Splines/Intro/Intro.htm 

http://mrl.nyu.edu/~dzorin/geommodel-class/lectures.html 
(The links at this page points to Postscript files.) 

http://www.cl.cam.ac.uk/Teaching/1999/AGraphHCI/SMAG/advgraphnotes.html 


Tor Olav


Post a reply to this message

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