def getPolygonsFromLevelSkeletons(self, levelSkeleton): polygons = [ wallSkeleton.poly.copy() for wallSkeleton in levelSkeleton.wallSkeletons ] colors = [ Color(220, 220, 220) for wallSkeleton in levelSkeleton.wallSkeletons ] polygons += [ voileSkeleton.poly.copy() for wallSkeleton in levelSkeleton.wallSkeletons for voileSkeleton in wallSkeleton.getAllVoiles() ] colors += [ Color(255, 0, 0) for wallSkeleton in levelSkeleton.wallSkeletons for voileSkeleton in wallSkeleton.getAllVoiles() ] if not len(polygons): return polys = (polygons, colors) center = Pnt.createPointFromShapely( levelSkeleton.slabSkeleton.poly.centroid()) return polys
def getCenterFromSlab(self): return Pnt.createPointFromShapely(self.slabSkeleton.poly.centroid())