Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
BulletDskShape.h
Go to the documentation of this file.
1#ifndef BulletDskShape_h
2#define BulletDskShape_h
7
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <memory>
11
12#include <QScopedPointer>
13#include <QString>
14#include <QVector>
15
16
17// #define DSK_DEBUG 1
18
19#include "DskSegmentBuffer.hpp"
20#include "BulletTargetShape.h"
22
23namespace Isis {
24
37 public:
39 BulletDskShape(const QString &dskfile);
40 virtual ~BulletDskShape();
41
42 int getNumTriangles() const;
43 int getNumVertices() const;
44
45 virtual btVector3 getNormal(const int indexId, const int segment=0) const;
46 virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const;
47
48 private:
49 std::vector<DskSegmentBuffer> m_buffers;
50 std::shared_ptr<btTriangleIndexVertexArray> m_mesh;
55
56 // Custom DSK reader
57 void loadFromDsk(const QString &dskfile);
58
59 };
60
61} // namespace Isis
62
63#endif
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