コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
ファイル: line.py プロジェクト: Judithcodes/esc-antenna-cover
 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)
コード例 #4
0
ファイル: geom.py プロジェクト: psavine42/viper-server
 def __init__(self, xy1, xy2, **kwargs):
     LineString.__init__(self, [xy1, xy2])
     CadInterface.__init__(self, **kwargs)
     self._opts = kwargs
コード例 #5
0
ファイル: mygeometry.py プロジェクト: jadelson/suntanspy
 def __init__(self,xy):
     LineString.__init__(self,xy)
コード例 #6
0
ファイル: mygeometry.py プロジェクト: rustychris/soda
 def __init__(self, xy):
     LineString.__init__(self, xy)
コード例 #7
0
 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