Click here to Skip to main content
15,905,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C # implement Polygon Filling Algorithm, and determine whether it contains the polygon in the island. The main problem now is how to determine the island's existence. Thank you.
Posted
Comments
Sergey Alexandrovich Kryukov 22-May-11 3:34am    
Filled polygon is already available in both System.Drawing and WPF. Or is that just a school assignment, for exercise?

As to the island, yes, good problem, but pure mathematical, it has nothing to do with programming.
--SA
pucx 22-May-11 11:06am    
It's not a exercise or a homework.I will use it in my work.
Sergey Alexandrovich Kryukov 22-May-11 13:56pm    
Great. In this case, why do you need the polygon filling? You can use available functionality.

Polygon island is the different story. Pure mathematics, as I said. I see you don't have an answer yet. Could you explain why you need to find out the islands and what do you want to do with them? What's the ultimate purpose of this? Maybe I'll think of something, cannot promise though...
--SA
pucx 23-May-11 23:37pm    
I am now using C # for the secondary development of AutoCAD, which will need to involve judgments island polygon.When I judge a polygon island, I can well handle different polygons, and then calculate the area and filling and so on.So I need you help to solve this Algorithm for Determining the island.Thank you very much.
Sergey Alexandrovich Kryukov 24-May-11 21:29pm    
Understand, thank you. By the way, every work I have done with AutoDesk file tells me it is a disaster. Bad software.
--SA

1 solution

I recomment this

http://www.codeproject.com/search.aspx?q=flood+fill&sbo=kw[^]

Also, your 'question' reads like you posted your homework question here without doing any work. That's not what we're here for.
 
Share this answer
 

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