Subject: CGAL users discussion list
List archive
- From: Haz <>
- To:
- Subject: Re: [cgal-discuss] Passing face_handles
- Date: Tue, 21 Apr 2009 23:38:51 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pOQrbWhugrCRvD06WG9PNMh0JvCCg+6VpyvgDQFbC2MibDc7WXg3NqSwIqh/EH/kNK kqCqTebBbRf9ms504OkiIN1gZe5VEEhRqwQBLtbcRu2Y/N9Iz5JbR7a3fZ+t7/4a1Mkr oJ+hj+ryFQ/a/tPqEho/iY4TDvy5azxFM/7TM=
No the function didn't modify the triangulation in any way, it was just comparing triangles and their relative angles/orientation and I commented out everything but one line (so the debugger would have something to stop on) and still same weird issue. Simply passing the face_handle seems to screw it up, with using pointers being the only way I found to not have it change.
On Mon, Apr 20, 2009 at 8:08 AM, Laurent Rineau (GeometryFactory) <> wrote:
On Monday 20 April 2009 04:03:18 wrote:If your function CheckWall modifies the triangulation, handles to faces
> Hi all, I'm having issues with passing cgal objects and variables, ie when
> a valid face_handle is passed to a different function it suddenly changes
> all its values etc
>
> Face_handle current = surface[i], test = surface[i]->neighbor(j);//current
> and test are both fine
> CheckWall(current, test, &hazardType, &tested, &numTested);//inside
> CheckWall() their values are completely different
may be modified (like iterators of a vector when you insert things in it).
--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] Passing face_handles, redheadpunk, 04/20/2009
- Re: [cgal-discuss] Passing face_handles, redheadpunk, 04/20/2009
- Re: [cgal-discuss] Passing face_handles, redheadpunk, 04/20/2009
- Re: [cgal-discuss] Passing face_handles, Laurent Rineau (GeometryFactory), 04/20/2009
- Re: [cgal-discuss] Passing face_handles, Haz, 04/22/2009
- Re: [cgal-discuss] Passing face_handles, Laurent Rineau (GeometryFactory), 04/22/2009
- Re: [cgal-discuss] Passing face_handles, Haz, 04/22/2009
Archive powered by MHonArc 2.6.16.