FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   curveVertex syntax question (newbie)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: curveVertex syntax question (newbie)  (Read 190 times)
katya

Email
curveVertex syntax question (newbie)
« on: Feb 10th, 2004, 6:22pm »

Hi-
I'm new to processing and most programming. Right now I'm practicing by finding already written code and trying to draw out on paper what I think the code will do to check my understanding.  I'm getting confused with beginShape (LINE_STRIP); however.  Why are 2 coordinates written twice when it seems to be referring to the same point? I try to eliminate different points but then clearly it doesn't work.
help
 
skloopy

WWW
Re: curveVertex syntax question (newbie)
« Reply #1 on: Feb 10th, 2004, 7:46pm »

I'm not an expert or anything, but I think that it's the nature of how catmull-rom splines (the ones used in curveVertex) are calculated.
 
The invisible points on the ends are like the tangents in beziers. They control the shape of the curve, but aren't visible. (i think)
 
I found this applet that helped me understand what was going on.
 
http://www.cse.unsw.edu.au/~lambert/splines/CatmullRom.html
 
katya

Email
Re: curveVertex syntax question (newbie)
« Reply #2 on: Feb 10th, 2004, 11:32pm »

thanks!
 
Pages: 1 

« Previous topic | Next topic »