#3204 Add double precision to OffshoreSphericalCoords

This commit is contained in:
Jacob Støren
2018-08-14 11:15:28 +02:00
parent 92dd375da3
commit 9025cedecb
3 changed files with 22 additions and 8 deletions

View File

@@ -441,11 +441,11 @@ void RivIntersectionPartMgr::calculatePlaneAngleTextureCoords(cvf::Vec2fArray* t
std::function<float (const RiaOffshoreSphericalCoords& )> operation;
if (resVarAddress.componentName == "Pazi")
{
operation = [](const RiaOffshoreSphericalCoords& sphCoord) { return sphCoord.azi();};
operation = [](const RiaOffshoreSphericalCoords& sphCoord) { return (float)sphCoord.azi();};
}
else if ( resVarAddress.componentName == "Pinc" )
{
operation = [](const RiaOffshoreSphericalCoords& sphCoord) { return sphCoord.inc();};
operation = [](const RiaOffshoreSphericalCoords& sphCoord) { return (float)sphCoord.inc();};
}
#pragma omp parallel for schedule(dynamic)