POV-Ray : Newsgroups : povray.binaries.images : NURBS's Server Time
5 Nov 2024 18:23:27 EST (-0500)
  NURBS's (Message 1 to 3 of 3)  
From: triple r
Subject: NURBS's
Date: 7 Jun 2005 03:40:00
Message: <web.42a54ed6dbe6460920cb1ca60@news.povray.org>
NURBS...  NURBS's... NURBSi...?
Either way, here's the result of some work tonight with a c++ program in
p.b.s.f. to read points and output a single nurbs patch to a uv-mapped
mesh2 file with normals.  Any degree works fine for u and v dimensions.
Parses a simple input file.  Improvements planned, but here it is for now.
Still needs more testing.  Here it is finishing off a fillet nicely with a
10x10 patch, although I don't know the math to find the weight of the
middle point such that everything is perfectly circular.  Let me know if
it's useful at all, otherwise I'll assume the worst...

 - Ricky

Ooh.  Maybe I'll make it so if you leave out weights, it assumes those are 1
also - it already figures out the knot vector if you leave that out.


Post a reply to this message

From: triple r
Subject: Re: NURBS's
Date: 7 Jun 2005 03:45:00
Message: <web.42a54f8a7878ab5020cb1ca60@news.povray.org>
Oops.

 - Riicky


Post a reply to this message


Attachments:
Download 'nurbs.jpg' (9 KB)

Preview of image 'nurbs.jpg'
nurbs.jpg


 

From: triple r
Subject: Re: NURBS's
Date: 7 Jun 2005 04:45:00
Message: <web.42a55df77878ab5020cb1ca60@news.povray.org>
Okay.  Here's a little better illustration than a 3x3 patch of what it can
do.  This one's 12x9 with a 50x50 output.  Total time running the script
was about one second.  Parsing time in pov was not more than two seconds.
Just a humanoid-shape based on a grid of points lying around on my hard
drive.

 - Ricky


Post a reply to this message


Attachments:
Download 'humanoid.jpg' (20 KB)

Preview of image 'humanoid.jpg'
humanoid.jpg


 

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