Subject: | internal boundary deleted |
Date: | Sat, 10 Oct 2009 19:25:33 +0000 (GMT) |
To: | bug-Math-Geometry-Planar-GPC-Polygon [...] rt.cpan.org |
From: | Chris Heys <christopher_heys [...] yahoo.co.uk> |
There seems to be a tiny buglet in gpc-polygon-0.05 . Or at least a peculiarity of which one needs to be aware, when using this otherwise most valuable resource. This input file describes two triangles which have one side in common :
2
3
4 2
2 5
7 6
3
3 9
7 6
2 5
The unclipped output file looks like this :
1
4
7 6
4 2
2 5
3 9
the triangles having been treated as one quadrilateral. This may occasionally be what is wanted, but usually it isn't. Interposing another polygon, one with zero vertices, does not help. Can this behaviour be switched off ? And if it can then could the module give us access to the switch ? We gather that Eric Wilhelm feels he has done his share, but if somebody else could sort this out then I for one would be most grateful.
I am running Perl 5.8.8 under XP.