Click here to Skip to main content
13,763,812 members
Click here to Skip to main content
Add your own
alternative version


23 bookmarked
Posted 6 Feb 2002
Licenced CPOL

Tesselation of Mono Connected Non Convex Polygon

, 6 Feb 2002
Rate this:
Please Sign up or sign in to vote.
Tesselation of mono connected non convex polygon

Sample Image - PolyTry.jpg


A simple alternative to OpenGL polygon tesselation callback. You can focus on file triangle.h that contain the class to evaluate convexity of polygon and tesselate the polygon. No extra points are inserted. You can work only with planar polygon also in 3D.

Every suggestion in order to speed up the class and create better tesselation ('better' triangles) is appreciated.


  • 6th February, 2002: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Peppino Sbargzeguti
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralProblem in CPolyTri::ComputeNormal Pin
Member 1923618-Jun-04 2:43
memberMember 1923618-Jun-04 2:43 
Change the line:

for( register int i=0 , j=1 ; j < nPoints ; i++ , j++ ){

for( register int i=0 , j=1 ; i < nPoints ; i++ , j++, j=j%nPoints ){

and normal of the polygon will be calculated correctly.

GeneralRe: Problem in CPolyTri::ComputeNormal Pin
13-Dec-04 4:52
suss13-Dec-04 4:52 
GeneralRe: Problem in CPolyTri::ComputeNormal Pin
Member 115806814-Dec-04 0:45
memberMember 115806814-Dec-04 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web05-2016 | 2.8.181113.4 | Last Updated 7 Feb 2002
Article Copyright 2002 by Peppino Sbargzeguti
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid