Subject: CGAL users discussion list
List archive
- From: "zengming" <>
- To: "" <>
- Subject: Re: Re: Re: [cgal-discuss] how to output a point's coordinate
- Date: Fri, 6 Mar 2009 20:02:14 +0800
Thank you, I understand.
I thought the type of results would only be Point_3.
2009-03-06
zengming
发件人:
Pedro_Machado_Manh�es_de_Castro
发送时间: 2009-03-06 16:51:34
收件人:
抄送:
主题: Re: Re: [cgal-discuss] how
to output a point's coordinate
Hi!
I think that what you probably want is a Circular_arc_point_3. Since this line: assign(pt3, intersecs[0]); should not work as the type of pt3 is a Point_3 and the type of intersecs[0] is Circular_arc_point_3, your pt3 may keep to be uninitialized. "Should not work" in this case means "assign(pt3, intersecs[0]);" will return 0, but wont assign anithing to pt3. As your intersection (considering r = 1) is probably (0, 0, 0), that would "work" (because the value of an uninitialized pt3 would be (0,0,0) ). The main difference between Point_3 and Circular_arc_point_3 is that Point_3 stores rationals as coordinates while Circular_arc_point_3 stores algebraic numbers of degree 2 (Root_of_2). This happens because the intersection between 3 rational spheres (or 2 rational circles) may not be representable by rationals, however they are representable by Root_of_2. By rational spheres (circles) I mean spheres with a rational center (placed on rational coordinates) and with rational squared radius. So look at what Tom said and prefer using Circular_arc_point_3 instead of Point_3, because only the first one really works. Pedro PS: don't overlook the case where the intersection of three spheres can be a Circle_3 or even a Sphere_3. On Fri, Mar 6, 2009 at 9:22 AM, zengming <>
wrote:
|
- [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: [cgal-discuss] how to output a point's coordinate, Samuel Hornus, 03/06/2009
- Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: Re: [cgal-discuss] how to output a point's coordinate, Pedro Machado Manhães de Castro, 03/06/2009
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, Pedro Machado Manhães de Castro, 03/06/2009
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: Re: Re: [cgal-discuss] how to output a point's coordinate, Pedro Machado Manhães de Castro, 03/06/2009
- [cgal-discuss] How to rotate Segment_2, naresh, 03/06/2009
- [cgal-discuss] Sweep Line Running slow, naresh, 03/07/2009
- Re: [cgal-discuss] Sweep Line Running slow, Ophir Setter, 03/07/2009
- [cgal-discuss] Point Rotation problem or Bug ?, naresh, 03/12/2009
- [cgal-discuss] How to find center of mass and principal inertial axis of 3D model?, Samay Kumar, 03/13/2009
- Re: [cgal-discuss] How to find center of mass and principal inertial axis of 3D model?, naresh, 03/13/2009
- Re: [cgal-discuss] How to find center of mass and principal inertial, Ashwin N, 03/14/2009
- [cgal-discuss] Point Rotation problem or Bug ?, naresh, 03/12/2009
- Re: [cgal-discuss] Sweep Line Running slow, Ophir Setter, 03/07/2009
- [cgal-discuss] Sweep Line Running slow, naresh, 03/07/2009
- Re: Re: [cgal-discuss] how to output a point's coordinate, Pedro Machado Manhães de Castro, 03/06/2009
- Re: Re: [cgal-discuss] how to output a point's coordinate, zengming, 03/06/2009
- Re: [cgal-discuss] how to output a point's coordinate, Samuel Hornus, 03/06/2009
Archive powered by MHonArc 2.6.16.