Exemplo n.º 1
0
 def generate(self):
     return [
         entity.PolyLine(
             points=[entity.Point(0, 10), entity.Point(20, 10), entity.Point(20, -10), entity.Point(0, -10)],
             closed=True),
         entity.Circle(center=entity.Point(10, 0), radius=10)
     ]
Exemplo n.º 2
0
 def generate(self):
     return [
         entity.PolyLine(points=[
             entity.Point(0, 0),
             entity.Point(10, 10),
             entity.Point(10, -10),
             entity.Point(20, 0)
         ], closed=False)
     ]
Exemplo n.º 3
0
 def generate(self):
     return [
         entity.Line(entity.Point(0, 0), entity.Point(0, -12)),
         entity.PolyLine(points=[
             entity.Point(-6, -12),
             entity.Point(6, -12),
             entity.Point(0, -18)
         ],
                         closed=True)
     ]
Exemplo n.º 4
0
Arquivo: limit.py Projeto: kozbot/kecb
 def generate(self):
     return [
         LSW_NC(),
         entity.PolyLine(points=[
             entity.Point(*LSW_NC_LINE_INTERSECT),
             entity.Point(30, -20),
             entity.Point(40, -20),
             entity.Point(30, -10),
         ], closed=False)
     ]
Exemplo n.º 5
0
Arquivo: limit.py Projeto: kozbot/kecb
 def generate(self):
     return [
         LSW_NO(),
         entity.PolyLine(points=[
             entity.Point(*LSW_NO_LINE_INTERSECT),
             entity.Point(30, -10),
             entity.Point(35, -10),
             entity.Point(35, -15),
             entity.Point(25, -15),
             entity.Point(25, -20),
             entity.Point(30, -20),
             entity.Point(30, -25)
         ], closed=False)
     ]
Exemplo n.º 6
0
 def generate_multipole(self, poles=1):
     entities = self.generate_multipole_basic(poles=poles)
     entities.append(
         entity.PolyLine(points=[
             entity.Point(30, 20),
             entity.Point(
                 LSW_NO_LINE_INTERSECT[0], LSW_NO_LINE_INTERSECT[1] +
                 cfg.POLE_OFFSET * (poles - 0.5)),
             entity.Point(
                 LSW_NO_LINE_END[0],
                 LSW_NO_LINE_END[1] + cfg.POLE_OFFSET * (poles - 0.5)),
         ],
                         closed=False,
                         linetype='PHANTOM'))
     return entities