|
|
| File Information |
| Description |
The Polygon Clipper (based on the gpc-library) is used to performe algebraic operations on two polygons.
Given two arbitrary polygons (which may self intersect, may contain holes, may be constructed of several contours) the Polygon Clipper is used to calculate the resulting polygon for the operations diff, union, AND, XOR.
All polygons are specified as structures as described in the example.m-file.
Credit for the gpc-library goes to Alan Murta (s. ReadMe.txt). |
| Acknowledgements |
This submission has inspired the following:
Polygon_Intersection
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Other requirements |
The supplied dll should work under Windows, however if the c-files need to be recompiled for other OS, an appropriate c-compiler is needed. |
| Zip File Content |
|
| Other Files |
gpc.c, gpc.h, gpc_mexfile.c, gpc_mexfile.h, PolygonClip.dll, ReadMe.txt, PolygonClip_example.m, PolygonClipper_Example.png
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 12 Jan 2006 |
Pancho Blu
|
|
|
| 03 May 2006 |
Murray Thomson
|
|
|
| 27 Jul 2006 |
Emily Hinz
|
|
|
| 03 Aug 2006 |
je che
|
|
|
| 01 Feb 2007 |
Jaeyoung Jung
|
|
|
| 12 Apr 2007 |
Gerald Dalley
|
|
|
| 23 Apr 2007 |
moho atc
|
|
|
| 02 May 2007 |
Ramtin S
|
|
|
| 02 Dec 2008 |
Stanley
|
|
|
| 20 Jul 2009 |
Terrance Nearey
|
|
|
| 13 Oct 2009 |
Dominic
|
|
|
| 27 Oct 2009 |
Sam Cape
|
|
|
| Updates |
| 01 Nov 2005 |
Memory hole fixed in the mexfile (gpc_mexfile.c), which could lead to segmentation violation. |
| 02 Nov 2005 |
Catching error with empty hole field (xyz.hole=[];), minor changes. |
| 18 Aug 2006 |
Changes according to suggestions of je che (3.8.2006)
- Removed file "Example.m", which somehow slipped into the zip-file.
- Changed comment style in "gpc_mexfile.*" |
| 04 Oct 2006 |
In the version from August 2006 I accidently deleted one line from the mexfile, which created a serious memory leak. This has been fixed in this version and anyone using the older version is advised to update. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com