Ejemplo n.º 1
0
 def setUp(self):
     k = KineticTriangle()
     # base
     o = KineticVertex()
     o.origin = (0., 0.)
     o.velocity = (0., 1.)
     #
     d = KineticVertex()
     d.origin = (4., 0.)
     d.velocity = (0, 1.)
     # vertex missing the base
     a = KineticVertex()
     a.origin = (4., 5.)
     a.velocity = (0, -2.)
     k.vertices = [o, d, a]
     k.neighbours = [True, True, None]
     self.tri = k
Ejemplo n.º 2
0
 def setUp(self):
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (-2.1889010593167346, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 0.0)
     v.velocity = (2.1889010593167346, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (1.5, 1.7320508075688772)
     v.velocity = (0.0, 1.5275252316519463)
     V.append(v)
     k.vertices = V
     k.neighbours = [None, None, True]
     self.tri = k
Ejemplo n.º 3
0
 def setUp(self):
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (1., 0.)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 10.0)
     v.velocity = (1.0, 0.)
     V.append(v)
     v = KineticVertex()
     v.origin = (-1.0, 5.0)
     v.velocity = (5., 0.)
     V.append(v)
     k.vertices = V
     k.neighbours = [True, True, True]
     self.tri = k
Ejemplo n.º 4
0
 def setUp(self):
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (-1.802775637731995, 0.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, 8.0)
     v.velocity = (1.0, -1.8685170918213299)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, -8.0)
     v.velocity = (1.0, 1.8685170918213299)
     V.append(v)
     k.vertices = V
     k.neighbours = [True, True, True]
     self.tri = k
Ejemplo n.º 5
0
    def setUp(self):
        k = KineticTriangle()

        o = KineticVertex()
        o.origin = (0., 0.)
        o.velocity = (0., 1.)

        d = KineticVertex()
        d.origin = (10., 0.)
        d.velocity = (0, 1.)

        # vertex supposed to crash into base (the apex)
        a = KineticVertex()
        a.origin = (5, 5)
        a.velocity = (0., -1.)

        k.vertices = [o, d, a]
        k.neighbours = [True, True, None]
        self.tri = k
