//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- RiuFemTimeHistoryResultAccessor::RiuFemTimeHistoryResultAccessor(RigGeoMechCaseData* geomData, RigFemResultAddress femResultAddress, size_t gridIndex, int elementIndex, int face, const cvf::Vec3d& intersectionPointInDomain) : m_geoMechCaseData(geomData), m_femResultAddress(new RigFemResultAddress(femResultAddress)), m_gridIndex(gridIndex), m_elementIndex(elementIndex), m_face(face), m_intersectionPointInDomain(intersectionPointInDomain), m_hasIntersectionTriangle(false) { computeTimeHistoryData(); }
//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- RiuFemTimeHistoryResultAccessor::RiuFemTimeHistoryResultAccessor(RigGeoMechCaseData* geomData, RigFemResultAddress femResultAddress, size_t gridIndex, int elementIndex, int face, const cvf::Vec3d& intersectionPoint, const std::array<cvf::Vec3f, 3>& intersectionTriangle) : m_geoMechCaseData(geomData), m_femResultAddress(femResultAddress), m_gridIndex(gridIndex), m_elementIndex(elementIndex), m_face(face), m_intersectionPoint(intersectionPoint), m_hasIntersectionTriangle(true), m_intersectionTriangle(intersectionTriangle) { computeTimeHistoryData(); }