Sketcher: convert indentations to spaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="filterButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="filterButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||
|
||||
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user