#include "geometric_shapes/shapes.h"#include <vector>#include <LinearMath/btVector3.h>#include "btScalar.h"#include "btMinMax.h"#include "aiTypes.h"

Go to the source code of this file.
Namespaces | |
| namespace | shapes |
Functions | |
| shapes::__attribute__ ((deprecated)) Mesh *createMeshFromBinaryStl(const char *filename) | |
| Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified. | |
| StaticShape * | shapes::cloneShape (const StaticShape *shape) |
| Create a copy of a static shape. | |
| Shape * | shapes::cloneShape (const Shape *shape) |
| Create a copy of a shape. | |
| Mesh * | shapes::createMeshFromAsset (const aiMesh *a, const btVector3 &scale) |
| Load a mesh from an assimp datastructure. | |
| Mesh * | shapes::createMeshFromVertices (const std::vector< btVector3 > &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. | |
| Mesh * | shapes::createMeshFromVertices (const std::vector< btVector3 > &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]. | |
Variables | |
| unsigned int | shapes::size |