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 & HelpSyntax Questions › triangulation and PVector
Page Index Toggle Pages: 1
triangulation and PVector (Read 1551 times)
triangulation and PVector
Jan 3rd, 2010, 5:40am
 
http://processing.org/hacks/hacks:triangulation

Is it possible to use triangulation in combination with a PVector array?
And if yes, could someone give an easy example.
Re: triangulation and PVector
Reply #1 - Jan 3rd, 2010, 8:48am
 
Quote:
Is it possible to use triangulation in combination with a PVector array?

Yes.

Basically, you just replace the Point3f by PVector. You might also replace the Vector by the more modern and faster ArrayList.
But... you need to rewrite the code in the mysterious triangulate.zip file! Probably relatively trivial, but still some work.
Re: triangulation and PVector
Reply #2 - Jan 3rd, 2010, 12:08pm
 
You mean improve the library?
Re: triangulation and PVector
Reply #3 - Jan 3rd, 2010, 4:08pm
 
Not sure if that would be an improvement, but to adapt it to your needs, yes.
Page Index Toggle Pages: 1