assimpUtil.h
1 /*********************************************************************
2 * Rice University Software Distribution License
3 *
4 * Copyright (c) 2010, Rice University
5 * All Rights Reserved.
6 *
7 * For a full description see the file named LICENSE.
8 *
9 *********************************************************************/
10 
11 /* Author: Ioan Sucan */
12 
13 #ifndef OMPLAPP_GEOMETRY_DETAIL_ASSIMP_UTIL_
14 #define OMPLAPP_GEOMETRY_DETAIL_ASSIMP_UTIL_
15 
16 #ifdef _WIN32
17 #include <windows.h>
18 #endif
19 
20 #include "omplapp/config.h"
21 #include <assimp/scene.h>
22 #include <assimp/cimport.h>
23 #include <assimp/postprocess.h>
24 #include <ompl/base/spaces/RealVectorBounds.h>
25 #include <vector>
26 
27 namespace ompl
28 {
29  namespace app
30  {
31 
33 
34  namespace scene
35  {
36 
37  void inferBounds(base::RealVectorBounds &bounds, const std::vector<aiVector3D> &vertices, double multiply = 1.1, double add = 0.0);
38  void extractTriangles(const aiScene *scene, std::vector<aiVector3D> &triangles);
39  void extractVertices(const aiScene *scene, std::vector<aiVector3D> &vertices);
40  double shortestEdge(const aiScene *scene);
41  void sceneCenter(const aiScene *scene, aiVector3D &center);
42  }
44  }
45 }
46 #endif
Main namespace. Contains everything in this library.
Definition: AppBase.h:21