在vs2003下使用CGAL的问题, 熟悉CGAL的高手进来呀!!!
大家好,最近项目有需求要对不规则多面体做交集和补集.我下了CGAL-3.3.1.
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Point_2<K> Point_2;
typedef CGAL::Polygon_2<K> Polygon_2;
typedef CGAL::Polygon_with_holes_2<K > Polygon_with_holes_2;
typedef Polygon_2::Vertex_iterator Vertex_iterator;
typedef std::list<Polygon_2> Polygon_list;
typedef std::list<Polygon_with_holes_2> Polygon_with_holes_list;
int main()
{
Polygon_2 polygon;
Polygon_2 polygon1;
/*
polygon, polygon1 的数据生成略
*/
Polygon_list partition_polys;
Polygon_with_holes_list partition_polys_with_holes;
CGAL::do_intersect ( polygon,polygon1);
return 0;
}
报错:
正在编译...
approx_convex_partition_2.cpp
approx_convex_partition_2 : error PRJ0002 : 从“cl.exe”返回的结果有误。
生成日志保存在“file://d:\Program Files\Cgal-3.3.1\examples\Partition_2\Vc\Debug\approx_convex_partition_2\BuildLog.htm”中
approx_convex_partition_2 - 1 错误,0 警告
---------------------- 完成 ---------------------
生成: 0 已成功, 1 已失败, 0 已跳过