37 #ifndef GEOMETRIC_SHAPES_SHAPES_ 38 #define GEOMETRIC_SHAPES_SHAPES_ 135 size[0] = size[1] = size[2] = 0.0;
164 Mesh(
unsigned int vCount,
unsigned int tCount) :
Shape()
167 vertexCount = vCount;
168 vertices =
new double[vCount * 3];
169 triangleCount = tCount;
170 triangles =
new unsigned int[tCount * 3];
171 normals =
new double[tCount * 3];
217 a = pa; b = pb; c = pc;
d = pd;
Mesh * createMeshFromBinaryStl(const char *filename)
Load a mesh from a binary STL file. Normals are recomputed and repeating vertices are identified...
Plane(double pa, double pb, double pc, double pd)
Definition of a cylinder.
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 v...
unsigned int * triangles
the vertex indices for each triangle triangle k has vertices at index (3k, 3k+1, 3k+2) = (v1...
Definition of a plane with equation ax + by + cz + d = 0.
Mesh * createMeshFromBinaryStlData(const char *data, unsigned int size)
Load a mesh from a binary STL stream. Normals are recomputed and repeating vertices are identified...
unsigned int triangleCount
the number of triangles formed with the vertices
Mesh * createMeshFromBinaryDAE(const char *filename)
Load a mesh from a binary DAE file. Normals are recomputed and repeating vertices are identified...
A basic definition of a static shape. Static shapes do not have a pose.
A basic definition of a shape. Shapes are considered centered at origin.
unsigned int vertexCount
the number of available vertices
ShapeType
A list of known shape types.
double * vertices
the position for each vertex vertex k has values at index (3k, 3k+1, 3k+2) = (x,y,z)
Mesh(unsigned int vCount, unsigned int tCount)
Box(double x, double y, double z)
TFSIMD_FORCE_INLINE tfScalar length(const Quaternion &q)
virtual ~StaticShape(void)
Cylinder(double r, double l)
double * normals
the normal to each triangle unit vector represented as (x,y,z)
Shape * cloneShape(const Shape *shape)
Create a copy of a shape.