mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#3401 HoloLens : Add detection of mesh line parts
This commit is contained in:
1 parent
b028c36116
commit
32237b6c7c
11 files changed
+212
-64
No files matched your search
@@ -36,6 +36,7 @@
|
||||
#include "RimRegularLegendConfig.h"
|
||||
|
||||
#include "RivFemPickSourceInfo.h"
|
||||
#include "RivMeshLinesSourceInfo.h"
|
||||
#include "RivPartPriority.h"
|
||||
#include "RivResultToTextureMapper.h"
|
||||
#include "RivScalarMapperUtils.h"
|
||||
@@ -99,6 +100,9 @@ void RivFemPartPartMgr::setCellVisibility(cvf::UByteArray* cellVisibilities)
|
||||
generatePartGeometry(m_surfaceGenerator);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivFemPartPartMgr::generatePartGeometry(RivFemPartGeometryGenerator& geoBuilder)
|
||||
{
|
||||
bool useBufferObjects = true;
|
||||
@@ -166,6 +170,9 @@ void RivFemPartPartMgr::generatePartGeometry(RivFemPartGeometryGenerator& geoBui
|
||||
|
||||
part->setEnableMask(meshSurfaceBit);
|
||||
part->setEffect(eff.p());
|
||||
|
||||
part->setSourceInfo(new RivMeshLinesSourceInfo(nullptr));
|
||||
|
||||
m_surfaceGridLines = part;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user