Polygon Clipper
by Sebastian Hölz
25 Oct 2005
(Updated 04 Oct 2006)
Given two arbitrary polygons, the routine calculates the resulting polygon ...
|
Watch this File
|
| 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. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| 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. |
|
Contact us at files@mathworks.com