#5418 Add picking on reservoir surfaces.

Added sorting of pick items based on tolerance and polygon offset unit.
This commit is contained in:
Jacob Støren
2020-01-28 10:21:37 +01:00
parent 7251f47146
commit f1ab745097
7 changed files with 258 additions and 38 deletions

View File

@@ -396,9 +396,12 @@ void RivSurfacePartMgr::generateNativePartGeometry()
drawGeo->setVertexArray( cvfVertices.p() );
drawGeo->computeNormals();
cvf::ref<RivObjectSourceInfo> objectSourceInfo = new RivObjectSourceInfo( m_surfaceInView );
m_nativeTrianglesPart = new cvf::Part();
m_nativeTrianglesPart->setName( "Native Reservoir Surface" );
m_nativeTrianglesPart->setDrawable( drawGeo.p() );
m_nativeTrianglesPart->setSourceInfo( objectSourceInfo.p() );
m_nativeVertexToCellIndexMap.clear();
}