Rank: 85947 based on 0 downloads (last 30 days) and 0 file submitted
photo

Andrew T

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Andrew
Updated File Comments Rating
25 Oct 2010 Polygon Clipper Given two arbitrary polygons, the routine calculates the resulting polygon ... Author: Sebastian Hölz

Hi Lian,

Please see this page:

http://www.cs.man.ac.uk/~toby/alan/software/gpc_faq.htm

GPC is the C clipping library behind PolygonClipper. What you are experiencing is not due to a shortcoming of MATLAB or Hölz' MEX code, but is instead due to a known limitation of the underlying clipping algorithm implementation.

I had the same problem you are having (I only encountered it in certain cases), and I fixed it by snapping all polygon vertices to a grid before clipping, as Murta suggests.

Btw, thank you Sebastian Hölz, you have saved me the trouble of trying to write my own GPC interface!

Contact us