Ejemplo n.º 6
0
 def setUp(self):
     """Initialize 3 infinite triangles and 1 finite 3-triangle.
     """
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0., 0)
     v.velocity = (1., 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (10., 0)
     v.velocity = (-1., 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.,15.)
     v.velocity = (0, -1.)
     V.append(v)
     k.vertices = V
     # mock the neighbours, 
     # to determine correctly the triangle type
     k.neighbours = [True, True, True]
     self.tri = k
Ejemplo n.º 7
0
### 140003451728400
k = KineticTriangle()
V = []
v = KineticVertex()
v.origin = (6.0, 0.0)
v.velocity = (0.8611874208078342, -0.9999999999999998)
V.append(v)
v = KineticVertex()
v.origin = (4.0, 0.0)
v.velocity = (-0.9049875621120889, -0.9999999999999999)
V.append(v)
v = KineticVertex()
v.origin = (5.061111111111111, 2.5555555555555554)
v.velocity = (0, 0)
V.append(v)
k.vertices = V
triangles[140003451728400] = k
### 140003451728464
k = KineticTriangle()
V = []
v = KineticVertex()
v.origin = (6.0, 0.0)
v.velocity = (-0.8611874208078343, 1.0)
V.append(v)
v = KineticVertex()
v.origin = (3.8, 2.0)
v.velocity = (0.5885834574042905, 4.164041047077979)
V.append(v)
v = KineticVertex()
v.origin = (4.0, 0.0)
v.velocity = (0.9049875621120889, 0.9999999999999999)
Ejemplo n.º 8
0
 def setUp(self):
     self.triangles = {}
     triangles = self.triangles
     ### 139643876356304
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (4.0, 0.0)
     v.velocity = (-0.9049875621120889, -0.9999999999999999)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 0.0)
     v.velocity = (0.6770329614269006, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     k.vertices = V
     triangles[139643876356304] = k
     ### 139643876356368
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.0, 0.0)
     v.velocity = (0.6770329614269006, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 0.0)
     v.velocity = (-0.9049875621120889, -0.9999999999999999)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (-0.5885834574042905, -4.164041047077979)
     V.append(v)
     k.vertices = V
     triangles[139643876356368] = k
     ### 139643876356432
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (1.0, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 0.0)
     v.velocity = (-0.6770329614269007, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356432] = k
     ### 139643876356496
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (1.0, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356496] = k
     ### 139643876356560
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     k.vertices = V
     triangles[139643876356560] = k
     ### 139643876356624
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.0, 5.0)
     v.velocity = (-0.7807764064044151, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     k.vertices = V
     triangles[139643876356624] = k
     ### 139643876356688
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 5.0)
     v.velocity = (-0.7807764064044151, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 5.0)
     v.velocity = (0.7807764064044151, -1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356688] = k
     ### 139643876356752
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (0.0, 4.1231056256176615)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356752] = k
     ### 139643876356816
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0.0, 5.0)
     v.velocity = (1.0, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 5.0)
     v.velocity = (-0.7807764064044151, -1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356816] = k
     ### 139643876356880
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (1.0, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 5.0)
     v.velocity = (1.0, -1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876356880] = k
     ### 139643876356944
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (0.0, 5.0)
     v.velocity = (-0.9999999999999998, 0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (-0.9999999999999998, -0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876356944] = k
     ### 139643876357072
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 5.0)
     v.velocity = (-0.9999999999999998, 0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357072] = k
     ### 139643876357136
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357136] = k
     ### 139643876357200
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357200] = k
     ### 139643876357264
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357264] = k
     ### 139643876357328
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 5.0)
     v.velocity = (0.9999999999999998, 0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357328] = k
     ### 139643876357456
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (0.9999999999999998, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 5.0)
     v.velocity = (0.9999999999999998, 0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876357456] = k
     ### 139643876357520
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (7.0, 0.0)
     v.velocity = (-0.7094810050208543, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (0.9999999999999998, -0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876357520] = k
     ### 139643876357584
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.0, 0.0)
     v.velocity = (0.8611874208078342, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 0.0)
     v.velocity = (-0.7094810050208543, -0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876357584] = k
     ### 139643876357648
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (4.0, 0.0)
     v.velocity = (-0.9049875621120889, -0.9999999999999999)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 0.0)
     v.velocity = (0.8611874208078342, -0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876357648] = k
     ### 139643876357712
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.0, 0.0)
     v.velocity = (-0.8611874208078343, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     v = KineticVertex()
     v.origin = (4.0, 0.0)
     v.velocity = (0.9049875621120889, 0.9999999999999999)
     V.append(v)
     k.vertices = V
     triangles[139643876357712] = k
     ### 139643876357776
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.3, 2.0)
     v.velocity = (-0.3899868930592274, 4.141336851657371)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 0.0)
     v.velocity = (-0.8611874208078343, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357776] = k
     ### 139643876357840
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.3, 2.0)
     v.velocity = (-0.3899868930592274, 4.141336851657371)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (3.8, 2.0)
     v.velocity = (0.5885834574042905, 4.164041047077979)
     V.append(v)
     k.vertices = V
     triangles[139643876357840] = k
     ### 139643876357904
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (-1.0, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.3, 2.0)
     v.velocity = (-0.3899868930592274, 4.141336851657371)
     V.append(v)
     k.vertices = V
     triangles[139643876357904] = k
     ### 139643876357968
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 5.0)
     v.velocity = (-1.0, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (-1.0, 1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876357968] = k
     ### 139643876358032
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (-0.0, -4.123105625617657)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 5.0)
     v.velocity = (-1.0, -1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 5.0)
     v.velocity = (0.7807764064044151, -1.0)
     V.append(v)
     k.vertices = V
     triangles[139643876358032] = k
     ### 139643876358096
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (7.0, 5.0)
     v.velocity = (-0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 5.0)
     v.velocity = (0.7807764064044151, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.5, 3.0)
     v.velocity = (0.0, 4.1231056256176615)
     V.append(v)
     k.vertices = V
     triangles[139643876358096] = k
     ### 139643876358160
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (-1.0, 1.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.3, 2.0)
     v.velocity = (-0.3899868930592274, 4.141336851657371)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 0.0)
     v.velocity = (0.7094810050208544, 0.9999999999999999)
     V.append(v)
     k.vertices = V
     triangles[139643876358160] = k
     ### 139643876358224
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (6.3, 2.0)
     v.velocity = (0.38998689305922796, -4.141336851657377)
     V.append(v)
     v = KineticVertex()
     v.origin = (6.0, 0.0)
     v.velocity = (0.8611874208078342, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (7.0, 0.0)
     v.velocity = (-0.7094810050208543, -0.9999999999999998)
     V.append(v)
     k.vertices = V
     triangles[139643876358224] = k
     ### 139643876358288
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (3.0, 0.0)
     v.velocity = (0.6770329614269006, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (0.0, 0.0)
     v.velocity = (-0.9999999999999998, -0.9999999999999998)
     V.append(v)
     v = KineticVertex()
     v.origin = (5.00625, 2.5)
     v.velocity = (0, 0)
     V.append(v)
     k.vertices = V
     triangles[139643876358288] = k
     ### neighbour relationships
     n = [
         triangles[139643876358288], triangles[139643876357648],
         triangles[139643876356368]
     ]
     triangles[139643876356304].neighbours = n
     n = [None, None, triangles[139643876356304]]
     triangles[139643876356368].neighbours = n
     n = [None, None, triangles[139643876356496]]
     triangles[139643876356432].neighbours = n
     n = [
         triangles[139643876356880], triangles[139643876356432],
         triangles[139643876356560]
     ]
     triangles[139643876356496].neighbours = n
     n = [
         triangles[139643876357840], triangles[139643876356624],
         triangles[139643876356496]
     ]
     triangles[139643876356560].neighbours = n
     n = [triangles[139643876356560], None, triangles[139643876356688]]
     triangles[139643876356624].neighbours = n
     n = [None, None, triangles[139643876356624]]
     triangles[139643876356688].neighbours = n
     n = [triangles[139643876357136], None, None]
     triangles[139643876356752].neighbours = n
     n = [None, None, triangles[139643876356880]]
     triangles[139643876356816].neighbours = n
     n = [triangles[139643876356816], None, triangles[139643876356496]]
     triangles[139643876356880].neighbours = n
     n = [triangles[139643876358288], None, triangles[139643876357072]]
     triangles[139643876356944].neighbours = n
     n = [None, triangles[139643876357136], triangles[139643876356944]]
     triangles[139643876357072].neighbours = n
     n = [
         triangles[139643876356752], triangles[139643876357200],
         triangles[139643876357072]
     ]
     triangles[139643876357136].neighbours = n
     n = [None, triangles[139643876357264], triangles[139643876357136]]
     triangles[139643876357200].neighbours = n
     n = [
         triangles[139643876358096], triangles[139643876357328],
         triangles[139643876357200]
     ]
     triangles[139643876357264].neighbours = n
     n = [triangles[139643876357264], None, triangles[139643876357456]]
     triangles[139643876357328].neighbours = n
     n = [triangles[139643876357328], None, triangles[139643876357520]]
     triangles[139643876357456].neighbours = n
     n = [triangles[139643876357456], None, triangles[139643876357584]]
     triangles[139643876357520].neighbours = n
     n = [
         triangles[139643876357520], triangles[139643876358224],
         triangles[139643876357648]
     ]
     triangles[139643876357584].neighbours = n
     n = [triangles[139643876357584], None, triangles[139643876356304]]
     triangles[139643876357648].neighbours = n
     n = [None, None, triangles[139643876357776]]
     triangles[139643876357712].neighbours = n
     n = [triangles[139643876357712], None, triangles[139643876357840]]
     triangles[139643876357776].neighbours = n
     n = [
         triangles[139643876356560], triangles[139643876357776],
         triangles[139643876357904]
     ]
     triangles[139643876357840].neighbours = n
     n = [
         triangles[139643876357840], triangles[139643876358160],
         triangles[139643876357968]
     ]
     triangles[139643876357904].neighbours = n
     n = [triangles[139643876357904], None, triangles[139643876358032]]
     triangles[139643876357968].neighbours = n
     n = [None, None, triangles[139643876357968]]
     triangles[139643876358032].neighbours = n
     n = [None, None, triangles[139643876357264]]
     triangles[139643876358096].neighbours = n
     n = [None, None, triangles[139643876357904]]
     triangles[139643876358160].neighbours = n
     n = [triangles[139643876357584], None, None]
     triangles[139643876358224].neighbours = n
     n = [triangles[139643876356944], triangles[139643876356304], None]
     triangles[139643876358288].neighbours = n
Ejemplo n.º 9
0
 def setUp(self):
     """Initialize 3 infinite triangles and 1 finite 3-triangle.
     """
     self.triangles = {}
     triangles = self.triangles
     ### 139742234433616
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (2.0, 0.0)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, -8.0)
     v.velocity = (-1.0, -1.8685170918213299)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, 8.0)
     v.velocity = (-1.0, 1.8685170918213299)
     V.append(v)
     k.vertices = V
     triangles[139742234433616] = k
     ### 139742234433872
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (2.0, 0.0)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, 8.0)
     v.velocity = (-1.0, 1.8685170918213299)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (1.8027756377319946, -0.0)
     V.append(v)
     k.vertices = V
     triangles[139742234433872] = k
     ### 139742234434000
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (-2.0, -8.0)
     v.velocity = (-1.0, -1.8685170918213299)
     V.append(v)
     v = KineticVertex()
     v.origin = (2.0, 0.0)
     v.velocity = (0, 0)
     V.append(v)
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (1.8027756377319946, -0.0)
     V.append(v)
     k.vertices = V
     triangles[139742234434000] = k
     ### 139742234434064
     k = KineticTriangle()
     V = []
     v = KineticVertex()
     v.origin = (10.0, 0.0)
     v.velocity = (-1.802775637731995, 0.0)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, 8.0)
     v.velocity = (1.0, -1.8685170918213299)
     V.append(v)
     v = KineticVertex()
     v.origin = (-2.0, -8.0)
     v.velocity = (1.0, 1.8685170918213299)
     V.append(v)
     k.vertices = V
     triangles[139742234434064] = k
     ### neighbours
     n = None, triangles[139742234433872], triangles[139742234434000]
     triangles[139742234433616].neighbours = list(n)
     n = None, triangles[139742234434000], triangles[139742234433616]
     triangles[139742234433872].neighbours = list(n)
     n = triangles[139742234433872], None, triangles[139742234433616]
     triangles[139742234434000].neighbours = list(n)
     n = None, None, None
     triangles[139742234434064].neighbours = list(n)
