File indexing completed on 2025-11-23 09:33:26
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Geometry/GeometryContext.hpp"
0013 #include "Acts/Geometry/GeometryHierarchyMap.hpp"
0014 #include "Acts/Plugins/ActSVG/SvgUtils.hpp"
0015 #include <actsvg/meta.hpp>
0016
0017 #include <tuple>
0018 #include <vector>
0019
0020 namespace Acts {
0021
0022 class SurfaceArray;
0023
0024 namespace Svg {
0025
0026 using ProtoSurface = actsvg::proto::surface<std::vector<Vector3>>;
0027 using ProtoSurfaces = std::vector<ProtoSurface>;
0028 using ProtoGrid = actsvg::proto::grid;
0029 using ProtoAssociations = std::vector<std::vector<std::size_t>>;
0030
0031 namespace SurfaceArrayConverter {
0032
0033
0034 struct Options {
0035
0036 GeometryHierarchyMap<Style> surfaceStyles;
0037 };
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048 std::tuple<std::vector<ProtoSurfaces>, ProtoGrid,
0049 std::vector<ProtoAssociations>>
0050 convert(const GeometryContext& gctx, const SurfaceArray& surfaceArray,
0051 const Options& cOptions);
0052
0053 }
0054
0055 }
0056
0057 }