Namespaces | |
detail | |
Classes | |
class | Box |
Definition of a box. More... | |
class | Cylinder |
Definition of a cylinder. More... | |
class | Mesh |
Definition of a mesh. More... | |
class | Plane |
Definition of a plane with equation ax + by + cz + d = 0. More... | |
class | ResourceIOStream |
class | ResourceIOSystem |
class | Shape |
A basic definition of a shape. Shapes are considered centered at origin. More... | |
class | Sphere |
Definition of a sphere. More... | |
class | StaticShape |
A basic definition of a static shape. Static shapes do not have a pose. More... | |
Enumerations | |
enum | ShapeType { UNKNOWN_SHAPE, SPHERE, CYLINDER, BOX, MESH } |
A list of known shape types. More... | |
enum | StaticShapeType { UNKNOWN_STATIC_SHAPE, PLANE } |
Functions | |
Shape * | cloneShape (const Shape *shape) |
Create a copy of a shape. More... | |
StaticShape * | cloneShape (const StaticShape *shape) |
Create a copy of a static shape. More... | |
Mesh * | createMeshFromBinaryDAE (const char *filename) |
Load a mesh from a binary DAE file. Normals are recomputed and repeating vertices are identified. More... | |
Mesh * | createMeshFromBinaryStl (const char *filename) |
Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified. More... | |
Mesh * | 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 * | 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 * | 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 | getMeshUnitRescale (const std::string &resource_path) |
std::vector< tf::Vector3 > | getVerticesFromAssimpNode (const aiScene *scene, const aiNode *node, const float scale) |
shapes::Mesh * | meshFromAssimpScene (const std::string &name, const aiScene *scene) |
shapes::Shape * robot_self_filter::shapes::cloneShape | ( | const Shape * | shape | ) |
Create a copy of a shape.
Definition at line 41 of file shapes.cpp.
shapes::StaticShape * robot_self_filter::shapes::cloneShape | ( | const StaticShape * | shape | ) |
Create a copy of a static shape.
Definition at line 77 of file shapes.cpp.
shapes::Mesh * robot_self_filter::shapes::createMeshFromBinaryDAE | ( | const char * | filename | ) |
Load a mesh from a binary DAE file. Normals are recomputed and repeating vertices are identified.
Definition at line 521 of file load_mesh.cpp.
shapes::Mesh * robot_self_filter::shapes::createMeshFromBinaryStl | ( | const char * | filename | ) |
Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified.
Definition at line 535 of file load_mesh.cpp.
shapes::Mesh * robot_self_filter::shapes::createMeshFromBinaryStlData | ( | const char * | data, |
unsigned int | size | ||
) |
Load a mesh from a binary STL stream. Normals are recomputed and repeating vertices are identified.
Definition at line 463 of file load_mesh.cpp.
shapes::Mesh * robot_self_filter::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].
Definition at line 355 of file load_mesh.cpp.
shapes::Mesh * robot_self_filter::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.
Definition at line 382 of file load_mesh.cpp.
float robot_self_filter::shapes::getMeshUnitRescale | ( | const std::string & | resource_path | ) |
Definition at line 202 of file load_mesh.cpp.
std::vector<tf::Vector3> robot_self_filter::shapes::getVerticesFromAssimpNode | ( | const aiScene * | scene, |
const aiNode * | node, | ||
const float | scale | ||
) |
Definition at line 254 of file load_mesh.cpp.
shapes::Mesh* robot_self_filter::shapes::meshFromAssimpScene | ( | const std::string & | name, |
const aiScene * | scene | ||
) |
Definition at line 303 of file load_mesh.cpp.