TestCube.h
Go to the documentation of this file.
// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SURGSIM_TESTING_TESTCUBE_H
#define SURGSIM_TESTING_TESTCUBE_H
#include <vector>
#include "SurgSim/Math/Vector.h"
using SurgSim::Math::Vector2d;
using SurgSim::Math::Vector3d;
using SurgSim::Math::Vector4d;
#include <memory>
namespace SurgSim
{
namespace Testing
{
namespace Cube
{
void makeCube(std::vector<Vector3d>* vertices,
std::vector<Vector4d>* colors,
std::vector<Vector2d>* textures,
std::vector<size_t>* triangles);
}; // Cube
}; // Testing
}; // SurgSim
#endif
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::Testing::Cube::makeCube
void makeCube(std::vector< Vector3d > *vertices, std::vector< Vector4d > *colors, std::vector< Vector2d > *textures, std::vector< size_t > *triangles)
Fill our standard structures with the correct data types from the cube data.
Definition: TestCube.cpp:134
SurgSim::Math::Vector2d
Eigen::Matrix< double, 2, 1 > Vector2d
A 2D vector of doubles.
Definition: Vector.h:53
Vector.h
Definitions of small fixed-size vector types.
SurgSim::Math::Vector4d
Eigen::Matrix< double, 4, 1 > Vector4d
A 4D vector of doubles.
Definition: Vector.h:61
SurgSim::Math::Vector3d
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57