Fem: [skip ci] replace the SoAnnotation with an SoSeparator to fix rendering artifacts for non-convex objects
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user