Fem: [skip ci] replace the SoAnnotation with an SoSeparator to fix rendering artifacts for non-convex objects

This commit is contained in:
wmayer
2022-08-02 19:09:05 +02:00
parent 38b34fb26a
commit ede18d20b9
3 changed files with 3 additions and 13 deletions

View File

@@ -28,7 +28,7 @@
# include <QMenu>
# include <QMessageBox>
# include <QTextStream>
# include <Inventor/nodes/SoAnnotation.h>
# include <Inventor/nodes/SoSeparator.h>
#endif
#include <App/MaterialObject.h>
@@ -58,7 +58,7 @@ using namespace FemGui;
ViewProviderFemHighlighter::ViewProviderFemHighlighter()
{
annotate = new SoAnnotation();
annotate = new SoSeparator();
annotate->ref();
}

View File

@@ -28,8 +28,6 @@
#include <Mod/Fem/FemGlobal.h>
#include <QCoreApplication>
class SoAnnotation;
namespace FemGui
{
@@ -45,7 +43,7 @@ public:
void highlightView(Gui::ViewProviderDocumentObject*);
private:
SoAnnotation* annotate;
SoSeparator* annotate;
};
class FemGuiExport ViewProviderFemAnalysis : public Gui::ViewProviderDocumentObjectGroup

View File

@@ -22,10 +22,6 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Inventor/nodes/SoShapeHints.h>
#endif
#include <App/GroupExtension.h>
#include <Gui/Application.h>
#include <Gui/Selection.h>
@@ -44,10 +40,6 @@ PROPERTY_SOURCE(FemGui::ViewProviderFemPostPipeline, FemGui::ViewProviderFemPost
ViewProviderFemPostPipeline::ViewProviderFemPostPipeline()
{
sPixmap = "FEM_PostPipelineFromResult";
// Fixes rendering issue with the annotation node
m_shapeHints->vertexOrdering = SoShapeHints::CLOCKWISE;
m_shapeHints->shapeType = SoShapeHints::SOLID;
}
ViewProviderFemPostPipeline::~ViewProviderFemPostPipeline()