12,399,799 members (47,765 online)
alternative version

170.6K views
21 bookmarked
Posted

# Tesselation of Mono Connected Non Convex Polygon

, 6 Feb 2002 CPOL
 Rate this:
Tesselation of mono connected non convex polygon

## Introduction

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.

## History

• 6th February, 2002: Initial post

## Share

 United States
No Biography provided

## You may also be interested in...

 View All Threads First Prev Next
 Better tesselation jeckle8-Feb-02 9:00 jeckle 8-Feb-02 9:00
 Re: Better tesselation pepito10-Feb-02 22:05 pepito 10-Feb-02 22:05
 A more little explanation about my article. In order to tesselate the polygon i use this tecnique: First compute the normal of polygon (i use the newell method see Graphic Gems..) For each sequence of three vertex ( i, j, k ) in the polygon compute the vector area (alias normal of triangle). If the normal go in the opposite direction of polygon normal the triangle is 'concave' and go ahead. If the area il 0.0 the point j is alligned from i to k and eliminated from the list of vertex. If the normal of triangle is in the same direction of polygon normal the triangle is convex. In the last case check if any other point is inside the triangle (the IsPointInside function). This function test if the point is on solid angle ik ^ jk. if this is true compute distance of intersection k->point to line ij and test distance. If all is good emit triangle, remove vertex j from list and go to the next triplet.... The reason for wich i posted this article is that i don't find this tecnique in any book or article and ave a doubt about the mathematical basic of my algoritm In other words is true that it work in any case ? (my experience ask yes but is very far from a theorem...) The Delauney algortim work fine but is 'computational' more expensive than my algortim (using my Delauney implementation) for this reason i try this way. At the end my apologize for my poor english but my sincerly idea is to contribute to codeproject and suggest a way to resolv a problem that i found. Thanks pepito.
 Re: Better tesselation jeckle11-Feb-02 10:46 jeckle 11-Feb-02 10:46
 Re: Better tesselation Rick York11-Feb-02 10:53 Rick York 11-Feb-02 10:53
 Last Visit: 31-Dec-99 18:00     Last Update: 26-Jul-16 7:53 Refresh 1