80 |
# Create the coordinate system |
# Create the coordinate system |
81 |
|
|
82 |
vs = self.vs |
vs = self.vs |
83 |
transaffine(vs, str(key)+"_1", b[0], b[1], size, 0, 0, size) |
cs1 = vs.coords.affineCoordsys(0, 50, b[0], b[1], size, 0, 0, size) |
84 |
rotate(vs, str(key)+"_2", 360 * self.nadir.getAngleRad(b[0], b[1]) / |
vs.matcher.add(cs1, str(key)+"_buo_1") |
85 |
(2 * math.pi), 0, 0, 1) |
cs2 = vs.coords.rotateXY(cs1, 360 * self.nadir.getAngleRad(b[0], b[1]) / (2 * math.pi)) |
86 |
buoy.run() |
vs.matcher.add(cs2,str(key)+"_buo_2") |
87 |
poptrans(vs, str(key)+"_2") |
return cs2 |
|
poptrans(vs, str(key)+"_1") |
|
88 |
|
|
89 |
# ac = vs.coords.coordsys(0, str(key)+"_5", 10, anchorX, anchorY, 0, 0) |
# ac = vs.coords.coordsys(0, str(key)+"_5", 10, anchorX, anchorY, 0, 0) |
90 |
# bc = vs.coords.coordsys(0, str(key)+"_6", 10, b[0], b[1], 0, 0) |
# bc = vs.coords.coordsys(0, str(key)+"_6", 10, b[0], b[1], 0, 0) |
97 |
vs.matcher.add(cs, str(key)+"_buo_1") |
vs.matcher.add(cs, str(key)+"_buo_1") |
98 |
|
|
99 |
cs2 = vs.coords.rotateXY(cs, 0) |
cs2 = vs.coords.rotateXY(cs, 0) |
100 |
vs.matcher.add(cs2, str(key)+"_buoj2") |
vs.matcher.add(cs2, str(key)+"_buo_2") |
101 |
return cs2 |
return cs2 |
102 |
|
|
103 |
|
|