CsPaint  1.0.1
cspaint_io.h
1 
19 #ifndef INCLUDED_CSPAINT_IO_H
20 #define INCLUDED_CSPAINT_IO_H
21 
22 #include <cspaint_fwd.h>
23 
24 #include <vector>
25 
26 namespace CsPaint
27 {
28  namespace io{
29  struct Vertex {
30  float x, y, z;
31  float nx, ny, nz;
32  };
33 
34 
35  std::vector<Vertex> parse_stl(const char * data, std::size_t size);
36  std::vector<Vertex> load_stl(std::string filename);
37  };
38 
39 }; // namespace CsPaint
40 
41 #endif
42 
std::vector< Vertex > parse_stl(const char *data, std::size_t size)
float nz
Definition: cspaint_io.h:31
float ny
Definition: cspaint_io.h:31
float nx
Definition: cspaint_io.h:31
float z
Definition: cspaint_io.h:30
float y
Definition: cspaint_io.h:30
float x
Definition: cspaint_io.h:30
std::vector< Vertex > load_stl(std::string filename)
Definition: cspaint_io.h:29
Definition: cspaint_buffer.h:26