From bd1a1a30ce8fee86b21eddfe0fd88584cfd89e2e Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 29 Jan 2025 07:18:13 -0500 Subject: [PATCH] Remove superflous whitespace + trailing newlines --- cMake/FindKDL.cmake | 2 +- src/Mod/BIM/importers/importSH3DHelper.py | 10 +++++----- src/Mod/OpenSCAD/OpenSCAD2Dgeom.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cMake/FindKDL.cmake b/cMake/FindKDL.cmake index 0bc567329c8c..789d0ffab22e 100644 --- a/cMake/FindKDL.cmake +++ b/cMake/FindKDL.cmake @@ -9,7 +9,7 @@ IF ( CMAKE_PKGCONFIG_EXECUTABLE ) MESSAGE( STATUS "Detecting KDL" ) - + SET(ENV{PKG_CONFIG_PATH} "${KDL_INSTALL}/lib/pkgconfig/") MESSAGE( "Looking for KDL in: ${KDL_INSTALL}") PKGCONFIG( "orocos-kdl >= 1.4.0" KDL_FOUND KDL_INCLUDE_DIRS KDL_DEFINES KDL_LINK_DIRS KDL_LIBS ) diff --git a/src/Mod/BIM/importers/importSH3DHelper.py b/src/Mod/BIM/importers/importSH3DHelper.py index 3674e2e4b065..c32084c01bbb 100644 --- a/src/Mod/BIM/importers/importSH3DHelper.py +++ b/src/Mod/BIM/importers/importSH3DHelper.py @@ -482,7 +482,7 @@ def add_space(self, floor, space): if floor.id not in self.spaces: self.spaces[floor.id] = [] self.spaces[floor.id].append(space) - + def get_spaces(self, floor): return self.spaces.get(floor.id, []) @@ -1002,7 +1002,7 @@ def _get_object_to_fuse(self, floor, objects_to_project): if not wire.isClosed(): # Sometimes the wire is not closed because the edges are # not sorted and do not form a "chain". Therefore, sort them, - # recreate the wire while also rounding the precision of the + # recreate the wire while also rounding the precision of the # Vertices in order to avoid not closing because the points # are not close enough wire = Part.Wire(Part.__sortEdges__(self._round(sv.Shape.Edges))) @@ -1083,7 +1083,7 @@ def process(self, parent, i, elm): reference_face.recompute() floor.getObject(floor.ReferenceFacesGroupName).addObject(reference_face) - # NOTE: for room to properly display and calculate the area, the + # NOTE: for room to properly display and calculate the area, the # Base object can not be a face but must have a height... footprint = App.ActiveDocument.addObject("Part::Feature", "Footprint") footprint.Shape = reference_face.Shape.extrude(Z_NORM) @@ -1448,7 +1448,7 @@ def _create_curved_segment(self, wall_details, prev_wall_details, next_wall_deta # The Length property is used in the Wall to calculate volume, etc... # Since make Circle does not calculate this Length I calculate it here... self.importer.set_property(spine, "App::PropertyFloat", "Length", "The length of the Arc", length, group="Draft") - # The Start and End property are used in the Wall to determine Facebinders + # The Start and End property are used in the Wall to determine Facebinders # characteristics... self.importer.set_property(spine, "App::PropertyVector", "Start", "The start point of the Arc", start, group="Draft") self.importer.set_property(spine, "App::PropertyVector", "End", "The end point of the Arc", end, group="Draft") @@ -1766,7 +1766,7 @@ def _create_baseboard(self, floor, wall, side, face): def _get_faces(self, wall): """Returns the name of the left and right face for `wall` - The face names are suitable for selection later on when creating + The face names are suitable for selection later on when creating the Facebinders and baseboards. Note, that this must be executed once the wall has been completely constructed. If a window or door is added afterward, this will have an impact on what is diff --git a/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py b/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py index de7967e9d54b..39b22c5b45a8 100644 --- a/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py +++ b/src/Mod/OpenSCAD/OpenSCAD2Dgeom.py @@ -34,7 +34,7 @@ class Overlappingfaces(): def __init__(self,facelist): self.sortedfaces = sorted(facelist,key=(lambda shape: shape.Area),reverse=True) self.builddepdict() - + @staticmethod def dofacesoverlapboundbox(bigface,smallface): return bigface.BoundBox.isIntersection(smallface.BoundBox) @@ -196,7 +196,7 @@ def hasnoparent(faceindex): toolface=fusefaces([faces[tfi] for tfi in directchildren]) faces[fi]=faces[fi].cut(toolface) removefaces(directchildren) - + faces =[face for index,face in enumerate(faces) if index not in finishedwith] return fusefaces(faces)