Namespaces | Functions
mesh_operations.cpp File Reference
#include "geometric_shapes/mesh_operations.h"
#include "geometric_shapes/shape_operations.h"
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <set>
#include <float.h>
#include "geometric_shapes/console_bridge_compatibility.hpp"
#include <resource_retriever/retriever.h>
#include <assimp/scene.h>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <Eigen/Geometry>
#include <boost/math/constants/constants.hpp>
Include dependency graph for mesh_operations.cpp:

Go to the source code of this file.

Namespaces

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

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. More...
 
Mesh * shapes::createMeshFromAsset (const aiScene *scene, const std::string &assimp_hint=std::string())
 Load a mesh from an assimp datastructure. More...
 
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. More...
 
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. More...
 
Mesh * shapes::createMeshFromResource (const std::string &resource)
 Load a mesh from a resource that contains a mesh that can be loaded by assimp. More...
 
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. More...
 
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. More...
 
Mesh * shapes::createMeshFromShape (const Box &box)
 Construct a mesh from a box. More...
 
Mesh * shapes::createMeshFromShape (const Sphere &sphere)
 Construct a mesh from a sphere. More...
 
Mesh * shapes::createMeshFromShape (const Cylinder &cylinder)
 Construct a mesh from a cylinder. More...
 
Mesh * shapes::createMeshFromShape (const Cone &cone)
 Construct a mesh from a cone. More...
 
Mesh * shapes::createMeshFromVertices (const EigenSTL::vector_Vector3d &vertices, const std::vector< unsigned int > &triangles)
 Load a mesh from a set of vertices. More...
 
Mesh * shapes::createMeshFromVertices (const EigenSTL::vector_Vector3d &source)
 Load a mesh from a set of vertices. More...
 
void shapes::writeSTLBinary (const Mesh *mesh, std::vector< char > &buffer)
 Write the mesh to a buffer in STL format. More...
 

Variable Documentation

unsigned int index

Definition at line 75 of file mesh_operations.cpp.

double x

Definition at line 74 of file mesh_operations.cpp.

double y

Definition at line 74 of file mesh_operations.cpp.

double z

Definition at line 74 of file mesh_operations.cpp.



geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Mon May 14 2018 02:52:24