def __init__(self, ends, wid, rid): """ Init a wall object with the wall id, 2 end points and 2 owning rooms. When initialize, the opening type and location is always 0. """ LineString.__init__(self, ends) self.wid = wid self.rid = rid self.opening = [0, 0] self.parse()
def __init__(self, p1, p2): """ Define a line segment. """ points = [p1, p2] if p1[0] != p2[0]: points.sort(key=lambda x: x[0]) self.sort_dimension = 0 else: points.sort(key=lambda x: x[1]) self.sort_dimension = 1 self.circles = [] LineString.__init__(self, points)
def __init__(self, xy1, xy2, **kwargs): LineString.__init__(self, [xy1, xy2]) CadInterface.__init__(self, **kwargs) self._opts = kwargs
def __init__(self,xy): LineString.__init__(self,xy)
def __init__(self, xy): LineString.__init__(self, xy)
def __init__(self, pts, allow_rot=True, max_uses=None, **kwargs): LineString.__init__(self, pts) _TemplateBase.__init__(self, **kwargs) self.max_uses = max_uses self.allow_rot = allow_rot