From 048c787e32cb4eb0f3b4143d9eefbdd92c5a17b0 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 24 Dec 2017 11:31:43 -0500 Subject: [PATCH] Sketcher: comment typos --- src/Mod/Sketcher/App/Sketch.cpp | 6 +++--- src/Mod/Sketcher/App/SketchObject.cpp | 4 ++-- src/Mod/Sketcher/App/SketchObject.h | 2 +- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index ce4d8c3e0f..e70e5a0def 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -737,7 +737,7 @@ int Sketch::addBSpline(const Part::GeomBSplineCurve &bspline, bool fixed) double * p1x = new double(startPnt.x); double * p1y = new double(startPnt.y); - // if periodic, startpoint and endpoint do not play a role in the solver, this removes unnecesarry DoF of determining where in the curve + // if periodic, startpoint and endpoint do not play a role in the solver, this removes unnecessary DoF of determining where in the curve // the start and the stop should be if(!periodic) { params.push_back(p1x); @@ -750,7 +750,7 @@ int Sketch::addBSpline(const Part::GeomBSplineCurve &bspline, bool fixed) double * p2x = new double(endPnt.x); double * p2y = new double(endPnt.y); - // if periodic, startpoint and endpoint do not play a role in the solver, this removes unnecesarry DoF of determining where in the curve + // if periodic, startpoint and endpoint do not play a role in the solver, this removes unnecessary DoF of determining where in the curve // the start and the stop should be if(!periodic) { params.push_back(p2x); @@ -3372,7 +3372,7 @@ TopoShape Sketch::toShape(void) const TopoDS_Wire new_wire = mkWire.Wire(); // current new wire - // try to connect each edge to the wire, the wire is complete if no more egdes are connectible + // try to connect each edge to the wire, the wire is complete if no more edges are connectible bool found = false; do { found = false; diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 066c448601..7e15171280 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -427,8 +427,8 @@ int SketchObject::movePoint(int GeoId, PointPos PosId, const Base::Vector3d& toP { // if we are moving a point at SketchObject level, we need to start from a solved sketch // if we have conflicts we can forget about moving. However, there is the possibility that we - // need to do programatically moves of new geometry that has not been solved yet and that because - // they were programmetically generated won't generate a conflict. This is the case of Fillet for + // need to do programmatically moves of new geometry that has not been solved yet and that because + // they were programmatically generated won't generate a conflict. This is the case of Fillet for // example. This is why exceptionally, it may be required to update the sketch geometry to that of // of SketchObject upon moving. => use updateGeometry parameter = true then diff --git a/src/Mod/Sketcher/App/SketchObject.h b/src/Mod/Sketcher/App/SketchObject.h index 2329a384b5..cb44ae4eb8 100644 --- a/src/Mod/Sketcher/App/SketchObject.h +++ b/src/Mod/Sketcher/App/SketchObject.h @@ -111,7 +111,7 @@ public: int delConstraintOnPoint(int VertexId, bool onlyCoincident=true); /// Deletes all constraints referencing an external geometry int delConstraintsToExternal(); - /// transfers all contraints of a point to a new point + /// transfers all constraints of a point to a new point int transferConstraints(int fromGeoId, PointPos fromPosId, int toGeoId, PointPos toPosId); /// Carbon copy another sketch geometry and constraints int carbonCopy(App::DocumentObject * pObj, bool construction = true); diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 323ee07404..1b5b9a8d46 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -5958,7 +5958,7 @@ void CmdSketcherConstrainSnellsLaw::activated(int iMsg) getIdsFromName(SubNames[1], Obj, GeoId2, PosId2); getIdsFromName(SubNames[2], Obj, GeoId3, PosId3); - //sink the egde to be the last item + //sink the edge to be the last item if (isEdge(GeoId1,PosId1) ) { std::swap(GeoId1,GeoId2); std::swap(PosId1,PosId2);