From 3f7f010041f6d7b2e0356987448d53167f665a72 Mon Sep 17 00:00:00 2001 From: jriegel Date: Wed, 10 Jul 2013 07:45:39 +0200 Subject: [PATCH] some fixes of the fixes ;) --- src/Gui/View3DInventorViewer.cpp | 7 +++++++ src/Mod/Fem/Gui/ViewProviderFemMesh.cpp | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 05cd13e26..33ce3cbf6 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -172,6 +172,13 @@ View3DInventorViewer::View3DInventorViewer (QWidget *parent, const char *name, backgroundroot->ref(); this->backgroundroot->addChild(cam); + SoShapeHints* pShapeHints = new SoShapeHints; + pShapeHints->shapeType = SoShapeHints::UNKNOWN_SHAPE_TYPE; + pShapeHints->vertexOrdering = SoShapeHints::COUNTERCLOCKWISE; + pShapeHints->ref(); + this->backgroundroot->addChild(pShapeHints); + + // Background stuff pcBackGround = new SoFCBackgroundGradient; pcBackGround->ref(); diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp index fb28e1236..372d05aa3 100755 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp @@ -232,7 +232,7 @@ void ViewProviderFemMesh::attach(App::DocumentObject *pcObj) ViewProviderGeometryObject::attach(pcObj); // Move 'coords' before the switch - pcRoot->insertChild(pcCoords,pcRoot->findChild(reinterpret_cast(pcModeSwitch))); + //pcRoot->insertChild(pcCoords,pcRoot->findChild(reinterpret_cast(pcModeSwitch))); // Annotation sets SoGroup* pcAnotRoot = new SoAnnotation(); @@ -255,7 +255,7 @@ void ViewProviderFemMesh::attach(App::DocumentObject *pcObj) // flat SoGroup* pcFlatRoot = new SoGroup(); // face nodes - //pcFlatRoot->addChild(pcCoords); + pcFlatRoot->addChild(pcCoords); pcFlatRoot->addChild(pShapeHints); pcFlatRoot->addChild(pcShapeMaterial); pcFlatRoot->addChild(pcMatBinding); @@ -267,7 +267,7 @@ void ViewProviderFemMesh::attach(App::DocumentObject *pcObj) SoLightModel* pcLightModel = new SoLightModel(); pcLightModel->model = SoLightModel::BASE_COLOR; SoGroup* pcWireRoot = new SoGroup(); - //pcWireRoot->addChild(pcCoords); + pcWireRoot->addChild(pcCoords); pcWireRoot->addChild(pcDrawStyle); pcWireRoot->addChild(pcLightModel); SoBaseColor* color = new SoBaseColor(); @@ -281,7 +281,7 @@ void ViewProviderFemMesh::attach(App::DocumentObject *pcObj) SoGroup* pcPointsRoot = new SoSeparator(); pcPointsRoot->addChild(pcPointMaterial); pcPointsRoot->addChild(pcPointStyle); - //pcPointsRoot->addChild(pcCoords); + pcPointsRoot->addChild(pcCoords); pointset = new SoPointSet; pcPointsRoot->addChild(pointset); addDisplayMaskMode(pcPointsRoot, "Nodes");