Constified some methods in FemPart. WIP range filter mapping first untested code.

This commit is contained in:
Jacob Støren
2015-10-18 09:43:05 +02:00
parent 20b7ee9aa5
commit db4e637e76
6 changed files with 230 additions and 24 deletions

View File

@@ -71,7 +71,7 @@ void RigFemPart::appendElement(RigElementType elmType, int id, const int* connec
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const RigFemPartGrid* RigFemPart::structGrid()
const RigFemPartGrid* RigFemPart::structGrid() const
{
if (m_structGrid.isNull())
{
@@ -250,7 +250,7 @@ void RigFemPart::calculateElmNeighbors()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::Vec3f RigFemPart::faceNormal(int elmIdx, int faceIdx)
cvf::Vec3f RigFemPart::faceNormal(int elmIdx, int faceIdx) const
{
const std::vector<cvf::Vec3f>& nodeCoordinates = this->nodes().coordinates;