Skip to content

Commit

Permalink
Part: fix header uniformity + trailing whitespace
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
luzpaz authored and wwmayer committed Dec 10, 2020
1 parent ed06364 commit 7c43b05
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 30 deletions.
24 changes: 18 additions & 6 deletions src/Mod/Part/App/AppPart.cpp
@@ -1,11 +1,23 @@
/***************************************************************************
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Library General Public License as *
* published by the Free Software Foundation; either version 2 of the *
* License, or (at your option) any later version. *
* for detail see the LICENCE text file. *
* Jürgen Riegel 2002 *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/

Expand Down
22 changes: 22 additions & 0 deletions src/Mod/Part/App/AttachEnginePyImp.cpp
@@ -1,3 +1,25 @@
/***************************************************************************
* Copyright (c) 2016 Viktor Titov (DeepSOIC) <vv.titov@gmail.com> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/

#include "PreCompiled.h"
#ifndef _PreComp_
# include <Standard_Failure.hxx>
Expand Down
10 changes: 5 additions & 5 deletions src/Mod/Part/App/FT2FC.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (c) 2013 wandererfan <wandererfan (at) gmail.com> *
* Copyright (c) 2013 WandererFan <wandererfan (at) gmail.com> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
Expand Down Expand Up @@ -333,15 +333,15 @@ PyObject* getGlyphContours(FT_Face FTFont, UNICHAR currchar, double PenPos, doub
}

//a ttf outer contour is clockwise with material on the right.
//an occ outer contour has material on the left, so it must be reversed?
//an occ outer contour has material on the left, so it must be reversed?


FT_Orientation ftOrient = FT_Outline_Get_Orientation(&FTFont->glyph->outline);
bool isTTF = false;
if (ftOrient == FT_ORIENTATION_TRUETYPE) {
isTTF = true;
}

PyObject* ret = PyList_New(0);

gp_Vec pointer = gp_Vec(PenPos * Scale + charNum*tracking,0.0,0.0);
Expand All @@ -352,9 +352,9 @@ PyObject* getGlyphContours(FT_Face FTFont, UNICHAR currchar, double PenPos, doub
bool bCopy = true; // no effect?


int wCount = 0;
int wCount = 0;
for(std::vector<TopoDS_Wire>::iterator iWire=ctx.Wires.begin();iWire != ctx.Wires.end(); ++iWire, wCount++) {
if ((ctx.wDir[wCount] == CLOCKWISE) && isTTF) { //ttf outer wire. fill inside / right
if ((ctx.wDir[wCount] == CLOCKWISE) && isTTF) { //ttf outer wire. fill inside / right
(*iWire).Orientation(TopAbs_REVERSED);
} else if ((ctx.wDir[wCount] == CLOCKWISE) && !isTTF) { //ps inner wire. fill outside / right
(*iWire).Orientation(TopAbs_REVERSED);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FT2FC.h
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (c) 2013 wandererfan <wandererfan (at) gmail.com> *
* Copyright (c) 2013 WandererFan <wandererfan (at) gmail.com> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeatureGeometrySet.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartBox.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepPrimAPI_MakeBox.hxx>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartCurveNet.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartCut.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepAlgoAPI_Cut.hxx>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartImportBrep.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartImportIges.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartImportStep.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
# include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/FeaturePartSpline.cpp
Expand Up @@ -20,7 +20,7 @@
* *
***************************************************************************/


#include "PreCompiled.h"
#ifndef _PreComp_
#endif
Expand Down
23 changes: 22 additions & 1 deletion src/Mod/Part/App/Part2DObjectPyImp.cpp
@@ -1,3 +1,24 @@
/***************************************************************************
* Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/

#include "PreCompiled.h"

Expand Down Expand Up @@ -25,7 +46,7 @@ PyObject *Part2DObjectPy::getCustomAttributes(const char* /*attr*/) const

int Part2DObjectPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
{
return 0;
return 0;
}


4 changes: 1 addition & 3 deletions src/Mod/Part/App/TopologyPy.cpp
@@ -1,6 +1,5 @@

/***************************************************************************
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
Expand All @@ -20,7 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA *
* *
* Juergen Riegel 2002 *
***************************************************************************/


Expand Down
7 changes: 3 additions & 4 deletions src/Mod/Part/App/TopologyPy.h
@@ -1,5 +1,5 @@
/***************************************************************************
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
Expand All @@ -10,16 +10,15 @@
* for detail see the LICENCE text file. *
* *
* FreeCAD is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with FreeCAD; if not, write to the Free Software *
* License along with FreeCAD; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA *
* *
* Juergen Riegel 2002 *
***************************************************************************/


Expand Down
7 changes: 5 additions & 2 deletions src/Mod/Part/part.dox
@@ -1,5 +1,8 @@
/** \defgroup PART Part
* \ingroup CWORKBENCHES
* \ingroup CWORKBENCHES
* \brief Main anchor point with OpenCasCade functionality, base geometry tools
*/

See \ref src/Mod/Draft/draft.dox as an example of how to populate this page

*/

0 comments on commit 7c43b05

Please sign in to comment.