#942 Added plane Azi and Inc angles as result values.

This commit is contained in:
Jacob Støren committed 2016-11-01 12:05:22 +01:00
1 parent 67894ecef0
commit d2d9d43ca1
5 files changed
+162 -14

No files matched your search

@@ -184,13 +184,23 @@ void RivIntersectionBoxPartMgr::updateCellResultColor(size_t timeStepIndex)
// Special direction sensitive result calculation
const cvf::Vec3fArray* triangelVxes = m_intersectionBoxGenerator->triangleVxes();
RivIntersectionPartMgr::calculateGeoMechTensorXfTextureCoords(m_intersectionBoxFacesTextureCoords.p(),
if ( resVarAddress.componentName == "Pazi" || resVarAddress.componentName == "Pinc" )
{
RivIntersectionPartMgr::calculatePlaneAngleTextureCoords(m_intersectionBoxFacesTextureCoords.p(),
triangelVxes,
resVarAddress,
mapper);
}
else
{
RivIntersectionPartMgr::calculateGeoMechTensorXfTextureCoords(m_intersectionBoxFacesTextureCoords.p(),
triangelVxes,
vertexWeights,
caseData,
resVarAddress,
(int)timeStepIndex,
mapper);
}
}
RivScalarMapperUtils::applyTextureResultsToPart(m_intersectionBoxFaces.p(),