Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can I get executable code for minimum area triangulation?
Posted

Find it on google, then steal it...
 
Share this answer
 
Comments
Albert Holguin 2-Dec-11 11:16am    
That's our top secret method! ...how dare you divulge!? lol ;D
First, how would you solve this on paper with basic algebra and trigonometry?

If you can present that, we can help you get started converting it into code if you have issues at that point.
 
Share this answer
 
Comments
Mohibur Rashid 2-Dec-11 23:26pm    
That what I say to most learner,

Do it yourself first, then you might find a way about how your computer will do it
Can you define what 'minimum area triangulation'

Is it the minimum number of triangles needed to cover the surface of a flat mesh?

With a flat mesh, find the outside lines. These will be your starting polygon.

Traverse the edges of the polygon, and everytime you find an inside acute angle, draw a line, connecting the the two non-joined points. Then use the second point as your starting point, and continue the process until the polygon is filled. As you do this, take care not to cross any existing lines. If connecting the points, causes you to cross an existing line, then continue around the inner edge until you find another acute angle that you can connect without crossing.

You can do this easily with pen and paper to seee how it works.

Draw some random polygon, and start at any intersection and work around it as described above.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900