File indexing completed on 2025-01-18 09:13:03
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <boost/test/unit_test.hpp>
0010
0011 #include "Acts/Visualization/ObjVisualization3D.hpp"
0012
0013 #include <iostream>
0014 #include <string>
0015 #include <vector>
0016
0017 #include "TrackingGeometryView3DBase.hpp"
0018 #include "Visualization3DTester.hpp"
0019
0020 namespace Acts::Test {
0021
0022 BOOST_AUTO_TEST_SUITE(Visualization)
0023
0024
0025 BOOST_AUTO_TEST_CASE(TrackingGeometryView3DObj) {
0026 ObjVisualization3D obj;
0027
0028 bool triangulate = false;
0029 auto objTest = TrackingGeometryView3DTest::run(obj, triangulate, "");
0030 auto objErrors = testObjString(objTest, triangulate);
0031 std::cout << "Surfaces Obj Test : " << objTest.size()
0032 << " characters written with " << objErrors.size() << " errors."
0033 << std::endl;
0034 BOOST_CHECK(objErrors.empty());
0035 for (const auto& objerr : objErrors) {
0036 std::cout << objerr << std::endl;
0037 }
0038
0039 triangulate = true;
0040 auto objTest3M = TrackingGeometryView3DTest::run(obj, triangulate, "_3M");
0041 auto objErrors3M = testObjString(objTest3M, triangulate);
0042 std::cout << "Surfaces Obj Test 3M : " << objTest3M.size()
0043 << " characters written with " << objErrors3M.size() << " errors."
0044 << std::endl;
0045 BOOST_CHECK(objErrors3M.empty());
0046 for (const auto& objerr : objErrors3M) {
0047 std::cout << objerr << std::endl;
0048 }
0049 }
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080 BOOST_AUTO_TEST_SUITE_END()
0081
0082 }