issue #0002183: Mesh View . Use Bounding-Box Not Working For Flat Lines
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
# include <Inventor/nodes/SoShapeHints.h>
|
||||
# include <Inventor/nodes/SoOrthographicCamera.h>
|
||||
# include <Inventor/nodes/SoTransform.h>
|
||||
# include <Inventor/nodes/SoSeparator.h>
|
||||
# include <Inventor/nodes/SoSeparator.h>
|
||||
# include <Inventor/events/SoMouseButtonEvent.h>
|
||||
# include <QAction>
|
||||
# include <QMenu>
|
||||
@@ -114,8 +114,8 @@ void ViewProviderMeshFaceSet::attach(App::DocumentObject *pcFeat)
|
||||
{
|
||||
ViewProviderMesh::attach(pcFeat);
|
||||
|
||||
pcHighlight->addChild(pcMeshCoord);
|
||||
pcHighlight->addChild(pcMeshFaces);
|
||||
pcShapeGroup->addChild(pcMeshCoord);
|
||||
pcShapeGroup->addChild(pcMeshFaces);
|
||||
|
||||
// read the threshold from the preferences
|
||||
Base::Reference<ParameterGrp> hGrp = Gui::WindowParameter::getDefaultParameter()->GetGroup("Mod/Mesh");
|
||||
@@ -141,21 +141,21 @@ void ViewProviderMeshFaceSet::updateData(const App::Property* prop)
|
||||
pcMeshFaces->coordIndex.setNum(0);
|
||||
}
|
||||
else {
|
||||
ViewProviderMeshBuilder builder;
|
||||
builder.createMesh(prop, pcMeshCoord, pcMeshFaces);
|
||||
ViewProviderMeshBuilder builder;
|
||||
builder.createMesh(prop, pcMeshCoord, pcMeshFaces);
|
||||
}
|
||||
|
||||
if (direct != directRendering) {
|
||||
directRendering = direct;
|
||||
pcHighlight->removeAllChildren();
|
||||
pcShapeGroup->removeAllChildren();
|
||||
|
||||
if (directRendering) {
|
||||
pcHighlight->addChild(pcMeshNode);
|
||||
pcHighlight->addChild(pcMeshShape);
|
||||
pcShapeGroup->addChild(pcMeshNode);
|
||||
pcShapeGroup->addChild(pcMeshShape);
|
||||
}
|
||||
else {
|
||||
pcHighlight->addChild(pcMeshCoord);
|
||||
pcHighlight->addChild(pcMeshFaces);
|
||||
pcShapeGroup->addChild(pcMeshCoord);
|
||||
pcShapeGroup->addChild(pcMeshFaces);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user