Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Speeding up 3D Alpha Calculation
- Date: Wed, 20 Jun 2018 08:49:35 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:f/CK+hRAoKmUbuas8M0aA9sxnNpsv+yvbD5Q0YIujvd0So/mwa6zZBaN2/xhgRfzUJnB7Loc0qyK6/2mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbN/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4KB3RRLmiioKOSc1/H3Yh8dtiK5WoA6tqxl5zoXJYo+aKeB+c7vAc90ES2pPXsVfWSJPDYyzbYQAE+UPMP1Er4T/vVYCsQeyCAeuCe7p1zRGhmX23ao/0+k5Hw3IwRIvEMkUv3TPsNX1NbkdUeaox6fOyjXDdfJW2TDh6IPVdhwvoO+DXbV1ccXP1UkvDQPEgFWKpoP5IzOV0f4Nsmie4+ZuSOmijHUnqwV2oji1x8csjZXJipgQylDA7ih5z4M1Kse5SE5/e9KrDJxQtySDOoZwX8gsTWZouCMgxb0Hv562ZC4Kx448yBHEb/yIbZKE7Q7kVOaUOTt4i3NleK6/hxav6kes0PHzVs6x0FtMsyFLkcHMu2gT2xDP7sWLUPhw80e71TqSyQze6ftILV02mKbFM5IswL09moANvUnMHyL6glj6gauYe0k++OWl6+Lqaaj8qJCGLY97kAT+P7wumsOhBeQ4NRADX22B9uS90L3v5EP4QK9WgvEvnKnVrZLXKdoBqq62BA9V1Ykj6xKhADu8zNsYmnwHIEpEeBKBkYfpJ0nDLO7kAfq7mVihkzdmy+rbMrH/AZjBNGXPnbX/cbpl7k5T0gszzdRR55JODbEBJer+WlT1tNzfFB85Mgu0w/r9BNV40oMTQm2PAqqDP6PTtV+E/P4gI+6JZIMNojbyN+Al5+LyjX8+gVISYaap0oETaHyhA/tmIl6ZbmbxgtcaCmcHpRE+TezviF2aSzFffXeyX6Qm5jE6Eo2qF4nDRpr+yICGiSy0F5kTamFdAU2XCl/pcZ+FUrECcnG8OMhkx3Y/WLKoUJMg2BfmkAjgyr17Zqr79yoduI75xfZ87PHUjwBzv3QgFMCayWCKUydxmksHQjY32OZ0pkkrmQTL6rRxn/ENTY8b3PhOSApvaMaFnr5KTuvqUweERe+nDVOvQ9GoGzY0F4tjzNoHYkI7ENKn3Emag3iaRoQNnrnOP6Qat7rG1iGodcl4wnfCkqImigt+G5YdBSidnqd6sjPrKcvJnkGezfj4cK0d2GvS7j/GwzPR5gdXVwl/VaiDVncaNBPb
Could you share your benchmark?
I've just gave it a try with a bench program [1]
with 351750 weighted points and I got:
Building regular triangulation: 2.03785
Build Fixed weighted alpha complex
Fixed 4.41835
Build family weighted alpha complex
Family 13.0819
Build family filtered weighted alpha complex
Family filtered 25.4051
Building exact regular triangulation: 4.34791
Build exact family weighted alpha complex
Family exact 23.192
so ~4s vs 13s.
Sebastien.
[1] https://github.com/CGAL/cgal/blob/master/Alpha_shapes_3/test/Alpha_shapes_3/bench_walpha.cpp
On 06/19/2018 05:26 PM, ak4733 wrote:
Hi all,
Disclaimer: I am new to CGAL. I've been working with CGAL for less than a
week, so apologies if this is a silly question.
I'm attempting to speed up my application utilizing alpha shapes. To my
understanding, Alpha_shapes_3 generates a family of alpha shapes across
different alphas. Fixed_alpha_shape_3 generates a single alpha shape for a
given alpha (I just need a single alpha shape). The documentation says that
this approach should be faster, but I'm finding that it takes just as long,
if not even longer, than Alpha_shapes_3 !!! I'm not too sure as to why this
is occurring; unfortunately it may be because of some type / kernel
mismatch, and I don't have enough understanding of CGAL to debug that
effectively given the limited examples on alpha shapes. I use the same point
models for both alpha generations.
Here is my simplified setup:
typedef CGAL::Exact_predicates_inexact_constructions_kernel Gt;
typedef CGAL::Fixed_alpha_shape_vertex_base_3<Gt> Vb;
typedef CGAL::Fixed_alpha_shape_cell_base_3<Gt> Fb;
typedef CGAL::Triangulation_data_structure_3<Vb, Fb> Tds;
typedef CGAL::Delaunay_triangulation_3<Gt, Tds> Triangulation_3;
typedef CGAL::Fixed_alpha_shape_3<Triangulation_3> Alpha_shape_3;
typedef Gt::Point_3 Point;
std::list<Point> points; //I generate some points for this list in my code
Alpha_shape_3 as(points.begin(), points.end(), 1); //note I defined
alpha_shape_3 for fix_alpha
Any help / tips are appreciated!
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Speeding up 3D Alpha Calculation, ak4733, 06/19/2018
- Re: [cgal-discuss] Speeding up 3D Alpha Calculation, Sebastien Loriot (GeometryFactory), 06/20/2018
Archive powered by MHonArc 2.6.18.