Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Effect of orientation on boolops
- Date: Thu, 8 Nov 2012 01:30:59 +0200
On Wed, Nov 7, 2012 at 10:56 PM, Shriramana Sharma <> wrote:
It's more like saying "you need unleaded petrol for your car" but not having actually check for it before you put it into your car.
Checking for validity, sometimes, is more expensive then running the procedure itself.
If we could check for validity, perhaps we could have also fix those invalid polygons....
--
On Wed, Nov 7, 2012 at 10:08 PM, Efi Fogel <> wrote:Hi -- I understand that *by the book* the polygon is "invalid", but
> What does need an explanation?
> The polygon Q in the second case is invalid. All bets are off.
I'm asking: if it is invalid, how come the algorithm for intersection
detection still works? Doesn't the algorithm check for validity? And
if it doesn't, then what is the point in having a validity condition?
(I mean, like saying "you need a visa to get into our country" but not
having the customs people actually check for it?)
It's more like saying "you need unleaded petrol for your car" but not having actually check for it before you put it into your car.
Or is it just that for "invalid" polygons the output is undefined, and
maybe sometimes right and sometimes wrong?
IMHO not checking for validity seems a good way to lead to pitfalls,
but I'm not an expert programmer so I'd appreciate an explanation as
to why things are the way they are.
Checking for validity, sometimes, is more expensive then running the procedure itself.
If we could check for validity, perhaps we could have also fix those invalid polygons....
Thanks for your patience.
--
Shriramana Sharma
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
- [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Sebastien Loriot (GeometryFactory), 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/08/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/07/2012
- Message not available
- RE: [cgal-discuss] Effect of orientation on boolops, Moore Rollo (THE ROYAL MARSDEN NHS FOUNDATION TRUST), 11/12/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/13/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/14/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Sebastien Loriot (GeometryFactory), 11/14/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/14/2012
- RE: [cgal-discuss] Effect of orientation on boolops, Moore Rollo (THE ROYAL MARSDEN NHS FOUNDATION TRUST), 11/12/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Shriramana Sharma, 11/07/2012
- Re: [cgal-discuss] Effect of orientation on boolops, Efi Fogel, 11/07/2012
Archive powered by MHonArc 2.6.18.