[Gambas-user] opengl/ polygon triangulation
abdurrahman ulusoy
ulusoyab at ...43...
Sat Feb 27 23:06:12 CET 2010
hi
in opengl polygon drawing is problem. so polygons need to triangulation. if you are using simple polygon (http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/97/Ian/glossary.html#simplepolygon) you can triangulation with two ears Theorem.
http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/97/Ian/applet1.html
In this page you can see java source code. i convert java codes to gambas codes.
you can download gambas source code from
http://www.mediafire.com/myfiles.php ucgen-0.0.9.tar.gz
or
http://www.mediafire.com/?mzw0uz3jrnd
On drawingarea draw a simple polygon and cut each triangles.
maybe this codes add a gambas help page.
regards
___________________________________________________________________
Yahoo! Türkiye açıldı! http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
More information about the User
mailing list