@@ -24,6 +24,7 @@ class Rect(BaseComponent):
2424 angle : float
2525 length : float
2626 line : GeomLine2D
27+ partition : bool
2728 thickness : float
2829 wall : int
2930
@@ -39,7 +40,8 @@ def __init__(
3940 y : List [float ],
4041 line_m : NumberType ,
4142 line_n : NumberType ,
42- line_theta : NumberType
43+ line_theta : NumberType ,
44+ partition : bool
4345 ) -> None :
4446 """
4547 Constructor.
@@ -55,6 +57,7 @@ def __init__(
5557 :param line_m: Line slope
5658 :param line_n: Line intercept
5759 :param line_theta: Line angle
60+ :param partition: Rect is partition wall
5861 """
5962 BaseComponent .__init__ (self , rect_id , x , y , floor )
6063 assert isinstance (wall_id , int ) and wall_id > 0
@@ -63,12 +66,14 @@ def __init__(
6366 assert isinstance (line_m , NumberInstance )
6467 assert isinstance (line_n , NumberInstance )
6568 assert isinstance (line_theta , NumberInstance )
69+ assert isinstance (partition , bool )
6670 self .angle = float (angle )
6771 self .length = float (length )
6872 self .line = GeomLine2D ()
6973 self .line .m = float (line_m )
7074 self .line .n = float (line_n )
7175 self .line .theta = float (line_theta )
76+ self .partition = partition
7277 self .thickness = float (thickness )
7378 self .wall = wall_id
7479 # noinspection PyProtectedMember
0 commit comments