$search

shapes Namespace Reference

Namespaces

namespace  detail

Classes

class  Box
 Definition of a box. More...
class  Cylinder
 Definition of a cylinder. More...
class  Mesh
 Definition of a triangle mesh. More...
class  Plane
 Definition of a plane with equation ax + by + cz + d = 0. More...
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 }
 

A list of known static shape types.

More...

Functions

StaticShapecloneShape (const StaticShape *shape)
 Create a copy of a static shape.
ShapecloneShape (const Shape *shape)
 Create a copy of a shape.
std::vector< Shape * > cloneShapeVector (const std::vector< Shape * > &shapes)
 Create a copy of a vector of shape.
MeshcreateMeshFromAsset (const aiMesh *a, const aiMatrix4x4 &transform, const btVector3 &scale)
 Load a mesh from an assimp datastructure.
MeshcreateMeshFromFilename (const std::string &filename, const btVector3 *scale=NULL)
 Load a mesh from a file that contains a mesh that can be loaded by assimp.
MeshcreateMeshFromVertices (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.
MeshcreateMeshFromVertices (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].
void deleteShapeVector (std::vector< Shape * > &shapes)

Detailed Description

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

Enumeration Type Documentation

A list of known shape types.

Enumerator:
UNKNOWN_SHAPE 
SPHERE 
CYLINDER 
BOX 
MESH 

Definition at line 50 of file shapes.h.

A list of known static shape types.

Enumerator:
UNKNOWN_STATIC_SHAPE 
PLANE 

Definition at line 53 of file shapes.h.


Function Documentation

StaticShape * shapes::cloneShape ( const StaticShape *  shape  ) 

Create a copy of a static shape.

Definition at line 107 of file shape_operations.cpp.

Shape * shapes::cloneShape ( const Shape shape  ) 

Create a copy of a shape.

Definition at line 53 of file shape_operations.cpp.

std::vector< Shape * > shapes::cloneShapeVector ( const std::vector< Shape * > &  shapes  ) 

Create a copy of a vector of shape.

Definition at line 91 of file shape_operations.cpp.

shapes::Mesh * shapes::createMeshFromAsset ( const aiMesh *  a,
const aiMatrix4x4 &  transform,
const btVector3 &  scale 
)

Load a mesh from an assimp datastructure.

Definition at line 347 of file shape_operations.cpp.

shapes::Mesh * shapes::createMeshFromFilename ( const std::string &  filename,
const btVector3 *  scale = NULL 
)

Load a mesh from a file that contains a mesh that can be loaded by assimp.

Definition at line 272 of file shape_operations.cpp.

shapes::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.

Definition at line 191 of file shape_operations.cpp.

shapes::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].

Definition at line 164 of file shape_operations.cpp.

void shapes::deleteShapeVector ( std::vector< Shape * > &  shapes  ) 

Definition at line 100 of file shape_operations.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


geometric_shapes
Author(s): Ioan Sucan
autogenerated on Fri Mar 1 14:16:11 2013