我正在尝试为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;
}
错误如下:
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
CGAL的版本是4.6.2。
有什么建议吗?