Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 770189f5 authored by kraus's avatar kraus
Browse files

cleaning up

parent 8d19c13a
No related branches found
No related tags found
1 merge request!336Resolve "OrbitThreader::computeMaximalImplicitDrift not yielding correct results"
...@@ -1702,7 +1702,7 @@ ElementBase::BoundingBox Bend2D::getBoundingBoxInLabCoords() const { ...@@ -1702,7 +1702,7 @@ ElementBase::BoundingBox Bend2D::getBoundingBoxInLabCoords() const {
bb.upperRightCorner = std::numeric_limits<double>::lowest(); bb.upperRightCorner = std::numeric_limits<double>::lowest();
Vector_t dY(0, 0.5 * getFullGap(), 0); Vector_t dY(0, 0.5 * getFullGap(), 0);
for (int i = -1; i < 2; i += 2) { for (int i : {-1, 1}) {
for (const Vector_t & vec: outline) { for (const Vector_t & vec: outline) {
Vector_t vecInLabCoords = csTrafoGlobal2Local_m.transformFrom(vec + i * dY); Vector_t vecInLabCoords = csTrafoGlobal2Local_m.transformFrom(vec + i * dY);
for (unsigned int d = 0; d < 3; ++ d) { for (unsigned int d = 0; d < 3; ++ d) {
......
...@@ -375,7 +375,7 @@ ElementBase::BoundingBox::getPointOfIntersection(const Vector_t & position, ...@@ -375,7 +375,7 @@ ElementBase::BoundingBox::getPointOfIntersection(const Vector_t & position,
continue; continue;
} }
return position + tau * normalizedDirection; return position + delta;
} }
relativePosition = upperRightCorner - position; relativePosition = upperRightCorner - position;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment