Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Fwd: Triangle_3_Segment_3_intersection question

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Fwd: Triangle_3_Segment_3_intersection question


Chronological Thread 
  • From: Pierre Alliez <>
  • To:
  • Subject: Re: [cgal-discuss] Fwd: Triangle_3_Segment_3_intersection question
  • Date: Thu, 13 Aug 2009 09:55:30 +0200
  • Organization: INRIA

dear Matthew,

the behavior was not intentional and yours is better: can you provide us with your current function?

thank you,
Pierre Alliez
INRIA Sophia Antipolis - Mediterranee 
Project-team GEOMETRICA 
http://www-sop.inria.fr/members/Pierre.Alliez/
Tel: +33 4 92 38 76 77
Fax: +33 4 97 15 53 95


Matthew Denno a écrit :
Hi All,

So I have implemented a solution for my question below.  If the object returned is a segment I check to see if it is degenerate.  If it is I convert its source end to a point.  This seems to work ok.  However, I am still interested to know if this is the intended behavior or not?  Anyone have any thoughts?

Regards,

Matt

---------- Forwarded message ----------
From: Matthew Denno <>
Date: Mon, Aug 10, 2009 at 10:17 PM
Subject: Triangle_3_Segment_3_intersection question
To:


Hello,

I have a question regarding the Triangle_3_Segment_3_intersection function that is in CGAL3.5b1.  Should it ever return a degenerate Segment_3?  Seems like it should return a Point_3 instead.  Not sure if this is a bug, is the intended behavior, or I am doing something wrong. 

The situation that is giving me the degenerate segment is the intersection of a coplaner triangle and segment where the end of the segment is touching the edge of the triangle.

I can send a simple example if anyone is interested.

Thanks,

Matt




Archive powered by MHonArc 2.6.16.

Top of Page