Skip to content
Snippets Groups Projects
Commit 6608a379 authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL] Use Point3d::asEigenVector3d() instead of Eigen::Map.

parent 6aa80623
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,8 @@ bool DeactivatedSubdomain::isDeactivated(MathLib::Point3d const& point,
// Position r on the line at given time.
Eigen::Vector3d const r = a + t * time_interval.getValue(time);
Eigen::Map<Eigen::Vector3d const> const p{point.data(), 3};
// Return true if p is "behind" the plane through r.
return (p - r).dot(t) <= 0;
return (point.asEigenVector3d() - r).dot(t) <= 0;
}
} // namespace ProcessLib
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