Ejemplo n.º 10
0
    def setUp(self):
        self.triangles = {}
        triangles = self.triangles
        ### 139708485588816
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (0.0, 1.0)
        v.velocity = (0, 0)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, -1.0)
        v.velocity = (-0.0, -1.414213562373095)
        V.append(v)
        v = KineticVertex()
        v.origin = (-1.0, 0.0)
        v.velocity = (-1.0855388459943132, -0.3286747163787818)
        V.append(v)
        k.vertices = V
        triangles[139708485588816] = k
        ### 139708485588880
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (0.0, 5.0)
        v.velocity = (-0.0, 5.099019513592779)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, 1.0)
        v.velocity = (0, 0)
        V.append(v)
        v = KineticVertex()
        v.origin = (-1.0, 0.0)
        v.velocity = (-1.0855388459943132, -0.3286747163787818)
        V.append(v)
        k.vertices = V
        triangles[139708485588880] = k
        ### 139708485589072
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (0.0, 1.0)
        v.velocity = (0, 0)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, 5.0)
        v.velocity = (-0.0, 5.099019513592779)
        V.append(v)
        v = KineticVertex()
        v.origin = (1.0, 0.0)
        v.velocity = (1.0855388459943134, -0.32867471637878193)
        V.append(v)
        k.vertices = V
        triangles[139708485589072] = k
        ### 139708485589136
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (0.0, -1.0)
        v.velocity = (-0.0, -1.414213562373095)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, 1.0)
        v.velocity = (0, 0)
        V.append(v)
        v = KineticVertex()
        v.origin = (1.0, 0.0)
        v.velocity = (1.0855388459943134, -0.32867471637878193)
        V.append(v)
        k.vertices = V
        triangles[139708485589136] = k
        ### 139708485589200 <<< this is the bottom internal
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (1.0, 0.0)
        v.velocity = (-1.0855388459943136, 0.328674716378782)
        V.append(v)
        v = KineticVertex()
        v.origin = (-1.0, 0.0)
        v.velocity = (1.0855388459943134, 0.32867471637878193)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, -1.0)
        v.velocity = (0.0, 1.4142135623730951)
        V.append(v)
        k.vertices = V
        triangles[139708485589200] = k
        ### 139708485589264 <<< this is the top internal
        k = KineticTriangle()
        V = []
        v = KineticVertex()
        v.origin = (-1.0, 0.0)
        v.velocity = (1.0855388459943134, 0.32867471637878193)
        V.append(v)
        v = KineticVertex()
        v.origin = (1.0, 0.0)
        v.velocity = (-1.0855388459943136, 0.328674716378782)
        V.append(v)
        v = KineticVertex()
        v.origin = (0.0, 5.0)
        v.velocity = (0.0, -5.0990195135927845)
        V.append(v)
        k.vertices = V
        triangles[139708485589264] = k

        ### neighbour relationships
        n = [None, triangles[139708485588880], triangles[139708485589136]]
        triangles[139708485588816].neighbours = n
        n = [triangles[139708485588816], None, triangles[139708485589072]]
        triangles[139708485588880].neighbours = n
        n = [None, triangles[139708485589136], triangles[139708485588880]]
        triangles[139708485589072].neighbours = n
        n = [triangles[139708485589072], None, triangles[139708485588816]]
        triangles[139708485589136].neighbours = n
        n = [None, None, triangles[139708485589264]]
        triangles[139708485589200].neighbours = n
        n = [None, None, triangles[139708485589200]]
        triangles[139708485589264].neighbours = n