ios - Creating a new MKPolygon from two intersecting polygons -


i know there 1 specific question talks bit old , wanted little more technical if possible.

first of take @ screenshot: https://www.dropbox.com/s/f94q3qaxrog0ec9/intersections.png

want want have happen "i see both intersect , happens not want draw 'parts' of polygon". in case draw both polygons not draw the 'path' of yellow polygon inside orange polygon. include not line fill color well.

obviously gets tricky because aren't going have exact points along path of each polygon intersect other points along polygon path. can see screenshot, in order make possible, think, need points intersect.

after , assuming can this, not know if there way use cgpathref class need do. going have re-create polygon according docs cant fill in unless closed path. how fill in polygon not interesecting without closing path??

the thing can think of "hide" parts of polygon intersect unsure how this. can offer help/insight problem??

here go. wrote objective-c wrapper around alan's gpc library. check out mkpolygon-gpc


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -