stl_parser.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef STL_PARSER_HPP_
19 #define STL_PARSER_HPP_
20 
22 
23 class StlParser : public ParserBase
24 {
25  private:
26 
27  double toDouble(char* facet, uint8_t start_idx);
28 
29  fcl::Vec3f toVec3f(char* facet);
30 
31  public:
32  StlParser(const std::string& file_path)
33  : ParserBase(file_path)
34  {
35 
36  }
37 
38  virtual ~StlParser()
39  {
40 
41  }
42 
43  int8_t read(std::vector<TriangleSupport>& tri_vec);
44 };
45 
46 #endif /* STL_PARSER_HPP_ */
StlParser(const std::string &file_path)
Definition: stl_parser.hpp:32
fcl::Vec3f toVec3f(char *facet)
Definition: stl_parser.cpp:96
double toDouble(char *facet, uint8_t start_idx)
Definition: stl_parser.cpp:112
int8_t read(std::vector< TriangleSupport > &tri_vec)
Definition: stl_parser.cpp:31
virtual ~StlParser()
Definition: stl_parser.hpp:38


cob_obstacle_distance
Author(s): Marco Bezzon
autogenerated on Thu Apr 8 2021 02:39:47