Namespaces | Functions
mesh_operations.h File Reference
#include "geometric_shapes/shapes.h"
#include <eigen_stl_containers/eigen_stl_containers.h>
#include <vector>
Include dependency graph for mesh_operations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shapes
 

Definition of various shapes. No properties such as position are included. These are simply the descriptions and dimensions of shapes.


Functions

Mesh * shapes::createMeshFromAsset (const aiScene *scene, const Eigen::Vector3d &scale, const std::string &assimp_hint=std::string())
 Load a mesh from an assimp datastructure.
Mesh * shapes::createMeshFromAsset (const aiScene *scene, const std::string &assimp_hint=std::string())
 Load a mesh from an assimp datastructure.
Mesh * shapes::createMeshFromBinary (const char *buffer, std::size_t size, const std::string &assimp_hint=std::string())
 Load a mesh from a binary stream that contains a mesh that can be loaded by assimp.
Mesh * shapes::createMeshFromBinary (const char *buffer, std::size_t size, const Eigen::Vector3d &scale, const std::string &assimp_hint=std::string())
 Load a mesh from a resource that contains a mesh that can be loaded by assimp.
Mesh * shapes::createMeshFromResource (const std::string &resource)
 Load a mesh from a resource that contains a mesh that can be loaded by assimp.
Mesh * shapes::createMeshFromResource (const std::string &resource, const Eigen::Vector3d &scale)
 Load a mesh from a resource that contains a mesh that can be loaded by assimp.
Mesh * shapes::createMeshFromShape (const Shape *shape)
 Construct a mesh from a primitive shape that is NOT already a mesh. This call allocates a new object.
Mesh * shapes::createMeshFromShape (const Box &box)
 Construct a mesh from a box.
Mesh * shapes::createMeshFromShape (const Sphere &sphere)
 Construct a mesh from a sphere.
Mesh * shapes::createMeshFromShape (const Cylinder &cylinder)
 Construct a mesh from a cylinder.
Mesh * shapes::createMeshFromShape (const Cone &cone)
 Construct a mesh from a cone.
Mesh * shapes::createMeshFromVertices (const EigenSTL::vector_Vector3d &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 EigenSTL::vector_Vector3d &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::writeSTLBinary (const Mesh *mesh, std::vector< char > &buffer)
 Write the mesh to a buffer in STL format.


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Wed Aug 26 2015 11:40:00