-
Notifications
You must be signed in to change notification settings - Fork 0
/
xcurve.cpp
44 lines (37 loc) · 957 Bytes
/
xcurve.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "xcurve.h"
xcurve::xcurve()
{
}
void xcurve::drawline(Point3d start,Point3d end)
{
glColor3f(255.0,0.0,0.0);
glBegin(GL_LINES);
glVertex3d(start.GetX(), start.GetY(), start.GetZ());
glVertex3d(end.GetX(), end.GetY(), end.GetZ());
glEnd();
}
void xcurve::drawline(Point3dW start,Point3dW end)
{
glColor3f(255.0,0.0,0.0);
glBegin(GL_LINES);
glVertex3d(start.GetX(), start.GetY(), start.GetZ());
glVertex3d(end.GetX(), end.GetY(), end.GetZ());
glEnd();
}
void xcurve::drawPoint(Point3d start)
{
glColor3f(255,255.0,255.0);
glPointSize(5);
glBegin(GL_POINTS);
glVertex3d(start.GetX(), start.GetY(), start.GetZ());
glEnd();
}
void xcurve::drawline2(Point3d start,Point3d end)
{
glColor3f(255.0,255.0,255.0);
glBegin(GL_LINES);
//glBegin(GL_POINTS);
glVertex3f(start.GetX(), start.GetY(), start.GetZ());
glVertex3f(end.GetX(), end.GetY(), end.GetZ());
glEnd();
}