1#ifndef BulletDskShape_h
2#define BulletDskShape_h
12#include <QScopedPointer>
19#include "DskSegmentBuffer.hpp"
45 virtual btVector3
getNormal(
const int indexId,
const int segment=0)
const;
46 virtual btMatrix3x3
getTriangle(
const int index,
const int segment=0)
const;
49 std::vector<DskSegmentBuffer> m_buffers;
50 std::shared_ptr<btTriangleIndexVertexArray> m_mesh;
57 void loadFromDsk(
const QString &dskfile);
int getNumTriangles() const
Return the number of triangles in the shape.
Definition BulletDskShape.cpp:60
virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const
Get the vertices of a triangle in the mesh.
Definition BulletDskShape.cpp:120
virtual ~BulletDskShape()
Destructor.
Definition BulletDskShape.cpp:53
int getNumVertices() const
Return the number of verticies in the shape.
Definition BulletDskShape.cpp:78
virtual btVector3 getNormal(const int indexId, const int segment=0) const
Return normal for a given triangle index.
Definition BulletDskShape.cpp:103
BulletDskShape()
Default empty constructor.
Definition BulletDskShape.cpp:36
BulletTargetShape()
Default empty constructor.
Definition BulletTargetShape.cpp:28
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16