C++ 边界框3.h中的CGAL Nef_多面体编译错误

C++ 边界框3.h中的CGAL Nef_多面体编译错误,c++,visual-studio-2013,cgal,C++,Visual Studio 2013,Cgal,我试图为Nef_Polyhedron创建一个简单的测试用例,但即使主函数中只有一行,我也不确定下一步要尝试什么,但仍会遇到编译错误 以下是我的整个计划: #include <iostream> #include <CGAL/Polyhedron_3.h> #include <CGAL/IO/Polyhedron_iostream.h> #include <CGAL/Nef_polyhedron_3.h> #include <CGAL/Exac

我试图为
Nef_Polyhedron
创建一个简单的测试用例,但即使主函数中只有一行,我也不确定下一步要尝试什么,但仍会遇到编译错误

以下是我的整个计划:

#include <iostream>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel; 
typedef CGAL::Polyhedron_3<Kernel>  Polyhedron; 
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron; 

int main(int argc, char **argv)
{
    Nef_polyhedron N0;
}
#包括
#包括
#包括
#包括
#包括
typedef CGAL::精确谓词\u精确构造\u内核;
typedef CGAL::多面体_3多面体;
typedef CGAL::Nef_多面体3 Nef_多面体;
int main(int argc,字符**argv)
{
Nef_多面体N0;
}
错误如下:

Error   3   error C2039: 'hi' : is not a member of 'CGAL::Box_intersection_d::Box_d<double,3,CGAL::Box_intersection_d::ID_EXPLICIT>'    c:\program files\cgal-4.6.2\include\cgal\nef_3\bounding_box_3.h 91  1   CGAL_TEST
Error   1   error C2039: 'lo' : is not a member of 'CGAL::Box_intersection_d::Box_d<double,3,CGAL::Box_intersection_d::ID_EXPLICIT>'    c:\program files\cgal-4.6.2\include\cgal\nef_3\bounding_box_3.h 90  1   CGAL_TEST
Error   4   error C2065: 'hi' : undeclared identifier   c:\program files\cgal-4.6.2\include\cgal\nef_3\bounding_box_3.h 91  1   CGAL_TEST
Error   2   error C2065: 'lo' : undeclared identifier   c:\program files\cgal-4.6.2\include\cgal\nef_3\bounding_box_3.h 90  1   CGAL_TEST
Error 3 Error C2039:'hi':不是'CGAL::Box\u intersection\u d::Box\u d'c:\program files\CGAL-4.6.2\include\CGAL\nef\u 3\bounding\u Box\u 3.h 91 1 CGAL\u测试的成员
错误1错误C2039:“lo”:不是“CGAL::Box\u交叉点\u d::Box\u d”c:\program files\CGAL-4.6.2\include\CGAL\nef\u 3\bounding\u Box\u 3.h 90 1 CGAL\u测试的成员
错误4错误C2065:“hi”:未声明的标识符c:\program files\cgal-4.6.2\include\cgal\nef\U 3\bounding\U box\U 3.h 91 1 cgal\U测试
错误2错误C2065:“lo”:未声明的标识符c:\program files\cgal-4.6.2\include\cgal\nef\U 3\bounding\U box\U 3.h 90 1 cgal\U测试
CGAL的版本是4.6.2


有什么建议吗?

同样的代码对我也适用。但是试着改变内核,因为它帮助我克服了这个问题。也许在新版本中支持更多内核。