Microflow 3D  v1.0
STLReader.h
Go to the documentation of this file.
1 // ==============================================================================================
2 // Microflow 3D, http://www.microflow.pwr.edu.pl/
3 // Created by Roman Szafran on 25.03.19.
4 // Copyright (c) 2019 Wroclaw University of Science and Technology.
5 // Distributed under the Apache License, Version 2.0. You may obtain a copy of the License at
6 // http://www.apache.org/licenses/LICENSE-2.0 or see accompanying file license.txt.
7 // Redistributions of source code must retain the above copyright and license notice.
8 // ==============================================================================================
9 
10 #pragma once
11 
12 #include <iostream>
13 #include <exception>
14 
15 // Boost spirit required by stl-reader/writer
16 #include "../../external/FileSTL-master/stlio.hpp"
17 
18 namespace MF {
19  namespace RW {
20 
23  class STLReaderTyti {
24  public:
25  explicit STLReaderTyti(const std::string &FileName, bool verbose = false);
26 
27  ~STLReaderTyti() = default;
28 
29  inline std::pair<tyti::stl::basic_solid<float>, bool>& getSTLGrid_ref() {return stlGrid;}
30 
31  private:
32  std::pair<tyti::stl::basic_solid<float>, bool> stlGrid;
33  };
34  } /* namespace RW */
35 } /* namespase MF */
The object of STLReaderTyti class reads the .stl surface grid.
Definition: STLReader.h:23
STLReaderTyti(const std::string &FileName, bool verbose=false)
Definition: STLReader.cpp:13
std::pair< tyti::stl::basic_solid< float >, bool > & getSTLGrid_ref()
Definition: STLReader.h:29