Click here to Skip to main content
Click here to Skip to main content

Tesselation of Mono Connected Non Convex Polygon

By , 6 Feb 2002
 

Sample Image - PolyTry.jpg

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

License

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
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralRe: Very poor article on very interesting subject...memberAnonymous10 Feb '02 - 15:33 
Does putting my name on a post make me an anonymous coward? Get a life George.
 
Gary McHale
 

GeneralRe: Very poor article on very interesting subject...memberNish [BusterBoy]10 Feb '02 - 16:32 
Anonymous wrote:
Does putting my name on a post make me an anonymous coward? Get a life George.
 
Gary McHale

 
That's a point. But since it is an anonymous post [you aint logged in] anyone can use that name, you see. But I kinda trust you, dunno why Smile | :)
 
Regards
Nish
 
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.

 
I like to Jig | [Dance] on the Code Project
 
Sonork ID 100.9786 voidmain
www.busterboy.org
QuestionIs the artical "fill in the blank"?memberJason De Arte7 Feb '02 - 13:57 
Or is it a code "Ad-Lib"? Roll eyes | :rolleyes: (the childrens fill in the blank language game, not the old sound card company)
____ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ________ ____ ____
AnswerRe: Is the artical "fill in the blank"?memberNish [BusterBoy]7 Feb '02 - 23:13 
Articles have to have a minimum num of words. He is probably using the dashes as padding.
 
Nish
 
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
QuestionWhy?memberAnonymous7 Feb '02 - 11:24 
Why would you do something like this? What practical application does this have?
AnswerRe: Why?memberasim_u7 Feb '02 - 11:57 
Ever programmed in 3d?
 
Tesselating (or triangulating) polys to triangles is a very good
thing for graphics cards to optimise. Makes things go zip...
AnswerRe: Why?memberJosh Knox8 Feb '02 - 5:48 
A 3D graphics pipeline often is optimized to handle triangular polygons. Since many polygons aren't necessarily triangles, tesselation breaks up polys into triangle segments.
 
Josh Knox
that-guy.net

"Before you criticize someone, walk a mile in their shoes. That way, when you criticize them, you're a mile away, and you have their shoes." - author unknown
AnswerRe: Why?sussAnonymous8 Aug '02 - 7:55 
Because current hardware is optimized for triangles and not polygons of an x number vertices.
 
Elmar
AnswerRe: Why?sussGernot20 Aug '02 - 2:09 
Big Grin | :-D I have a polygonal load you can apply on a surface. Now I must reduce the load to triangles (or quads) in order to get them into an FEA program.
 
Gernot.

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 7 Feb 2002
Article Copyright 2002 by Peppino Sbargzeguti
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid