154 STLReader myReader(directory+
"/Drivers/ImportTools/ExampleSTLFiles/Box1x1x1.stl");
156 std::vector<STLTriangle> answer;
159 answer.emplace_back(
Vec3D(0,1,0),
Vec3D(1.60291, 1.36214, 1e-06),
Vec3D(0.602907, 1.36214, 1e-06),
Vec3D(1.60291, 1.36214, 1));
161 answer.emplace_back(
Vec3D(0, 1, -0),
Vec3D(1.60291, 1.36214, 1),
Vec3D(0.602907, 1.36214, 1e-06),
Vec3D(0.602907, 1.36214, 1));
163 answer.emplace_back(
Vec3D(1, 0, -0),
Vec3D(1.60291, 0.362136, 1e-06),
Vec3D(1.60291, 1.36214, 1e-06),
Vec3D(1.60291, 0.362136, 1));
165 answer.emplace_back(
Vec3D(1, -0, 0),
Vec3D(1.60291, 0.362136, 1),
Vec3D(1.60291, 1.36214, 1e-06),
Vec3D(1.60291, 1.36214, 1));
167 answer.emplace_back(
Vec3D(0, -1, 0),
Vec3D(0.602907, 0.362136, 1e-06),
Vec3D(1.60291, 0.362136, 1e-06),
Vec3D(0.602907, 0.362136, 1));
169 answer.emplace_back(
Vec3D(0, -1, 0),
Vec3D(0.602907, 0.362136, 1),
Vec3D(1.60291, 0.362136, 1e-06),
Vec3D(1.60291, 0.362136, 1));
171 answer.emplace_back(
Vec3D(-1, 1.11022e-16, 0),
Vec3D(0.602907, 1.36214, 1e-06),
Vec3D(0.602907, 0.362136, 1e-06),
Vec3D(0.602907, 1.36214, 1));
173 answer.emplace_back(
Vec3D(-1, 1.11022e-16, 0),
Vec3D(0.602907, 1.36214, 1),
Vec3D(0.602907, 0.362136, 1e-06),
Vec3D(0.602907, 0.362136, 1));
175 answer.emplace_back(
Vec3D(0, -0, 1),
Vec3D(0.602907, 0.362136, 1),
Vec3D(1.60291, 0.362136, 1),
Vec3D(0.602907, 1.36214, 1));
177 answer.emplace_back(
Vec3D(-0, 0, 1),
Vec3D(0.602907, 1.36214, 1),
Vec3D(1.60291, 0.362136, 1),
Vec3D(1.60291, 1.36214, 1));
179 answer.emplace_back(
Vec3D(0, -0, -1),
Vec3D(0.602907, 1.36214, 1e-06),
Vec3D(1.60291, 1.36214, 1e-06),
Vec3D(0.602907, 0.362136, 1e-06));
181 answer.emplace_back(
Vec3D(0, 0, -1),
Vec3D(0.602907, 0.362136, 1e-06),
Vec3D(1.602907, 1.362136, 1e-06),
Vec3D(1.60291, 0.362136, 1e-06));
186 for (
unsigned int i=0;
i<answer.size();
i++)
201 if (!(answer[
i].isEqualTo(myReader.getTriangle(
i),1e-4)))
const std::string getMercuryDPMSourceDir()
This file is used for generating definitions that give access to CMakeVariables from within a cpp fil...
Definition: CMakeDefinitions.cc:32
LL< Log::FATAL > FATAL
Definition of the different loglevels by its wrapper class LL. These are used as tags in template met...
Definition: Logger.cc:52
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: BinaryReaderSTL1by1by1bySquareUnitTest.cpp:69
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51