1#ifndef BulletDskShape_h
2#define BulletDskShape_h
10#include <QScopedPointer>
35 virtual btVector3
getNormal(
const int indexId,
const int segment=0)
const;
36 virtual btMatrix3x3
getTriangle(
const int index,
const int segment=0)
const;
39 QSharedPointer<btTriangleIndexVertexArray> m_mesh;
46 void loadFromDsk(
const QString &dskfile);
Bullet Target Shape for NAIF type 2 DSK models.
Definition BulletDskShape.h:26
int getNumTriangles() const
Return the number of triangles in the shape.
Definition BulletDskShape.cpp:70
virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const
Get the vertices of a triangle in the mesh.
Definition BulletDskShape.cpp:130
virtual ~BulletDskShape()
Desctructor.
Definition BulletDskShape.cpp:51
int getNumVertices() const
Return the number of verticies in the shape.
Definition BulletDskShape.cpp:88
virtual btVector3 getNormal(const int indexId, const int segment=0) const
Return normal for a given triangle index.
Definition BulletDskShape.cpp:113
BulletDskShape()
Default empty constructor.
Definition BulletDskShape.cpp:34
Bullet Target Shape for planetary bodies.
Definition BulletTargetShape.h:33
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16