1#ifndef BulletDskShape_h
2#define BulletDskShape_h
10#include <QScopedPointer>
14#include "BulletTargetShape.h"
15#include "BulletClosestRayCallback.h"
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;
Bullet Target Shape for NAIF type 2 DSK models.
int getNumTriangles() const
Return the number of triangles in the shape.
virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const
Get the vertices of a triangle in the mesh.
virtual ~BulletDskShape()
Desctructor.
int getNumVertices() const
Return the number of verticies in the shape.
virtual btVector3 getNormal(const int indexId, const int segment=0) const
Return normal for a given triangle index.
BulletDskShape()
Default empty constructor.
void loadFromDsk(const QString &dskfile)
! Triangular mesh representation of the target shape.
Bullet Target Shape for planetary bodies.
This is free and unencumbered software released into the public domain.