no style but entrance and roof added
This commit is contained in:
@@ -7,7 +7,11 @@ from buildings.geometry.Vertice import Vertice
|
||||
from buildings.elements.Window import Window
|
||||
|
||||
class Balcony:
|
||||
def __init__(self, rdata, max_width : int, windows : Window, collumn_style : COLLUMN_STYLE):
|
||||
def __init__(self,
|
||||
rdata,
|
||||
max_width : int,
|
||||
windows : Window,
|
||||
collumn_style : COLLUMN_STYLE):
|
||||
self.rdata = rdata
|
||||
self.windows = windows
|
||||
self.max_width = max_width
|
||||
|
||||
@@ -5,7 +5,7 @@ class FacadeDetails:
|
||||
self.zones = zones
|
||||
self.sizes = self.get_sizes()
|
||||
|
||||
def get_sizes(self) -> list[tuple[int]]:
|
||||
def get_sizes(self) -> list[tuple[int,int,int]]:
|
||||
# foreach different zone sizes in self.zones, we will gen different details
|
||||
sizes = []
|
||||
center_for_symetry = len(self.zones) // 2
|
||||
|
||||
@@ -8,7 +8,12 @@ from buildings.geometry.Vertice import Vertice
|
||||
from buildings.elements.WindowElt.Glass import Glass
|
||||
|
||||
class Window:
|
||||
def __init__(self, rdata, max_width : int, max_height : int, facade_len : int, facade_height : int):
|
||||
def __init__(self,
|
||||
rdata,
|
||||
max_width : int,
|
||||
max_height : int,
|
||||
facade_len : int,
|
||||
facade_height : int):
|
||||
self.rdata = rdata
|
||||
self.width, self.height = self.get_size(max_width, max_height)
|
||||
self.is_grounded = self.is_grounded()
|
||||
@@ -121,7 +126,7 @@ class Window:
|
||||
rd.randint(self.rdata["size"]["min_height"],max_height)
|
||||
)
|
||||
|
||||
def get_padding(self, facade_len : int, facade_height : int) -> tuple[int]:
|
||||
def get_padding(self, facade_len : int, facade_height : int) -> tuple[int,int]:
|
||||
padding,ypadding = 0,0
|
||||
if not self.is_grounded: ypadding = (facade_height - self.height)//2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user