NNC: Improved visual effects

Removed use of depth buffer manipulation as this caused invalid result
color mapping for NNC when combined with other fault geometry.
Use polygon offset on NNC geometry to make sure NNC always wins
This commit is contained in:
Magne Sjaastad
2014-01-22 13:17:05 +01:00
parent 4f079549f3
commit 6aa586f9f5
2 changed files with 11 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ private:
void updateNNCColors(RimResultSlot* cellResultSlot);
cvf::ref<cvf::Effect> cellResultEffect(const cvf::ScalarMapper* mapper) const;
cvf::ref<cvf::Effect> cellResultEffect(const cvf::ScalarMapper* mapper, caf::PolygonOffset polygonOffset) const;
caf::FaceCulling faceCullingMode() const;
void createLabelWithAnchorLine(const cvf::Part* part);