Subject: CGAL users discussion list
List archive
- From: "Grimm, Raphael (IAR)" <>
- To: "" <>
- Subject: [cgal-discuss] minkowski_sum_3 segfault
- Date: Wed, 23 Sep 2020 14:17:54 +0000
- Accept-language: en-GB, de-DE, en-US
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:rrgXZhxvCMjKnlbXCy+O+j09IxM/srCxBDY+r6Qd0uoXL/ad9pjvdHbS+e9qxAeQG9mCtLQd1aGJ7+igATVGvc/f9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMtMQam5ZuJ6c+xhbLrXZDZuBayX91KV6JkBvw+8a98IR//yhMvv4q6tJNX7j9c6kkV7JTES4oM3oy5M3ltBnDSRWA634BWWgIkRRGHhbI4gjiUpj+riX1uOx92DKHPcLtVrA7RS6i76ZwRxD2jioMKiM0/3vWisx0i6JbvQ6hqhliyIPafI2ZKPxzdb7bcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VZr4bhqFQDthS+CRWuBO731jNEmmH60Ksn2OohCwHG2wkgEsoAvHrVttX1NaISUeWtwKLV0TvMdetW2Tfn54fWdhAqvPWAU7FsfMTNzEUjGR7Og1KKqYP/JzOV1v4CvHaf7+Z6WuKvkW8nqwR0ojW0xccsi5XJipgLxV/Z6CV02YA4LsC3R0Bne9CrCodQtz2EOItsRMMvW3xktTs+x7Abu5O2fykHxZs5yhDQaPGKb4aF7x3iWeufIzp1hXJrdbC+ihu28Uat1vDwW8u23VtKridJjsXAu2wL2hfO5MaHTf598V2g2TaJzw3T6eBEIVwumaXFNpEh37g9nYcQv0TbBiL6hVv6gauMekk59OWk8frrb7v7qpOGNIJ4lBnyPrkhl8CiG+g1PBICUmuY9OimybHv4FH1TK1UgvIsjqXVrJXXKdkVq6O9AAJY14Iu5hOxDzqnzdgUg3wKIVdYdB+Ij4XkPUzFLuriAvelmVuslS9mx/DYMb3lBZXANmPDn6v9crpk7k5T0gszzdRY55JJFrENOfHzWk7ttNDBEhM1LRa4w/37B9phzI8eWmOPArODPKzMrFCI+/ojI+iKZIALpDbwM+Up6+DqgHMjhFMQc7Ol0YUZZXylBPhrIFuVbWLpgtgbEGcKugQ+TPbtiF2HSTNTfWy9X7o85j4hFo2mCZ3PRo+3gLyA2Se7G4ZbZmNHClCQC3vnaZiLW+oUZCKIPsBhiiAEVaSmS4I5yR6uuxX1y75+IuXJ+y0Yro7s1MVu5+3Ijhwy7jx1D8GF026XVW10n2UIRyU33K9lu0B9xE2DguBEhKkSHtNa47ZFUxwxKIXH5+18EdH7HAzbNJ/dQ1mvRpCqACo6U8kq694IeUd0Xdu42EPtxS2vVvU6jb2OAdh8yKvE33H8I4496l/8leNp20MvWstGOGngibR+8g37BI/V1UiVivD5JuwnwCfR+TLbniK1t0ZCXVsoCPSXbTUkfkLT6O/ByAbHRr6qB64gN1oTys+ebKZGd4+w1AgUdLLYIN3bJlmJtSKwCBKPnened4HhPmAU3SHaFVRBkAEPuC7ccxM1DWGion6YATBzRwq2PxHctNJmoXb+dXcaihmQZhwz1LupvBMZmK7ERg==
Hello, I have a non-convex mesh and want to check whether a point is within a certain distance of it. Since distance queries are slow, I decided to inflate the mesh and check whether the point is inside. Scaling does not work, since my mesh is concave. I did some looking around and came across minkowski_sum_3. I am planning to use a sphere to inflate my original mesh by using minkowski_sum_3. I wrote some simple test for minkowski_sum_3 that adds a tetrahedron to a cube (code is attached). This test crashes with a segfault. Here is the stack trace: 1 CGAL::SNC_FM_decorator<CGAL::SNC_structure<CGAL::Epick, CGAL::SNC_indexed_items, bool>>::determine_facet stl_vector.h 805 0x55555559244a 2 CGAL::SNC_FM_decorator<CGAL::SNC_structure<CGAL::Epick, CGAL::SNC_indexed_items, bool>>::create_facet_objects In_place_list.h 84 0x5555555a0dea 3 CGAL::SNC_external_structure<CGAL::SNC_indexed_items, CGAL::SNC_structure<CGAL::Epick, CGAL::SNC_indexed_items, bool>>::categorize_facet_cycles_and_create_facets stl_list.h 953 0x5555555a16d7 4 CGAL::SNC_external_structure<CGAL::SNC_indexed_items, CGAL::SNC_structure<CGAL::Epick, CGAL::SNC_indexed_items, bool>>::build_external_structure In_place_list.h 310 0x5555555c3417 5 CGAL::Nef_polyhedron_3<CGAL::Epick, CGAL::SNC_indexed_items, bool>::build_external_structure SNC_const_decorator.h 125 0x5555555f6188 6 CGAL::Nef_polyhedron_3<CGAL::Epick, CGAL::SNC_indexed_items, bool>::delegate Nef_polyhedron_3.h 1071 0x5555555f6188 7 CGAL::bipartite_nary_union_sorted_combined<CGAL::Nef_polyhedron_3<CGAL::Epick, CGAL::SNC_indexed_items, bool>> bipartite_nary_union_sorted_combined.h 214 0x5555555f6188 8 CGAL::minkowski_sum_3<CGAL::Nef_polyhedron_3<CGAL::Epick, CGAL::SNC_indexed_items, bool>> In_place_list.h 309 0x5555555f7384 9 main minkowski_sum_3.cpp 81 0x55555555d8df 10 __libc_start_main libc-start.c 310 0x7ffff69ccb97 11 _start
I have two questions: 1. Is there a better (more efficient) way to do this? 2. If not, how can I fix the segfault / what am I doing wrong? I appreciate any hints. Best Raphael ---- Karlsruhe Institute of Technology (KIT) Institute for Anthropomatics and Robotics (IAR) High Performance Humanoid Technologies (H2T)
Raphael Grimm (M.Sc.) Research Scientist
Adenauerring 2 Building 50.20, Room 334 76131 Karlsruhe, Germany
Phone: +49 721 608-47133 Fax: +49 721 608-48270 Email: Web: https://www.humanoids.kit.edu
KIT - The Research University in the Helmholtz Association
|
Attachment:
minkowski_sum_3.cpp
Description: Binary data
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- [cgal-discuss] minkowski_sum_3 segfault, Grimm, Raphael (IAR), 09/23/2020
- Re: [cgal-discuss] minkowski_sum_3 segfault, Sebastien Loriot (GeometryFactory), 09/23/2020
- RE: [cgal-discuss] minkowski_sum_3 segfault, Grimm, Raphael (IAR), 09/29/2020
- Re: [cgal-discuss] minkowski_sum_3 segfault, Sebastien Loriot (GeometryFactory), 09/30/2020
- RE: [cgal-discuss] minkowski_sum_3 segfault, Grimm, Raphael (IAR), 09/29/2020
- Re: [cgal-discuss] minkowski_sum_3 segfault, Sebastien Loriot (GeometryFactory), 09/23/2020
Archive powered by MHonArc 2.6.19+.