Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Convert arrangement output point
- Date: Sun, 16 Sep 2018 15:48:59 +0300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:QziOEBOMg7QxE4ucMSMl6mtUPXoX/o7sNwtQ0KIMzox0LPX5rarrMEGX3/hxlliBBdydt6obzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSgIOT428mHZhMJzgqxGvhyuuwdyzJTIbIyPLvdyYr/RcNEcSGFcXshRTStBAoakYoUAAeoBPPtToYn6p1sBsxS+ARSnCeTxxT9Gh3/206o60+s/HgHCxwEgENcOv27VrNXxLqsdTee1zKzRwDjFcvhY2i/95ZDWfhw9pfyAR7F9fMrLxUUxCg/Jkk+cpZHnMj+I0OkGrnKV4PB6Ve21jm4qswFxrSarxscrkoTJg5gaylHA9Slg2IY1K8C0RFd1YdK5EpZcqjuWN4RxQsMlTGFovDg1xqcatp68eSgG0JUnxxjBZPyba4WE/A7vWeKLLTp7hH9pYqyziwuu/US61+HxVNS43E5PriVfk9nMsn4N1wbU6siCUvZy4Emh2TeB1wDU5eFLP0Q0mLHUK54k2LEwl54TvV7fES/xnUX6lLWWeVk8+ui09+TnZa3rqYOTN4BujgHyK7khms2kAeskLwgORHOb9P+n1Lzj+E35WK9Fguc3kqnfqpDaJN4UqrS3Aw9Pgc4f7EO0AD6ildgZhnIaN0lteRSdjoGvNUudDur/CKKSjVXkvjBkyvSOarDvA5vKIXXHuLjkdLd5rUVbzVxgnphk+5tIB+RZc7rIUUjruYmAV05rA0mP2+/iTe5F+MYbUGOLDLWeNfqL41CN7+MrZeKLYd1M4WqvG70e//fryEQBtxoFZ6DwhMkYbXm5GrJtJEDLOSOx0OdEKn8Du08FdMKviFCGVmQNNXO7XqZ5/j9iTYz/Ut6FSYeqj7iMmiy8G88Oaw==
If you absolutely need to use a vertex position as a circle center, you cannot use Arr_circle_segment_traits_2.
In this case you need to resort to a more "powerful" traits, such as the Arr_algebraic_segment_traits_2 traits.
Sqrt_extension cannot be converted to Rational without loss of data.
Naturally, managing, e.g., segments, by the Arr_algebraic_segment_traits_2 is less efficient then by the Arr_circle_segment_traits_2.
So, make sure that the above is a must. For example
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
Hi,I define arrangement:typedef CGAL::Cartesian<CGAL::Exact_rational> Kernel;
typedef Kernel::Circle_2 Circle_2; typedef CGAL::Arr_circle_segment_traits_2<Kernel> Traits_2; typedef CGAL::Arrangement_with_history_2<Traits_2> Arr_with_hist_2;
and I want to get a vertex position and use it for creation new circle in the arrangement but I should use a Point with rational type as circle position while the type of vertex position is Sqrt_extension and CGAL do not convert Sqrt_extension to Rational. Now I do not know how to convert Sqrt_extension to Rational such that do not loss data.(convert exactly)
- [cgal-discuss] Convert arrangement output point, Morteza Manavi, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Morteza Manavi, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Morteza Manavi, 09/17/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Morteza Manavi, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
- Re: [cgal-discuss] Convert arrangement output point, Efi Fogel, 09/16/2018
Archive powered by MHonArc 2.6.18.