2024年4月1日发(作者:)
C/C++->General->Additional include directories
D:Program filesCGAL-4.11auxiliarygmpinclude
D:Program filesboost_1_65_1
D:Program filesCGAL-4.11Buildinclude
D:Program filesCGAL-4.11include
C/C++->Preprocessor->Preprocesser definitions
WIN32
_DEBUG
_CONSOLE
_LIB
_CRT_SECURE_NO_WARNINGS
Linker -> General -> Additional library directories
D:Program filesboost_1_65_1lib32-msvc-12.0
D:Program filesCGAL-4.11auxiliarygmplib
D:Program filesCGAL-4.11Buildlib
Linker -> Input -> Additional Dependences
在
stdafx.h
文件中添加
#define _SCL_SECURE_NO_WARNINGS
示例程序:
// straight_ : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point;
typedef CGAL::Polygon_2
typedef CGAL::Polygon_with_holes_2
typedef CGAL::Straight_skeleton_2
//typedef CGAL::Delaunay_triangulation_2
typedef CGAL::Delaunay_triangulation_2
typedef boost::shared_ptr
int global_w, global_h;
std::vector
void points_draw()
{
}
void points_add_point(int x, int y)
{
}
_back(Point(x, global_h - y));
glPopMatrix();
glutSwapBuffers();
std::vector
glColor3f(1.0, 1.0, 1.0);
glPointSize(8);
glBegin(GL_POINTS);
for (iter = (); iter != (); iter++)
glVertex2i(iter->hx(), iter->hy());
glEnd();
glPushMatrix();
glClear(GL_COLOR_BUFFER_BIT);
glPushMatrix();


发布评论