We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › How to draw a curved surface
Page Index Toggle Pages: 1
How to draw a curved surface (Read 1969 times)
How to draw a curved surface
Jun 19th, 2009, 2:02am
 
Hello everybody,my question is:
Apart from the tutorials from the built-in reference in processing,where can I get more instructions about drawing curved surfaces in PDE?Can you show me some link to those materials if there is any?
Thank you indeed.
Re: How to draw a curved surface
Reply #1 - Jun 19th, 2009, 5:31am
 
Do you mean like an Arc or Ellipse
Re: How to draw a curved surface
Reply #2 - Jun 19th, 2009, 6:31am
 
or maybe http://processing.org/reference/bezierVertex_.html
Re: How to draw a curved surface
Reply #3 - Jun 27th, 2009, 6:43pm
 
I think JScriptChan is looking for something like NURBS surfaces. If you are looking for something like in this example (http://anar.ch/examples/CurvedRoof.htm), you might have a look at the construction. If you move the last slider (bottom), you see in RED the control points and in BLUE the resulting curves.

This explain a way to do it:

1-Create an array of curves (http://processing.org/reference/bezier_.html)
2-Get intermediary points on the curve (http://processing.org/reference/bezierPoint_.html), those points will become control points of curves in the other direction.
3-Create an array of curves in the second direction (you then have all the information required to create all your faces from this new set of curves)

I think there's many ways to do it, but you could think as if you are building curves on curves (in two directions UV).
Re: How to draw a curved surface
Reply #4 - Feb 10th, 2010, 6:29am
 
I have been so busy preparing my thesis last year that I haven't logged in until today Smiley.Still,my account is active and I have received so many friendly attentions,which makes me feel on top of the world. GrinOh.Thank you.Wonderful forum,nice administrators,nice guys Smiley
Page Index Toggle Pages: 1