Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] use of undeclared identifier 'CGAL_assertion'

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] use of undeclared identifier 'CGAL_assertion'


Chronological Thread 
  • From: Zesen Qian <>
  • To:
  • Subject: Re: [cgal-discuss] use of undeclared identifier 'CGAL_assertion'
  • Date: Thu, 12 Jul 2018 13:10:34 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:7NDz8hHs3+iuOIS6Yj8zsZ1GYnF86YWxBRYc798ds5kLTJ7zo8iwAkXT6L1XgUPTWs2DsrQY07SQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDuwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBJw2IPUfJiVOeBicq/BYd8XR2xMVdtRWSxbBYO8apMCAOkfMuZDsYb9oUYFowC/BQa2AuPk1zhFh37o0q0hzeshFxvK3BUhH90UtnTZt9r1NKIIXuC0yKnE1ynMb/RT2Trk7oXDbx4vofaJXb1qcMrRz1EiFwLDjlWKqIzqJSmZ1uoXs2SD8+VgWvigi2o9pwF2uDivyd8giobXiYISz1DL6zl5wJw1JN22UkF0fcKkEJxKtyCaLYd5XsQiQ2RutS0nybMGoYa2cDYWxJkj3RLSaPyKf5KV7h/iSOqdOzd1iG9jdbminRi961Kgxff5VsSs0FZFsC5Fkt7Uu3AIzRPT68yHRuJl/kelxTqDzg7T5+FZLUwumqrbLJkhwrE0lpUNq0jMAij2mEDugK+XcEUr5PSo5vz5brn6opKQLYx5hwHkPqgzm8GzHf40PwgTU2SD/OSzzrzj/Un3QLVQif02l7HUsZHEKsQAuKG5BRVZ0p8i6xmlCTery9sYnXwdI1JEfBKLlZTmO1bLIPzgF/ewn0yskCt3x/DBJrDuHprNIWLHkLv4YLl96lVcxxYuzdBE/JJZEaoBIfL2Wk/prtPUFB45Mwquw+bmEtpxzI0eWXjcSpKfK77Y5F+U+vo0ca7Lf54QoD+7Kv4/5veog2V+gk4YZaDu3J0ZbzezEf1iZkmYenHxmcxSLWBftQU3SKnmiUaJTCVIT3e0RaM1oD8hW6y8CoKWdI22jbrJ5SayGNUCdG1dB1bKCHbhca2LXv4NbGSZJco3wW9MbqSoV4J0jULmjwT90bcydrOFqB1djorq0Z1O38OWkBgz8TJuCMHEijOCSmh1miUDQDpkhfkj83w48U+K1O1Du9IdDcZavqobXQIzNJqaxOt/WYirB1DxO+yRQVPjee2IRDE8StVrno0Lakd5Xs2m1lXNgnPsDLgSmLiGQpcz9/CE0g==

Thank you Laurent, it works now.

On Thu, Jul 12, 2018 at 11:14 AM, Laurent Rineau
(CGAL/GeometryFactory)
<>
wrote:
> Le Wednesday, July 11, 2018 3:25:32 PM CEST Zesen Qian a écrit :
>> Hi list,
>>
>> So I'm trying to use the undocumented remove_self_intersection()
>> function, here is my short program:
>>
>> #include <iostream>
>> #include <fstream>
>>
>> #include <CGAL/Surface_mesh.h>
>> #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
>> #include <CGAL/Polygon_mesh_processing/repair.h>
>>
>> typedef CGAL::Exact_predicates_exact_constructions_kernel T;
>> typedef T::Point_3 Point;
>> typedef CGAL::Surface_mesh<Point> Mesh;
>>
>> namespace PMP = CGAL::Polygon_mesh_processing;
>>
>> int main(int argc, char *argv[]) {
>> std::ifstream inS(argv[1]);
>>
>> Mesh in;
>> inS >> in;
>>
>> bool ret = PMP::remove_self_intersections(in);
>>
>> std::ofstream outS(argv[2]);
>> outS.precision(17);
>> outS << in;
>> return !ret;
>> }
>>
>> The command used to build(clang++ 6.0.0) is:
>>
>> /usr/bin/c++ '-DCGAL_USE_CORE=1' -DCGAL_USE_GMP -DCGAL_USE_MPFR
>> -I/usr/local/include/eigen3 -isystem /usr/local/include
>> -I/usr/home/riaqn/doll/codes/cxx/build -O3 -DNDEBUG '-std=gnu++1z' -o
>> CMakeFiles/fix.dir/fix.cxx.o -c /usr/home/riaqn/doll/codes/cxx/fix.cxx
>>
>> The error shown is:
>>
>> In file included from /usr/home/riaqn/doll/codes/cxx/fix.cxx:4: In
>> file included from /usr/local/include/CGAL/Surface_mesh.h:27: In file
>> included from /usr/local/include/CGAL/Surface_mesh/Surface_mesh.h:46:
>> /usr/local/include/CGAL/property_map.h:483:5: error: use of undeclared
>> identifier 'CGAL_assertion' CGAL_assertion(pm.set_ptr!=NULL); ^
> [...]
>> Any comment would be much appreciated.
>
> Hi, there is indeed a bug in CGAL. It will be fixed in a future version of
> CGAL.
>
> As a workaround, you can add the following line:
>
> #include <CGAL/assertions.h>
>
> before the include of <CGAL/Surface_mesh.h>.
>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page