Skip to content

Commit

Permalink
Update room.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Dec 3, 2020
1 parent 28bf8ef commit 8985812
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions revitron/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,17 @@ def traceHeight(self, view3D, elementFilter = None, gridSize = 5, inset = 0.05):
"""
import revitron

points = []

if self.element.Location:
points = self.getPointGrid(gridSize, inset) + self.getBoundaryInsetPoints(inset)
gridPoints = self.getPointGrid(gridSize, inset)
boundaryPoints = self.getBoundaryInsetPoints(inset)
if gridPoints:
points = gridPoints
if boundaryPoints:
points = points + boundaryPoints
# Set z to the lower quarter.
z = self.getBboxCenter().Z / 2
else:
points = []

intersectionsTop = []
intersectionsBottom = []
Expand Down

0 comments on commit 8985812

Please sign in to comment.