Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Taking bounds, equality and transforms of Bezier curves?
- Date: Sun, 18 Mar 2018 22:40:20 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:tKcP3hEHwlLSBQH5y4wxJp1GYnF86YWxBRYc798ds5kLTJ78r8WwAkXT6L1XgUPTWs2DsrQY07GQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDSwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd4QBD+QAPe1Fr4f9oFQOogW6BQKxA+7g1DFIhn743a093OQuDwXG0RcvH9ILqnvUrdH1OL0OXuCyyanF1DPOZO5Y1zf67YjHaBEhofeUULJ2a8Xe0lIgFwfbgVmKtYPlODaV2vwMs2id9epgVPigh3QpqwFrpDWk28QiipHRi48XxV3I7zh1zJg1KNGiS0N2b8SoHZRUuiycKoB4WNktQ3tytyY/0rAGuYC0fCwNyJk/wh7Qcf2Hc4yR7hL7W+adPS50hHxqdb+7nRqy/k+gyurzVsmwzllGtDZKkt7JtnwV1hzT7NaISudl80qj1juDzR3f5v9ELEwulqfWJYQtz7E0m5YLtETMBC72mEH4jK+McUUk//Cl5PrpYrXnqJ+cMIB0hR/6Mqk1lcy/BP43MgkKX2SB5eu807jj8VXjQLpWlv02jrXZsJfCKMsHqa62GQtV3p8+5Ba+FDepzMkYnWIcLF9eYxKGj43pO0nUL/ziDPe/hU6skDZxyPzcML3hGMaFE37Yjb20faph81UOj00o3NVH7tRVDKsAKbT9QAjqpdnAB1g4NQKzhO3oAdE42oIFUn+UGfylN/bZvlaMo+4uOOKRf5Q9uTDnKvFj6eS9o2U+nAowc6jh85wYZXTwSvloIkuebnfoqtgEGGYO+AE5Sbq52xW5TTdPaiPqDOoH7TYhBdf+VNaRdsWWmLWEmRyDMNhTb2FCBEqLFC6xJYqBUvYILimVJ504y2BWZf2aU4YkkCqWmkri0bM+d7jb/yQZsdTo090nv7SOxyF3ziR9CoGm60/IT2xwmTlVFTo/3aQ6uUMlj1nfgO53hPtXEdEV7PRMAF83
Hi Stu,
First, I'm glad that you are using it and finding out all kind of missing features.The operations you mention could definitely be implemented within the traits class.
In other words, if we implement an operation in one traits class, we would implement it in all (or at least several).
This way the implementation is more complex (see algorithm below) and gets even more complex when 2D arrangements embedded on non-planar surfaces are taken in account, but more is gained.
Input: C1, C2, intersections = empty
------------------------------------
Compare the left-most point. ------------------------------------
If not equal return the comparison result.
Otherwise (the left-most points are equal)
Compare to the right of the point.
If not equal return the comparison result.
Compare to the right of the point.
If not equal return the comparison result.
Otherwise (they overlap)
If intersection is empty, compute the intersections
Remove the first overlapping section from c1, c2, and intersections.
If intersections is empty
Compare the right-most point and return the result
call recursively with c1, c2, and intersections, and return the result.
On 17 March 2018 at 23:14, stu002 <> wrote:
Hi,
I'm working with cubic Bezier curves as defined in
CGAL::Arr_Bezier_curve_traits_2, the Curve_2 class.
Can I confirm there's no equality operator for these curves? (I know I can
test the equality of the four control points myself but this seems like
functionality that belongs in the class).
Can I confirm there's no bounding box function for these curves? (I know I
can get a non-minimal AABB from the bounding polygon, but a minimal AABB is
trickier and it seems like functionality that belongs in the class. It looks
like the implementation classes have some kind of bounds stored too?).
Can I confirm there's no affine transform function for these curves? (I know
I can transform the four control points myself but this seems like
functionality that belongs in the class).
Thanks,
Stu
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
--
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] Taking bounds, equality and transforms of Bezier curves?, stu002, 03/17/2018
- Re: [cgal-discuss] Taking bounds, equality and transforms of Bezier curves?, Efi Fogel, 03/18/2018
- Re: [cgal-discuss] Taking bounds, equality and transforms of Bezier curves?, Stuart Hungerford, 03/19/2018
- Re: [cgal-discuss] Taking bounds, equality and transforms of Bezier curves?, Efi Fogel, 03/18/2018
Archive powered by MHonArc 2.6.18.