NetDEM v1.0
Loading...
Searching...
No Matches
stl_reader.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace netdem {
6
14class STLModel;
15
23class STLReader {
24public:
34 static STLModel ReadFile(std::string const &filename);
35
36private:
46 static bool IsASCII(std::string const &filename);
47
58 static STLModel ReadASCII(const char *buffer);
59
70 static STLModel ReadBinary(const char *buffer);
71
81 static int cpyint(const char *&p);
82
94 static double cpydouble(const char *&p);
95};
96
97} // namespace netdem
Class for working with STL models.
Definition stl_model.hpp:17
A class for reading STL files.
Definition stl_reader.hpp:23
static STLModel ReadFile(std::string const &filename)
Read an STL file.
Definition stl_reader.cpp:15
Definition bond_entry.hpp:7