visualize the primitive add/sub shape in edit

This commit is contained in:
Stefan Tröger
2015-05-19 22:05:46 +02:00
parent 1f180a11da
commit fec86abc09
8 changed files with 286 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ using namespace PartGui;
PROPERTY_SOURCE(PartGui::ViewProviderPartExt, Gui::ViewProviderGeometryObject)
void GetNormals(const TopoDS_Face& theFace,
void ViewProviderPartExt::GetNormals(const TopoDS_Face& theFace,
const Handle(Poly_Triangulation)& aPolyTri,
TColgp_Array1OfDir& theNormals)
{

View File

@@ -27,6 +27,9 @@
#include <Standard_math.hxx>
#include <Standard_Boolean.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Face.hxx>
#include <Poly_Triangulation.hxx>
#include <TColgp_Array1OfDir.hxx>
#include <App/PropertyUnits.h>
#include <Gui/ViewProviderGeometryObject.h>
#include <map>
@@ -125,6 +128,8 @@ protected:
virtual void onChanged(const App::Property* prop);
bool loadParameter();
void updateVisual(const TopoDS_Shape &);
void GetNormals(const TopoDS_Face& theFace, const Handle(Poly_Triangulation)& aPolyTri,
TColgp_Array1OfDir& theNormals);
// nodes for the data representation
SoMaterialBinding * pcShapeBind;