Skip to content

Commit

Permalink
Arch: Added licence blurbs with attributions to authors
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
luzpaz authored and wwmayer committed Nov 16, 2020
1 parent 67381e9 commit 1917ef7
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 4 deletions.
32 changes: 28 additions & 4 deletions src/Mod/Arch/ArchFence.py
@@ -1,3 +1,26 @@
#*****************************************************************************
#* Copyright (c) 2019 furti <daniel.furtlehner@gmx.net> *
#* *
#* 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
Expand Down Expand Up @@ -62,7 +85,7 @@ def setProperties(self, obj):
def __getstate__(self):
if hasattr(self, 'sectionFaceNumbers'):
return (self.sectionFaceNumbers)

return None

def __setstate__(self, state):
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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 = []

Expand Down
23 changes: 23 additions & 0 deletions src/Mod/Arch/ArchIFC.py
@@ -1,3 +1,26 @@
#***************************************************************************
#* Copyright (c) 2019 Dion Moult <dion@thinkmoult.com> *
#* Copyright (c) 2019 Yorik van Havre <yorik@uncreated.net> *
#* 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.
"""
Expand Down
23 changes: 23 additions & 0 deletions src/Mod/Arch/ArchIFCSchema.py
@@ -1,3 +1,26 @@
#***************************************************************************
#* Copyright (c) 2019 Dion Moult <dion@thinkmoult.com> *
#* Copyright (c) 2019 Yorik van Havre <yorik@uncreated.net> *
#* 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.
Expand Down

0 comments on commit 1917ef7

Please sign in to comment.