-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMeshPosition.h
35 lines (26 loc) · 1019 Bytes
/
MeshPosition.h
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
// MeshPosition.h: interface for the CMeshPosition class.
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#if !defined MESH_POSITION_HEADER_INCLUDED
#define MESH_POSITION_HEADER_INCLUDED
#pragma once
#define MESH_POSITION_UNIT 0.000001
#define ONE_OVER_MESH_POSITION_UNIT 1000000
class CMeshPosition{
private:
// multiples of MESH_POSITION_UNIT mm
int m_x[3];
public:
CMeshPosition(){m_x[0] = 0; m_x[1] = 0; m_x[2] = 0;}
CMeshPosition(const CMeshPosition& p);
CMeshPosition(const Point& v);
CMeshPosition(int x, int y, int z);
const CMeshPosition& operator=(const CMeshPosition& p);
bool operator<(const CMeshPosition& p)const;// for inserting in sets
bool operator>(const CMeshPosition& p)const;// for inserting in sets
bool operator==(const CMeshPosition& p)const;// for inserting in sets
Point vertex()const;
void set_vertex(const Point& v);
const int* GetPtr()const{return m_x;}
};
#endif