Namespaces | Functions
shape_operations.h File Reference
#include "geometric_shapes/shapes.h"
#include <vector>
#include <tf/LinearMath/Vector3.h>
#include <assimp/aiMesh.h>
Include dependency graph for shape_operations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  shapes


Shapeshapes::cloneShape (const Shape *shape)
 Create a copy of a shape.
StaticShape * shapes::cloneShape (const StaticShape *shape)
 Create a copy of a static shape.
std::vector< Shape * > shapes::cloneShapeVector (const std::vector< Shape * > &shapes)
 Create a copy of a vector of shape.
Mesh * shapes::createMeshFromAsset (const aiMesh *a, const aiMatrix4x4 &transform, const tf::Vector3 &scale)
 Load a mesh from an assimp datastructure.
Mesh * shapes::createMeshFromFilename (const std::string &filename, const tf::Vector3 *scale=NULL)
 Load a mesh from a file that contains a mesh that can be loaded by assimp.
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.
void shapes::deleteShapeVector (std::vector< Shape * > &shapes)

Author(s): Ioan Sucan
autogenerated on Thu Dec 12 2013 11:08:55