Sketcher: convert indentations to spaces

This commit is contained in:
luzpaz
2023-01-23 14:04:42 +00:00
committed by Uwe
parent b05813fc3d
commit 593ab90400
7 changed files with 9 additions and 10 deletions

View File

@@ -6552,7 +6552,7 @@ std::unique_ptr<const GeometryFacade> SketchObject::getGeometryFacade(int GeoId)
static gp_Vec2d ProjVecOnPlane_UV( const gp_Vec& V, const gp_Pln& Pl)
{
return gp_Vec2d( V.Dot(Pl.Position().XDirection()),
V.Dot(Pl.Position().YDirection()));
V.Dot(Pl.Position().YDirection()));
}
// Auxiliary Method: returns vector projection in UVN space of plane

View File

@@ -1321,8 +1321,8 @@ PyObject* SketchObjectPy::addRectangularArray(PyObject *args)
std::vector<int> geoIdList;
Py::Sequence list(pcObj);
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
if (PyLong_Check((*it).ptr()))
geoIdList.push_back(PyLong_AsLong((*it).ptr()));
if (PyLong_Check((*it).ptr()))
geoIdList.push_back(PyLong_AsLong((*it).ptr()));
}
try {

View File

@@ -2255,10 +2255,9 @@ void ConstraintPointOnParabola::errorgrad(double *err, double *grad, double *par
proj = point_to_focus.scalarProd(xdir, &dproj);
if (err)
*err = pf - 2*focal - proj;
*err = pf - 2*focal - proj;
if (grad)
*grad = dpf - 2*dfocal - dproj;
*grad = dpf - 2*dfocal - dproj;
}
double ConstraintPointOnParabola::error()

View File

@@ -665,7 +665,7 @@ namespace GCS
public:
ConstraintPointOnParabola(Point &p, Parabola &e);
ConstraintPointOnParabola(Point &p, ArcOfParabola &a);
~ConstraintPointOnParabola() override;
~ConstraintPointOnParabola() override;
#ifdef _GCS_EXTRACT_SOLVER_SUBSYSTEM_
inline ConstraintPointOnParabola(){}
#endif

View File

@@ -47,7 +47,7 @@
</property>
</widget>
</item>
<item>
<item>
<widget class="QToolButton" name="filterButton">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">

View File

@@ -47,7 +47,7 @@
</property>
</widget>
</item>
<item>
<item>
<widget class="QToolButton" name="filterButton">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">

View File

@@ -35,7 +35,7 @@ def makeRegularPolygon(
sides,
centerPoint=App.Vector(0,0,0),
firstCornerPoint=App.Vector(-20.00,34.64,0),
construction=False):
construction=False):
if not sketch:
App.Console.PrintError("No sketch specified in 'makeRegularPolygon'")