Fixed possible CppCheck detected bug regarding Result info and result plot for Geomech models. Triangle hit was not propagated properly.

This commit is contained in:
Jacob Støren 2017-03-03 17:17:41 +01:00
parent 4312968124
commit ad517894d3
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
m_elementFace(elementFace), m_elementFace(elementFace),
m_localIntersectionPoint(localIntersectionPoint), m_localIntersectionPoint(localIntersectionPoint),
m_hasIntersectionTriangle(true), m_hasIntersectionTriangle(true),
m_intersectionTriangle(m_intersectionTriangle) m_intersectionTriangle(intersectionTriangle)
{ {
} }

View File

@ -153,7 +153,7 @@ public:
cvf::Color3f color, cvf::Color3f color,
int elementFace, int elementFace,
const cvf::Vec3d& localIntersectionPoint, const cvf::Vec3d& localIntersectionPoint,
const std::array<cvf::Vec3f, 3>& m_intersectionTriangle ); const std::array<cvf::Vec3f, 3>& intersectionTriangle );
virtual ~RiuGeoMechSelectionItem() {}; virtual ~RiuGeoMechSelectionItem() {};
virtual RiuSelectionType type() const virtual RiuSelectionType type() const