0001025: wireframe mode should include vertices in display

This commit is contained in:
wmayer 2013-07-01 14:00:55 +02:00
parent f5d091fc96
commit 0de46dcd0e

View File

@ -349,8 +349,14 @@ void ViewProviderPartExt::attach(App::DocumentObject *pcFeat)
// The correct order is Edges, Polygon offset, Faces.
SoPolygonOffset* offset = new SoPolygonOffset();
// wireframe node
SoSeparator* wireframe = new SoSeparator();
wireframe->addChild(pcLineMaterial);
wireframe->addChild(pcLineStyle);
wireframe->addChild(lineset);
// normal viewing with edges and points
pcNormalRoot->addChild(pcWireframeRoot);
pcNormalRoot->addChild(wireframe);
pcNormalRoot->addChild(offset);
pcNormalRoot->addChild(pcFlatRoot);
pcNormalRoot->addChild(pcPointsRoot);
@ -366,10 +372,9 @@ void ViewProviderPartExt::attach(App::DocumentObject *pcFeat)
pcFlatRoot->addChild(normb);
pcFlatRoot->addChild(faceset);
// only edges
pcWireframeRoot->addChild(pcLineMaterial);
pcWireframeRoot->addChild(pcLineStyle);
pcWireframeRoot->addChild(lineset);
// edges and points
pcWireframeRoot->addChild(wireframe);
pcWireframeRoot->addChild(pcPointsRoot);
// normal viewing with edges and points
pcPointsRoot->addChild(pcPointMaterial);