Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment
Chronological Thread
- From: Kevin Morgan <>
- To:
- Subject: Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment
- Date: Mon, 29 Nov 2021 15:35:16 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-data: A9a23:EEsULq9keA6/b02xXSk0DrUD7H+TJUtcMsCJ2f8bfWQNrUpzgWRTzTYZC2uEP6ncZWL0eth0YIrnpk0PsJDXzdZrGnM5pCpnJ55ogZqcVI7Bdi8cHAvLc5adFBo/hykmh2ipwPkcFhcwnT/wdOi+xZVA/fvQHOOlUbSVYnoZqTJMEU/Ntzozw4bVvaYz2bBVMyvV0T/Di5W31G2Ng1aYAUpIg063ky6Didyp0N8uUvPSUtgQ1LPWvyF94JvyvshdJVOgKmVfNrbSq+ouUNiEEm3lExcFUrtJk57+e0wOB6HXZE2A1isQVK+ljRxP4Cc1187XNtJGMRYR22jPxoohjokc3XCzYV9B0qnkmvoYXARJVXsmZPZu97rOIHz5usuWp6HDWyS0maU/UR5e0Yowo74rWwmi78cwIz8EalWPhvm93amgYvJ9g9wqasjtJoIW/H96pQw1p94yGcWZBfrevIoAmm8k3JUWW6yPNpMNMm83KknUPEhmJHM8DbYSnMOJj1/DaRlmqXeB/PJisyyO2GSdy5DoOdvRP8OPHIBbwhfeqWXB8GD0RBodMbSiJfO+2irErofycenTA+r+1YFU98KGRHWWz20XTQITDB61/aj/hUm5VNZSbUcT/0LCaIBaGFODFrHAs9+Q+RZofSLwn/JfFuQ77EeGza+8D8OxGD0fVjAYADA5nJZeeNHpv2NlW/vmADVutPueTnf1GnK8xd+tEXB9EFLurhPogefIDxcPbW3zYt/yog5fLZOI
- Ironport-hdrordr: A9a23:DYDUyq6ujaUeOEP+wwPXwPHXdLJyesId70hD6qkRc20tTiX8raqTdZsgpHrJYVoqKRMdcJW7Scq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SQXiPDbOBMKPOrV+I4foiLPWDZIAPvDbxMuUq5//1jXAlhF8dZrKp0IAMaHG4G/RmO1+WbWDtgtcHC2cKvxAxQPbkiF2YAnZuYW2vVfc8+i0jE9DhSpzSQ5ikxr2HxiayWJNMIXtXD0iFVnbueYLDUPgFbGeeI9RqjycfBoWnUJIr9Q2rsFr616Z/NbiTvTYJsIrqktlz/eza0x8osidlCtyUlGCLQWYzlWwBQ3o63bt0vFdmmWqFyrVyv/FICYlT++9RSVV9coXNyvRzTdH0QAPIONmTD023R82vRjA3QNV2yNAHZwNxGs6pkwvYjBatVrQanrjOCJ0v+b/HxFDwIdx8wjDIzvoPlV4jF+hCK2ygzot47QfaAcadkVucmLu7M/5EhXXl+2KKzG7It0ZdBl0jGZ7ZVGwSMxOF5e/y4VnPGufG4VsPPQ5IyMrEIaxPOISBZbBuS/LqOdCYaGW0yT/Y7fegw7qNaM/1fjxY0nmMTkcDlA8X8DCNMg1sXk+c
Hi Ahmed, Efi,
Thanks for your reply.
I'll take a look at Arr_algebraic_segment_traits_2. I can't tell yet, but it might be what I need.
I'm aware that the intersection of two beziers is not necessarily rational. It seems like an odd design choice to me that the bezier_traits_adapter would only take rational control points, yet would add algebraic vertices to the arrangement that cannot be connected via an edge to any other vertex. Especially since the intersection itself is a vertex that connects via monotone edges to other vertices.
I have looked at the code, and I do understand the underlying exact representation, and the issues around it, but wonder if there might not be some way to support algebraic vertices in such an arrangement, or at least to connect those vertices to each other or to other rational vertices.
Anyway, thanks for your help.
Kevin
On Mon, Nov 29, 2021 at 8:56 AM Efi Fogel <> wrote:
I, of course, second Ahmed's explanation.Let me add and say that the Arr_algebraic_segment_traits_2 geometry traits does support algebraic coordinates and so you may want to consider it as an alternative.____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/On Mon, 29 Nov 2021 at 15:02, Ahmed Essam <> wrote:Hi,As stated in the error message, the intersection point of the Bezier curves does not have rational coordinates (but rather algebraic). Bezier curves in the Arrangement package require that their control points be rational, and hence you can't use these points as control points.This is to be expected since the intersection point is the solution of two non linear equations representing the curves.Best,Ahmed.On Mon, Nov 29, 2021, 8:17 AM Kevin Morgan <> wrote:Hi,I'm using a CGAL::Arrangment and am trying to connect edges to the intersection of Beziers.In the application, I'm getting a precondition violation, complaining that the intersection is not rational.I tried to construct a synthetic example to reproduce the problem, which I've posted on stackoverflow, and it gets a segfault.But, assuming the segfault is just a bug, my question is really about the intended API for Beziers. Is it possible to connect an edge to a vertex which is the intersection of two Bezier curves? If so, what's the mechanism I'm supposed to use to avoid the precondition violation?Thanks in advance for your help.Kevin
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
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] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Kevin Morgan, 11/29/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Ahmed Essam, 11/29/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Efi Fogel, 11/29/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Kevin Morgan, 11/30/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Efi Fogel, 11/30/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Kevin Morgan, 11/30/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Efi Fogel, 11/30/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Kevin Morgan, 11/30/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Efi Fogel, 11/29/2021
- Re: [cgal-discuss] Using Bezier-Bezier intersections as vertices in an CGAL::Arrangment, Ahmed Essam, 11/29/2021
Archive powered by MHonArc 2.6.19+.