Commit 770189f5 authored by kraus's avatar kraus
Browse files

cleaning up

parent 8d19c13a
......@@ -1702,7 +1702,7 @@ ElementBase::BoundingBox Bend2D::getBoundingBoxInLabCoords() const {
bb.upperRightCorner = std::numeric_limits<double>::lowest();
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) {
Vector_t vecInLabCoords = csTrafoGlobal2Local_m.transformFrom(vec + i * dY);
for (unsigned int d = 0; d < 3; ++ d) {
......
......@@ -375,7 +375,7 @@ ElementBase::BoundingBox::getPointOfIntersection(const Vector_t & position,
continue;
}
return position + tau * normalizedDirection;
return position + delta;
}
relativePosition = upperRightCorner - position;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment