12,828,476 members (52,203 online)
alternative version

#### Stats

174.3K views
22 bookmarked
Posted 6 Feb 2002

# 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...

 Pro

 First PrevNext
 cut object in slicing joy_nim24-Feb-06 7:01 joy_nim 24-Feb-06 7:01
 Possible error and fix GregDude21-Jul-05 16:34 GregDude 21-Jul-05 16:34
 Robust tesselation Skavenger1-Jul-05 23:04 Skavenger 1-Jul-05 23:04
 Re: Robust tesselation [modified] Liu Guoping9-Aug-06 16:51 Liu Guoping 9-Aug-06 16:51
 Re: Robust tesselation Skavenger310-Aug-06 2:42 Skavenger3 10-Aug-06 2:42
 Problem in CPolyTri::ComputeNormal Torsten B8-Jun-04 2:43 Torsten B 8-Jun-04 2:43
 Re: Problem in CPolyTri::ComputeNormal Sebastien Maraux13-Dec-04 4:52 Sebastien Maraux 13-Dec-04 4:52
 Re: Problem in CPolyTri::ComputeNormal Sébastien Maraux14-Dec-04 0:45 Sébastien Maraux 14-Dec-04 0:45
 Area computation is bugged :you should add in CPolyTriView::OnDraw()existing : // for( int i=0 ; i < m_nPoints ; i++ ){ points[i][0] = m_points[i].x; points[i][1] = m_points[i].y; if( i ) Area+= ( m_points[i].x * m_points[i-1].y - m_points[i-1].x * m_points[i].y) * 0.5f; } //// added after for loop : Area += ( m_points[0].x * m_points[i-1].y - m_points[i-1].x * m_points[0].y) * 0.5f;Also, if area computation is only used for normal deduction, you can avoid *0.5f as it will not change area sign.
 Good Article mchapman123422-May-04 12:50 mchapman1234 22-May-04 12:50
 Found an index range error in code TruePyroman23-Feb-03 15:38 TruePyroman 23-Feb-03 15:38
 Last Visit: 31-Dec-99 19:00     Last Update: 29-Mar-17 10:04 Refresh 1234 Next »