Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Zesen Qian <>
  • To:
  • Subject: [cgal-discuss] use of undeclared identifier 'CGAL_assertion'
  • Date: Wed, 11 Jul 2018 09:25:32 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:Zt0V5hainlmoHrC0DP0ZO37/LSx+4OfEezUN459isYplN5qZocW5bnLW6fgltlLVR4KTs6sC17KI9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa8bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA5/m/ZidF+grxHrx+6uxxz35TZbJ2JOPZifK7Qe84RS2pbXsZWUixMGoCzYJUUD+UfO+ZTspLzp1oUohu4GAKhA+LuxSFThnDo2602yf0hEQDc0wwmBN8Ov3HUo8/0NKcWS+y60K7IzTDaYv5QxDzz65DIfwg/rf2QWb98a8ncxEk1Gw/Yj1ictZbpMjyI2ukLrmOV9fBvVfi1hG4iswxxoiagxsMrioTRg4Ia0FHE9SFgzIYtId20VFd3YdCrHZdNrS2aOIx2QsQtQ2Fspik20KEJuZm+fCQSyZQnwQDQa+CffoSW/h7uUPydLDR4iX5/Zb6yhgq+/VKvx+HhTsW01UxFritBktnCrHAN0BnT59CGS/Rj5UeuxzCP2xrK6uFFO080k7HWK5EkwrEql5oTtV7PETPxmEXzlKOWbFkr+vC06+T7ZbXrvoOTN4BuhQH6K6ghh82/Af8kPQgTRGib4v+x1Kbj/E38WLVFlOc6kqjfsJDAJMQUvLS1AwFP0tVr1xHqBDiv1JEUnGIMMUleUBOBlYngfV/Uc97iCvLqsVm3nTEj/vHPOPW1EJjWI36Fibboe55y7kddzEw4ytUJtMEcMa0IPP+mAhy5j9ffFBJsa1XlkdaiM81008YlYUzKB6aYNK3ItlrRv7AgJuCNYMkevzOvcqF5tc6rtmcwnBomRYfsxYEeMSnqEfFvIkHfan3p0I9YTDU6+zEmRemvs2WsFD5eY3HoAvA57zA/TZqiVcLNGtnrj7uG0yO2WJZRYzIeBw==

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); ^
/usr/local/include/CGAL/boost/graph/selection.h:120:15: note: in
instantiation of member function 'CGAL::get' requested here while(
!get(is_selected,fd) ) ^
/usr/local/include/CGAL/Polygon_mesh_processing/repair.h:1447:9: note:
in instantiation of function template specialization
'CGAL::expand_face_selection, std::__1::allocator >,
CGAL::Surface_mesh >, CGAL::Boolean_property_map, std::__1::allocator
> >, CGAL::Emptyset_iterator>' requested here
expand_face_selection(cc_faces, tm, step, ^
/usr/local/include/CGAL/Polygon_mesh_processing/repair.h:1928:7: note:
in instantiation of function template specialization
'CGAL::Polygon_mesh_processing::remove_self_intersections_one_step >,
CGAL::SM_Face_index, CGAL::Surface_mesh >::Property_map > >' requested
here remove_self_intersections_one_step(tm, faces_to_remove, vpm,
step, preserve_genus, verbose); ^
/usr/local/include/CGAL/Polygon_mesh_processing/repair.h:1944:10:
note: in instantiation of function template specialization
'CGAL::Polygon_mesh_processing::remove_self_intersections >,
CGAL::cgal_bgl_named_params >' requested here return
remove_self_intersections(tm, parameters::all_default()); ^
/usr/home/riaqn/doll/codes/cxx/fix.cxx:20:19: note: in instantiation
of function template specialization
'CGAL::Polygon_mesh_processing::remove_self_intersections > >'
requested here bool ret = PMP::remove_self_intersections(in); ^

Any comment would be much appreciated.

Best,
Zesen



Archive powered by MHonArc 2.6.18.

Top of Page