ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Vector Objects - intersection or merge

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
haida2 Posted - Jun 28 2012 : 09:16:27
Hi @all,

is it possible with TImageEnVect to get the intersection of two polygons?

I need to calculate the area of this intersecting polygon. A workarount would be to merge the two polygons and then subtract this area value from the sum of the single areas.

Is one of these possible? I did not find something in the help nor in this forum.

Thanks a lot!
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jul 20 2012 : 13:50:15
Hi,
TImageEnVect cannot calc the intersection of two polygons.
Anyway on the internet you can find are several algorithms (you can get each polygon point from TImageEnVect) ready, and also free libraries (ie http://www.cs.man.ac.uk/~toby/alan/software/gpc.html).