#include <cstdio>
#include <cmath>
#include <algorithm>
#include <set>
#include "pr2_navigation_self_filter/shapes.h"
#include <resource_retriever/retriever.h>
#include <ros/assert.h>
#include <tinyxml.h>
#include <assimp/assimp.hpp>
#include <assimp/aiScene.h>
#include <assimp/aiPostProcess.h>
#include <assimp/IOStream.h>
#include <assimp/IOSystem.h>
Go to the source code of this file.
Classes | |
struct | shapes::detail::ltVertexIndex |
struct | shapes::detail::ltVertexValue |
struct | shapes::detail::myVertex |
class | shapes::ResourceIOStream |
class | shapes::ResourceIOSystem |
Namespaces | |
shapes | |
shapes::detail | |
Functions | |
Mesh * | shapes::createMeshFromBinaryDAE (const char *filename) |
Load a mesh from a binary DAE file. Normals are recomputed and repeating vertices are identified. More... | |
Mesh * | shapes::createMeshFromBinaryStl (const char *filename) |
Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified. More... | |
Mesh * | shapes::createMeshFromBinaryStlData (const char *data, unsigned int size) |
Load a mesh from a binary STL stream. Normals are recomputed and repeating vertices are identified. More... | |
Mesh * | shapes::createMeshFromVertices (const std::vector< tf::Vector3 > &vertices, const std::vector< unsigned int > &triangles) |
Load a mesh from a set of vertices. Triangles are constructed using index values from the triangles vector. Triangle k has vertices at index values triangles[3k], triangles[3k+1], triangles[3k+2]. More... | |
Mesh * | shapes::createMeshFromVertices (const std::vector< tf::Vector3 > &source) |
Load a mesh from a set of vertices. Every 3 vertices are considered a triangle. Repeating vertices are identified and the set of triangle indices is constructed. The normal at each triangle is also computed. More... | |
float | shapes::getMeshUnitRescale (const std::string &resource_path) |
std::vector< tf::Vector3 > | shapes::getVerticesFromAssimpNode (const aiScene *scene, const aiNode *node, const float scale) |
shapes::Mesh * | shapes::meshFromAssimpScene (const std::string &name, const aiScene *scene) |