-
Notifications
You must be signed in to change notification settings - Fork 1
/
stlcompare.h
36 lines (32 loc) · 1 KB
/
stlcompare.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
36
/// Copyright (c) 2014 Andranik Abrahamyan
#ifndef StlCompare_H
#define StlCompare_H
#include <string>
class StlFile;
/// class for comparing two meshes file by using Huffman_Code an getting the difference in percent.
///
/*! \brief comparing two stl meshes.
*
* class for comparing two meshes file by using Huffman_Code an getting the difference in percent.
* After creating I call init() function. Which call getHuffman_Code.
*/
class StlCompare
{
public:
///constructor
StlCompare();
///destructor
~StlCompare();
/// create stl file from the file path, and call Huffman_Code;
char init(std::string &fileName1, std::string &fileName2);
/// gets 2 StlFile and calls Huffman_Code;
char init(StlFile* stlFile1, StlFile* stlFile2);
private:
/// compare 2 stl files Huffman_Code, returned by procent
char getHuffman_Code();
// members
StlFile* m_stlFile1; //!< first StlFile file
StlFile* m_stlFile2; //!< second StlFile file
bool m_deleteStl; //!< need to delete stl files?
};
#endif // StlCompare_H