Subject: CGAL users discussion list
List archive
- From: houes <>
- To:
- Subject: [cgal-discuss] Nef_polyhedron_2 with Epick kernel
- Date: Fri, 27 Apr 2018 17:37:39 -0700 (MST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:0RMGhRSW2Q0E7VpDjZ/aZ+1lutpsv+yvbD5Q0YIujvd0So/mwa69ZBCN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/m/XhMJuj6xVvR2uqABwzYPPfIGYNuZycr/Bcd8GW2ZMWNtaWSxbAoO7aosCF+oBPeFFr4bjvFsFsByzBQ2tBOPgyj9Imn/23aon0+s/CgHLxwMgH9cUv3TVqNX5LrsdUeewzKTRyzjIcv1Y2TD46IfScxAhp+mBXbRqfsXK0kYvEx3Kgk+MpoziOjOY0PkGvWuD7+d4SO6iinArpxtvrjWvyMogkJTFi4wbx1ze9yh13oA4LsCiRkFhe96rCp5QujmaN4RoRsMiRHlluCA1x7Ecv560ZjMFx48jxxHBcfCIb4+I4hf7WOaQJzd3mm5ldaqiixuz70Ss0PPwW8m63VpQsyZInNfBumoP2hDN8sSHT+Fy/kal2TaBzQDT7eRELFgwlaraJJ4hwqIwlpoUsUTeACD2g177jKCTdko+++io7/7rbanhpp+ZL4N0kB3xMrwymsyjBuQ1KhQBX2eB9uS4zbHs4Ez5QK5Wgf0rianZq4vXJd8bp668Gw9ayJwv6xe5Dze80dQXh2MLLFxfeEHPs4+8MF7HJLX0DOy0nk+3uDZt3fHPeLP7UbvXKX2WkLD8cK01v0pdxwovzddC6ol8BbQIIfa1UUj04o+LRiQlOhC5lr60QO520ZkTDDrWU/2pdZjKuFrN3doBZuyFZYsbojH4cqF36PvnjHt/klgYL/LwgcknLUugF/EjGH23JGL2i45YQ2gPtws6CuftjQ/aCGMBVzOJR6s5owoDJsemAIPEH93/huDH2i6xFJlbIGtBDwLVHA==
Hello. I encountered 2D polygons that are not closed. These polygons are
formed by the intersection of a set of oriented lines. And I want to
construct Nef_polyhedron_2 to represent them. So I can use the new
representation to do union operations among open/closed polygons.
The problem I found with Nef_polyhedron_2 is that it only support *integer*
construction.
What I want to do is define two lines, and define two Nef_Polygons using
these two lines, and do the intersection, just as in the sample
nef_2_intersection.cpp, but with *double number type*.
Suppose my lines are l1=(1.5, 2.4 , 3.1), l2=(-1.1, 2.3, 5.7). I have found
no way to represent them using Nef_polyhedron_2::Line, since in the example:
typedef CGAL::*Exact_integer *RT;
typedef CGAL::Filtered_extended_homogeneous<RT> Extended_kernel;
typedef CGAL::Nef_polyhedron_2<Extended_kernel> Nef_polyhedron;
only Exact_integer seems to work. I change this to CGAL::Gmpq,
CGAL::M_float, etc. all gives compiling error.
So is it that Nef_polygon only work with integer number type? Since all my
lines, planes using Epick kernel, I really want Nef_polygon to work with
double coordinates.
I also checked the sample code in Nef_3/handling_double_coordinates.cpp,
however it needs to first define a CGAL::Polyhedron_3<Epeck>. In my case,
the intersections of my planes are open, I cannot obtain a Polyhedron_3
first, so this does not solve my problem.
Hope some one could help me.
Thank you very much.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Nef_polyhedron_2 with Epick kernel, houes, 04/28/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Adrien Lefieux, 04/28/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Efi Fogel, 04/28/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, houes, 04/29/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Efi Fogel, 04/29/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, houes, 04/30/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Efi Fogel, 04/29/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, houes, 04/29/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, houes, 04/29/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Efi Fogel, 04/28/2018
- Re: [cgal-discuss] Nef_polyhedron_2 with Epick kernel, Adrien Lefieux, 04/28/2018
Archive powered by MHonArc 2.6.18.