File indexing completed on 2025-08-06 08:11:38
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <boost/test/tools/output_test_stream.hpp>
0010 #include <boost/test/unit_test.hpp>
0011
0012 #include "Acts/Visualization/ObjVisualization3D.hpp"
0013
0014 #include <iostream>
0015 #include <string>
0016 #include <vector>
0017
0018 #include "TrackingGeometryView3DBase.hpp"
0019 #include "Visualization3DTester.hpp"
0020
0021 namespace Acts {
0022 namespace Test {
0023
0024 BOOST_AUTO_TEST_SUITE(Visualization)
0025
0026
0027 BOOST_AUTO_TEST_CASE(TrackingGeometryView3DObj) {
0028 ObjVisualization3D obj;
0029
0030 bool triangulate = false;
0031 auto objTest = TrackingGeometryView3DTest::run(obj, triangulate, "");
0032 auto objErrors = testObjString(objTest, triangulate);
0033 std::cout << "Surfaces Obj Test : " << objTest.size()
0034 << " characters written with " << objErrors.size() << " errors."
0035 << std::endl;
0036 BOOST_CHECK(objErrors.empty());
0037 for (const auto& objerr : objErrors) {
0038 std::cout << objerr << std::endl;
0039 }
0040
0041 triangulate = true;
0042 auto objTest3M = TrackingGeometryView3DTest::run(obj, triangulate, "_3M");
0043 auto objErrors3M = testObjString(objTest3M, triangulate);
0044 std::cout << "Surfaces Obj Test 3M : " << objTest3M.size()
0045 << " characters written with " << objErrors3M.size() << " errors."
0046 << std::endl;
0047 BOOST_CHECK(objErrors3M.empty());
0048 for (const auto& objerr : objErrors3M) {
0049 std::cout << objerr << std::endl;
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
0081
0082 BOOST_AUTO_TEST_SUITE_END()
0083
0084 }
0085 }