Subject: CGAL users discussion list
List archive
- From: "Max" <>
- To: "" <>
- Subject: Re: Re: [cgal-discuss] What't the most efficient configuration for
- Date: Tue, 10 Jun 2008 17:08:59 +0800
- Organization: Max
>Hi Max,
>
>> In one of my program, I use boolean operation of Nef_3 heavily,
>> and I found the efficiency of it became the bottleneck of the
>> program, because I need to compute the result of boolean for thousands
>> of times.
>>
>> Now I want to know, if I don't need the result to be *exact*, which
>> configuration(Kernel, Item, etc.) would be the most efficient?
>
>The best kernel usually is the
>Exact_constructions_exact_predicates_kernel. I say usually, because this
>kernel resolves into different kernels dependent upon your installation.
>So, you should have gmp installed, otherwise this kernel will not be
>efficient.
I'm a little bit confused on 'whether I have installed GMP'.
I have selected to install the pre-compiled lib's during the installation of
CGAL.
As a result, there's an auxiliary\gmp folder under the CGAL root folder.
There're
header files and lib files of GMP and MPFR for VC71 and VC80 in this folder.
I guess this is not enough to considered as "GMP installed", then I
downloaded GMP 4.2.1 and MPFR 2.2.0 and compiled with VC9.
After a lot of efforts, I finally got to link by program with these
new libs. But I could hardly detect any increase of efficiency.
This lead me to the understanding - my previous condition could be considered
as
"GMP installed". Right?
>
>Remember to use the SNC_indexed_items together with every kernel you
>use. That makes it faster. So
>
>typedef Nef_polyhedron_3<Kernel, SNC_indexed_items> Nef_3;
>
>I guess you are already doing that, aren't you?
If your have told me the difference in efficiency of the default items type
and the indexed items, I should have been using the indexed one. :-)
But the fact is 'no'. :-(
The reason should be either I haven't been told of this or I have tried
with it but have met some difficulties.
Anyway, I shifted, back or not, :-), to the indexed items type. But I found
the program behaves differently - it can even not run correctly, error arises
before it ends.
I will debug the program and report more details.
>
>Explain your scenario. Then I might can help you to improve. Do you
>always intersect a polyhedron with a plane? Do the polyhedra have
>special properties? Are they small or large? Are they convex? Are they
>two-manifold? What do you do with the resulting polygon?
Here are some aspects of my scenario:
- I'm dealing with float type coordinates of vertices of the polyhedrons
- I often intersect a nef_3 with a plane with such idiom:
Plane_3 p;
Nef_3 N = Nef_3(p).intersection(p).intersection(p.opposite());
- the original polyhedron I'm dealing with is 2-manifold.
- I convert back the resulting nef_3 of intersection into
polyhedron and calculate the geometric properties of it.
(I now this is one unnecessary step which was consuming my precious CPU
cycles,
but this should not be the bottole neck of the whole program. I've put this
in my
TODO list to handle nef_3 directly)
- I don't need the operation to be _strictly_ exact, I could
accept some level of tolerance of real type computation
- I want the configuration to be as efficient as possible.
Thank you so much for you help, Peter.
B/Rgds
Max
>
>Peter
>
>--
>You are currently subscribed to cgal-discuss.
>To unsubscribe or access the archives, go to
>https://lists-sop.inria.fr/wws/info/cgal-discuss
>
- Re: [cgal-discuss] 3D surface Mesh Generation, (continued)
- Re: [cgal-discuss] 3D surface Mesh Generation, Hui DING, 06/11/2008
- Re: [cgal-discuss] 3D surface Mesh Generation, Santosh Tiwari, 06/11/2008
- Re: [cgal-discuss] 3D surface Mesh Generation, Santosh Tiwari, 06/11/2008
- [cgal-discuss] format and viewer for the 3D surface Mesh Generation, Hui Ding, 06/12/2008
- Re: [cgal-discuss] Is there a data structure for non-manifold 3D, Laurent Rineau, 06/10/2008
- Re: [cgal-discuss] Is there a data structure for non-manifold 3D, Marco Attene, 06/10/2008
- Re: [cgal-discuss] Is there a data structure for non-manifold 3D, Max, 06/11/2008
- Re: [cgal-discuss] Is there a data structure for non-manifold 3D, Max, 06/11/2008
- Re: Re: [cgal-discuss] What't the most efficient configuration for, Peter Hachenberger, 06/10/2008
- Re: [cgal-discuss] What's the most efficient configuration for nef_3, Max, 06/11/2008
- Re: [cgal-discuss] What's the most efficient configuration for, Peter Hachenberger, 06/11/2008
- Re: [cgal-discuss] What's the most efficient configuration for nef_3, Max, 06/11/2008
- Re: [cgal-discuss] What's the most efficient configuration for, Peter Hachenberger, 06/11/2008
- Re: Re: [cgal-discuss] What's the most efficient configuration for, Max, 06/11/2008
- Re: [cgal-discuss] What's the most efficient configuration for, Peter Hachenberger, 06/11/2008
- Re: Re: [cgal-discuss] What's the most efficient configuration for, Max, 06/11/2008
Archive powered by MHonArc 2.6.16.