mirror of https://github.com/CGAL/cgal
Small changes for MSVC-compatibility (std:: prefixes etc)
This commit is contained in:
parent
1e25db7ef5
commit
d50ed5bc0c
|
|
@ -1,7 +1,11 @@
|
|||
#include <CGAL/point_generators_2.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
//#include "triang_2.h"
|
||||
|
||||
typedef CGAL::Cartesian<double> rep_t;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
void myhandler(int x, int y, int but, CGAL::GL_win *W) {
|
||||
vector<double> v(3);
|
||||
std::vector<double> v(3);
|
||||
v[0]=x*2; v[1]=y*2; v[2]=0;
|
||||
W->add_point_to_object(1,1,v);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ void draw_tri_tex(double x1, double y1, double z1,double x2, double
|
|||
glPolygonMode(GL_FRONT,GL_FILL);
|
||||
glBegin(GL_TRIANGLES);
|
||||
|
||||
vector<double> v1(3);
|
||||
vector<double> v2(3);
|
||||
std::vector<double> v1(3);
|
||||
std::vector<double> v2(3);
|
||||
v1 = CGAL::normal(x1,y1,z1,x2,y2,z2,x3,y3,z3);
|
||||
|
||||
v2[0]= -v1[0]; v2[1]=-v1[1] ; v2[2]= -v1[2];
|
||||
|
|
|
|||
Loading…
Reference in New Issue