Remove superflous whitespace + trailing newlines

This commit is contained in:
luzpaz
2025-01-29 07:18:13 -05:00
committed by Chris Hennes
parent 9d53b7190a
commit 2acc5ffbea
3 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
IF ( CMAKE_PKGCONFIG_EXECUTABLE ) IF ( CMAKE_PKGCONFIG_EXECUTABLE )
MESSAGE( STATUS "Detecting KDL" ) MESSAGE( STATUS "Detecting KDL" )
SET(ENV{PKG_CONFIG_PATH} "${KDL_INSTALL}/lib/pkgconfig/") SET(ENV{PKG_CONFIG_PATH} "${KDL_INSTALL}/lib/pkgconfig/")
MESSAGE( "Looking for KDL in: ${KDL_INSTALL}") 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 ) PKGCONFIG( "orocos-kdl >= 1.4.0" KDL_FOUND KDL_INCLUDE_DIRS KDL_DEFINES KDL_LINK_DIRS KDL_LIBS )

View File

@@ -482,7 +482,7 @@ class SH3DImporter:
if floor.id not in self.spaces: if floor.id not in self.spaces:
self.spaces[floor.id] = [] self.spaces[floor.id] = []
self.spaces[floor.id].append(space) self.spaces[floor.id].append(space)
def get_spaces(self, floor): def get_spaces(self, floor):
return self.spaces.get(floor.id, []) return self.spaces.get(floor.id, [])
@@ -1002,7 +1002,7 @@ class LevelHandler(BaseHandler):
if not wire.isClosed(): if not wire.isClosed():
# Sometimes the wire is not closed because the edges are # Sometimes the wire is not closed because the edges are
# not sorted and do not form a "chain". Therefore, sort them, # 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 # Vertices in order to avoid not closing because the points
# are not close enough # are not close enough
wire = Part.Wire(Part.__sortEdges__(self._round(sv.Shape.Edges))) wire = Part.Wire(Part.__sortEdges__(self._round(sv.Shape.Edges)))
@@ -1083,7 +1083,7 @@ class RoomHandler(BaseHandler):
reference_face.recompute() reference_face.recompute()
floor.getObject(floor.ReferenceFacesGroupName).addObject(reference_face) 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... # Base object can not be a face but must have a height...
footprint = App.ActiveDocument.addObject("Part::Feature", "Footprint") footprint = App.ActiveDocument.addObject("Part::Feature", "Footprint")
footprint.Shape = reference_face.Shape.extrude(Z_NORM) footprint.Shape = reference_face.Shape.extrude(Z_NORM)
@@ -1448,7 +1448,7 @@ class WallHandler(BaseHandler):
# The Length property is used in the Wall to calculate volume, etc... # The Length property is used in the Wall to calculate volume, etc...
# Since make Circle does not calculate this Length I calculate it here... # 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") 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... # 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", "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") self.importer.set_property(spine, "App::PropertyVector", "End", "The end point of the Arc", end, group="Draft")
@@ -1766,7 +1766,7 @@ class WallHandler(BaseHandler):
def _get_faces(self, wall): def _get_faces(self, wall):
"""Returns the name of the left and right face for `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 the Facebinders and baseboards. Note, that this must be executed
once the wall has been completely constructed. If a window or once the wall has been completely constructed. If a window or
door is added afterward, this will have an impact on what is door is added afterward, this will have an impact on what is

View File

@@ -34,7 +34,7 @@ class Overlappingfaces():
def __init__(self,facelist): def __init__(self,facelist):
self.sortedfaces = sorted(facelist,key=(lambda shape: shape.Area),reverse=True) self.sortedfaces = sorted(facelist,key=(lambda shape: shape.Area),reverse=True)
self.builddepdict() self.builddepdict()
@staticmethod @staticmethod
def dofacesoverlapboundbox(bigface,smallface): def dofacesoverlapboundbox(bigface,smallface):
return bigface.BoundBox.isIntersection(smallface.BoundBox) return bigface.BoundBox.isIntersection(smallface.BoundBox)
@@ -196,7 +196,7 @@ class Overlappingfaces():
toolface=fusefaces([faces[tfi] for tfi in directchildren]) toolface=fusefaces([faces[tfi] for tfi in directchildren])
faces[fi]=faces[fi].cut(toolface) faces[fi]=faces[fi].cut(toolface)
removefaces(directchildren) removefaces(directchildren)
faces =[face for index,face in enumerate(faces) if index not in finishedwith] faces =[face for index,face in enumerate(faces) if index not in finishedwith]
return fusefaces(faces) return fusefaces(faces)