Skip to content

Commit

Permalink
correct first, then draw
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed Jun 4, 2024
1 parent 9f5ae7f commit ae3f4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/ActSVG/src/PortalSvgConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ std::vector<Acts::Svg::ProtoLink> convertMultiLink(
position = Acts::Vector3(refC * std::cos(phi), refC * std::sin(phi),
refPosition.z());
} else if (bValue == Acts::binZ) {
position[2] = refC;
// correct to global
refC += surface.transform(gctx).translation().z();
position[2] = refC;
} else if (bValue == Acts::binPhi) {
Acts::ActsScalar r = Acts::VectorHelpers::perp(refPosition);
position = Acts::Vector3(r * std::cos(refC), r * std::sin(refC),
Expand Down

0 comments on commit ae3f4d1

Please sign in to comment.