Classes | Namespaces | Functions
load_mesh.cpp File Reference
#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>
Include dependency graph for load_mesh.cpp:

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

namespace  shapes
namespace  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.
Mesh * shapes::createMeshFromBinaryStl (const char *filename)
 Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified.
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.
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].
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.
float shapes::getMeshUnitRescale (const std::string &resource_path)
std::vector< tf::Vector3 > shapes::getVerticesFromAssimpNode (const aiScene *scene, const aiNode *node, const float scale)
shapes::Meshshapes::meshFromAssimpScene (const std::string &name, const aiScene *scene)


pr2_navigation_self_filter
Author(s): Eitan Marder-Eppstein
autogenerated on Thu Aug 27 2015 14:29:09