diff --git a/src/Mod/Arch/ArchFence.py b/src/Mod/Arch/ArchFence.py index f6ed5d21314c..a358c5a6941c 100644 --- a/src/Mod/Arch/ArchFence.py +++ b/src/Mod/Arch/ArchFence.py @@ -1,3 +1,26 @@ +#***************************************************************************** +#* Copyright (c) 2019 furti * +#* * +#* This program is free software; you can redistribute it and/or modify * +#* it under the terms of the GNU Lesser General Public License (LGPL) * +#* 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. * +#* * +#* This program 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 program; if not, write to the Free Software * +#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +#* USA * +#* * +#***************************************************************************** + +# Fence functionality for the Arch Workbench + import math import FreeCAD @@ -62,7 +85,7 @@ def setProperties(self, obj): def __getstate__(self): if hasattr(self, 'sectionFaceNumbers'): return (self.sectionFaceNumbers) - + return None def __setstate__(self, state): @@ -102,8 +125,9 @@ def execute(self, obj): pathLength, sectionLength, postLength) obj.NumberOfPosts = obj.NumberOfSections + 1 - # We assume that the section was drawn in front view - # We have to rotate the shape down so that it is aligned correctly by the algorithm later on + # We assume that the section was drawn in front view. + # We have to rotate the shape down so that it is aligned + # correctly by the algorithm later on downRotation = FreeCAD.Rotation(FreeCAD.Vector(1, 0, 0), -90) postPlacements = self.calculatePostPlacements( @@ -162,7 +186,7 @@ def calculateSections(self, obj, postPlacements, postLength, sectionLength): shapes = [] # For the colorization algorithm we have to store the number of faces for each section - # It is possible that a section is clipped. Then the number of faces is not equals to the + # It is possible that a section is clipped. Then the number of faces is not equal to the # number of faces in the original section faceNumbers = [] diff --git a/src/Mod/Arch/ArchIFC.py b/src/Mod/Arch/ArchIFC.py index d750ff4a06f7..1ab03aa79fb4 100644 --- a/src/Mod/Arch/ArchIFC.py +++ b/src/Mod/Arch/ArchIFC.py @@ -1,3 +1,26 @@ +#*************************************************************************** +#* Copyright (c) 2019 Dion Moult * +#* Copyright (c) 2019 Yorik van Havre * +#* Copyright (c) 2020 FreeCAD Developers * +#* * +#* This program is free software; you can redistribute it and/or modify * +#* it under the terms of the GNU Lesser General Public License (LGPL) * +#* 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. * +#* * +#* This program 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 program; if not, write to the Free Software * +#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +#* USA * +#* * +#*************************************************************************** + """This modules sets up and manages the IFC-related properties, types and attributes of Arch/BIM objects. """ diff --git a/src/Mod/Arch/ArchIFCSchema.py b/src/Mod/Arch/ArchIFCSchema.py index 1f7b3aa127be..7a503151e574 100644 --- a/src/Mod/Arch/ArchIFCSchema.py +++ b/src/Mod/Arch/ArchIFCSchema.py @@ -1,3 +1,26 @@ +#*************************************************************************** +#* Copyright (c) 2019 Dion Moult * +#* Copyright (c) 2019 Yorik van Havre * +#* Copyright (c) 2019 FreeCAD Developers * +#* * +#* This program is free software; you can redistribute it and/or modify * +#* it under the terms of the GNU Lesser General Public License (LGPL) * +#* 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. * +#* * +#* This program 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 program; if not, write to the Free Software * +#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +#* USA * +#* * +#*************************************************************************** + """Provides the IFC schema data as dicts, by loading the JSON schema files. Provides the data as IfcContexts, IfcProducts and IfcTypes.