Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Looking for example of 2D beziers from non-rational control points...
Chronological Thread
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Looking for example of 2D beziers from non-rational control points...
- Date: Tue, 13 Feb 2018 17:07:39 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:FOG9JRIiuhnsdLmQKtmcpTZWNBhigK39O0sv0rFitYgRLPvxwZ3uMQTl6Ol3ixeRBMOHs6sC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffxhEiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhyUJNzA5/m/ZidF+grxHrx+6vRNz35TZbZuJOPZifK7Qe84RS2pbXsZWUixMGoyyb4UOD+EcPehYqIb9qEUKrRCjAgSjGu3vyj5Ghn/x0q01zeAhHBrJ3AwlBd0OsXDUoM/pO6cVVOC41a/FxijNYfNR3Dfy8onIchY5rPGNW7Jwa8vRxlM1GwPLlFWdr5HuMTCN1ukVsWWW4PBsWf+xh2MnsQ18oTaiyt0sh4THgI8e10rK+j9jwIkvIN21UE57bsCgEJtXryyaMpF5QsImQ21xoCY6xaEKtYe1fCUKxpkr3RHfa/uAc4iH5hLsSvydLit/hHJgYL6/hhCy/la8yuDkVMS530xGojdbntTMrHwA1BLe5tKHR/Zz5kuh3CyA1wHX6uFKO0A0kq/bJoY/zb4+l5oTv0PDHiDol0Xyl6KWeUAk9fKp6+TjeLnpupicN4pshgHkLqsugtC/Afg/MgUWQ2eb9v6z1Ln68ULkQbVKleE5krTCsJDBPskbva64AwpN0ok58Rq/DjGm0M4ZnXYdNl5FdgiH3MDUPUrTKqX4EeunmAbr1yx6wujPeLznGJTEaHbZ16zweK50rE9axg10xt9W49dYC6oKPenoCXP24dfXBxt8Pw2vyPv8E/180JkfUCSBGPy3KqTX5HKG56oBJOaBYMdBtTj8Jf8q6vrGgnowmFtbdq6si8hEIEukF+hrdh3KKUHnhc0MRD9T71gOCdfygVjHagZ9InO7XqYy/DY+Udv0AoLKR4Tri7uEjn7iQs9mI1teA1XJKk/GMp2eUq5VOi2XK85l1DcDUOr5EtJz5VSVrAb/joFfAK/U9ykf78+x0dF046jLmkl3+2EvScua1G6JQid/mWZaHzI=
If you use the CGAL::Gmpq number type or the number type defined by one of the predefined kernels, you can simply initialize it from double.
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On 10 February 2018 at 23:00, Stuart Hungerford <> wrote:
Hi,
I have some data files with exported control points for 2D bezier
curves of degree 2 and 3 only. The control points are exported as
floating point double precision values.
I believe to create CGAL Beziers I'll need to first convert these
floating point coordinates to rational approximations?
I don't need to perform intersections with the resulting curves, just
find their bounding boxes (AABB) and re-export them later with
floating point control points.
Does anyone have a small example of doing something like this in CGAL?
I'm working my way through the examples in the
Arrangement_on_surface_2 directory which all seem to operate only in
rationals.
Thanks in advance,
Stu
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Looking for example of 2D beziers from non-rational control points..., Stuart Hungerford, 02/10/2018
- Re: [cgal-discuss] Looking for example of 2D beziers from non-rational control points..., Efi Fogel, 02/13/2018
- Re: [cgal-discuss] Looking for example of 2D beziers from non-rational control points..., Stuart Hungerford, 02/14/2018
- Re: [cgal-discuss] Looking for example of 2D beziers from non-rational control points..., Efi Fogel, 02/13/2018
Archive powered by MHonArc 2.6.18.