some fixes of the fixes ;)
This commit is contained in:
parent
4c6e988aad
commit
3f7f010041
|
@ -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();
|
||||
|
|
|
@ -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<const SoNode*>(pcModeSwitch)));
|
||||
//pcRoot->insertChild(pcCoords,pcRoot->findChild(reinterpret_cast<const SoNode*>(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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user