mesh_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 MESH_PARSER_HPP_
19 #define MESH_PARSER_HPP_
20 
21 #include <assimp/Importer.hpp>
22 #include <assimp/scene.h>
23 #include <assimp/postprocess.h>
24 
26 
27 class MeshParser : public ParserBase
28 {
29  private:
30  int8_t toVec3f(uint32_t num_current_face, aiVector3D* vertex, fcl::Vec3f& out);
31 
32  public:
33  MeshParser(const std::string& file_path)
34  : ParserBase(file_path)
35  {
36 
37  }
38 
39  virtual ~MeshParser()
40  {
41 
42  }
43 
44  int8_t read(std::vector<TriangleSupport>& tri_vec);
45 };
46 
47 #endif /* MESH_PARSER_HPP_ */
int8_t read(std::vector< TriangleSupport > &tri_vec)
Definition: mesh_parser.cpp:36
MeshParser(const std::string &file_path)
Definition: mesh_parser.hpp:33
virtual ~MeshParser()
Definition: mesh_parser.hpp:39
int8_t toVec3f(uint32_t num_current_face, aiVector3D *vertex, fcl::Vec3f &out)


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