-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSegment.h
More file actions
41 lines (33 loc) · 681 Bytes
/
Segment.h
File metadata and controls
41 lines (33 loc) · 681 Bytes
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
#ifndef _SEGMENT_H
#define _SEGMENT_H
#define MAX_CIRCLE_PTS_COUNT 20
//#define CIRCLE_PTS_COUNT MAX_CIRCLE_PTS_COUNT
class Segment
{
public:
Segment()
{
index = 0;
for(int i=0; i<MAX_CIRCLE_PTS_COUNT; i++)
{
circlePts[i] = NULL;
}
}
~Segment()
{
for(int i=0; i<MAX_CIRCLE_PTS_COUNT; i++)
{
if(circlePts[i]!=NULL)
{
delete circlePts[i];
}
}
}
/*Współrzędne segmentu względem jego środka*/
Point3d * circlePts[MAX_CIRCLE_PTS_COUNT];
/*okresla ktory punkt z tego segmentu, polaczyc z circlePts[0] poprzedniego segmentu.
w pierwszym(korzeniu) segmencie ta wartosc rowna sie -1*/
int index;
};
//#undef MAX_CIRCLE_PTS_COUNT
#endif