diff --git a/src/Mod/Surface/Gui/Blending/ViewProviderBlendCurve.cpp b/src/Mod/Surface/Gui/Blending/ViewProviderBlendCurve.cpp index 333c4c6051..b64893f76a 100644 --- a/src/Mod/Surface/Gui/Blending/ViewProviderBlendCurve.cpp +++ b/src/Mod/Surface/Gui/Blending/ViewProviderBlendCurve.cpp @@ -32,7 +32,7 @@ namespace SurfaceGui QIcon ViewProviderBlendCurve::getIcon() const { - return Gui::BitmapFactory().pixmap("BlendCurve"); + return Gui::BitmapFactory().pixmap("Surface_BlendCurve"); } }//namespace SurfaceGui diff --git a/src/Mod/Surface/Gui/Command.cpp b/src/Mod/Surface/Gui/Command.cpp index ff650769aa..9a2f9cfb51 100644 --- a/src/Mod/Surface/Gui/Command.cpp +++ b/src/Mod/Surface/Gui/Command.cpp @@ -209,38 +209,7 @@ bool CmdSurfaceCurveOnMesh::isActive() } //=========================================================================== -// CmdBlendSurface THIS IS THE BLEND SURFACE COMMAND -//=========================================================================== -DEF_STD_CMD_A(CmdBlendSurface) - -CmdBlendSurface::CmdBlendSurface() - : Command("Surface_BlendSurface") -{ - sAppModule = "Surface"; - sGroup = QT_TR_NOOP("Surface"); - sMenuText = QT_TR_NOOP("Blend Surface"); - sToolTipText = QT_TR_NOOP("This is the blend Surface feature"); - sStatusTip = sToolTipText; - sWhatsThis = "BlendSurface"; - sPixmap = "BlendSurface"; -} - -void CmdBlendSurface::activated(int) -{ - -} - -bool CmdBlendSurface::isActive() -{ - return true; -} - - - - - -//=========================================================================== -// CmdBlendCurve THIS IS THE BLEND CURVE COMMAND +// CmdBlendCurve : Blend Curve Command //=========================================================================== DEF_STD_CMD_A(CmdBlendCurve) @@ -253,43 +222,16 @@ CmdBlendCurve::CmdBlendCurve() sToolTipText = QT_TR_NOOP("Join two edges with high continuity"); sStatusTip = sToolTipText; sWhatsThis = "BlendCurve"; - sPixmap = "BlendCurve"; + sPixmap = "Surface_BlendCurve"; } void CmdBlendCurve::activated(int) { - // To do add pickpoints to parameters std::string docName = App::GetApplication().getActiveDocument()->getName(); std::string objName[2]; std::string edge[2]; std::string featName = getUniqueObjectName("BlendCurve"); std::vector sel = getSelection().getSelectionEx(0, Part::Feature::getClassTypeId()); - //std::vector pickedPoints = sel[0].getPickedPoints(); - //App::DocumentObject *obj1 = sel[0].getObject(); - //App::DocumentObject *obj2 = sel[1].getObject(); - //std::vector edge1SubName = sel[0].getSubNames(); - //std::vector edge2SubName = sel[1].getSubNames(); - - //TopoDS_Shape edge1 = static_cast(obj1) - // ->Shape.getShape() - // .getSubShape(edge1SubName[0].c_str()); - //if (edge1.IsNull() || edge1.ShapeType() != TopAbs_EDGE) - // return; - //TopoDS_Shape edge2 = static_cast(obj2) - // ->Shape.getShape() - // .getSubShape(edge2SubName[0].c_str()); - //if (edge2.IsNull() || edge2.ShapeType() != TopAbs_EDGE) - // return; - - //const TopoDS_Edge &e1 = TopoDS::Edge(edge1); - //BRepAdaptor_Curve adapt1(e1); - //gp_Pnt pnt1(pickedPoints[0].x, pickedPoints[0].y, pickedPoints[0].z); - - //GeomAdaptor_Curve geomCurve = adapt1.Curve(); - //GeomAPI_ProjectPointOnCurve geomAPI(pnt1, geomCurve.Curve()); - //double par = geomAPI.LowerDistanceParameter(); - - //edge2.Curve.closestParameter(vec, par) objName[0] = sel[0].getFeatName(); edge[0] = sel[0].getSubNames()[0]; @@ -316,10 +258,6 @@ bool CmdBlendCurve::isActive() return edgeFilter.match(); } - - - - DEF_STD_CMD_A(CmdSurfaceExtendFace) CmdSurfaceExtendFace::CmdSurfaceExtendFace() @@ -403,5 +341,4 @@ void CreateSurfaceCommands() rcCmdMgr.addCommand(new CmdSurfaceExtendFace()); rcCmdMgr.addCommand(new CmdSurfaceCurveOnMesh()); rcCmdMgr.addCommand(new CmdBlendCurve()); - rcCmdMgr.addCommand(new CmdBlendSurface()); } diff --git a/src/Mod/Surface/Gui/Resources/Surface.qrc b/src/Mod/Surface/Gui/Resources/Surface.qrc index a0840c7967..db576e80ba 100644 --- a/src/Mod/Surface/Gui/Resources/Surface.qrc +++ b/src/Mod/Surface/Gui/Resources/Surface.qrc @@ -4,7 +4,7 @@ icons/Surface_BSplineSurface.svg icons/Surface_CurveOnMesh.svg icons/Surface_Cut.svg - icons/BlendCurve.svg + icons/Surface_BlendCurve.svg icons/Surface_ExtendFace.svg icons/Surface_Filling.svg icons/Surface_GeomFillSurface.svg @@ -12,7 +12,6 @@ icons/Surface_Sewing.svg icons/Surface_Surface.svg icons/Surface_Workbench.svg - icons/BlendSurface.svg diff --git a/src/Mod/Surface/Gui/Resources/icons/BlendSurface.svg b/src/Mod/Surface/Gui/Resources/icons/BlendSurface.svg deleted file mode 100644 index 96587889a5..0000000000 --- a/src/Mod/Surface/Gui/Resources/icons/BlendSurface.svg +++ /dev/null @@ -1,191 +0,0 @@ - - - Surface_Sewing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Surface_Sewing - - - [bitacovir] - - - Part_Shape_from_Mesh - 2020/10/03 - http://www.freecad.org/wiki/index.php?title=Artwork - - - FreeCAD - - - - - - FreeCAD LGPL2+ - - - https://www.gnu.org/copyleft/lesser.html - - - - - - - - surface - - - - - - - - - - - - - - - - - diff --git a/src/Mod/Surface/Gui/Resources/icons/BlendCurve.svg b/src/Mod/Surface/Gui/Resources/icons/Surface_BlendCurve.svg similarity index 100% rename from src/Mod/Surface/Gui/Resources/icons/BlendCurve.svg rename to src/Mod/Surface/Gui/Resources/icons/Surface_BlendCurve.svg