@@ -38,17 +38,17 @@ SOFTWARE. =#
3838 textsize = Node (TEXT_SIZE)
3939 textsize2 = Node (AXIS_LABEL_SIZE)
4040 status = Node (" " )
41- p1 = Node (Vector {Point2f0 } (undef, 6000 )) # 5 min
42- p2 = Node (Vector {Point2f0 } (undef, 6000 )) # 5 min
41+ p1 = Node (Vector {Point2f } (undef, 6000 )) # 5 min
42+ p2 = Node (Vector {Point2f } (undef, 6000 )) # 5 min
4343 pos_x = Node (0.0f0 )
4444
45- points = Vector {Point3f0 } (undef, se (). segments+ 1 + 4 )
45+ points = Vector {Point3f } (undef, se (). segments+ 1 + 4 )
4646 quat = Node (Quaternionf0 (0 ,0 ,0 ,1 )) # orientation of the kite
47- kite_pos = Node (Point3f0 (1 ,0 ,0 )) # position of the kite
48- positions = Node ([Point3f0 (x,0 ,0 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # positions of the tether segments
49- part_positions = Node ([Point3f0 (x,0 ,0 ) for x in 1 : se (). segments+ 1 + 4 ]) # positions of the tether particles
50- markersizes = Node ([Point3f0 (1 ,1 ,1 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # includes the segment length
51- rotations = Node ([Point3f0 (1 ,0 ,0 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # unit vectors corresponding with
47+ kite_pos = Node (Point3f (1 ,0 ,0 )) # position of the kite
48+ positions = Node ([Point3f (x,0 ,0 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # positions of the tether segments
49+ part_positions = Node ([Point3f (x,0 ,0 ) for x in 1 : se (). segments+ 1 + 4 ]) # positions of the tether particles
50+ markersizes = Node ([Point3f (1 ,1 ,1 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # includes the segment length
51+ rotations = Node ([Point3f (1 ,0 ,0 ) for x in 1 : se (). segments+ KITE_SPRINGS]) # unit vectors corresponding with
5252 # the orientation of the segments
5353 energy = [0.0 ]
5454end
6767
6868function Viewer3D (show_kite= true )
6969 KiteUtils. set_data_path (datapath)
70- scene, layout = layoutscene (resolution = (840 , 900 ), backgroundcolor = RGBf0 (0.7 , 0.8 , 1 ))
70+ scene, layout = layoutscene (resolution = (840 , 900 ), backgroundcolor = RGBf (0.7 , 0.8 , 1 ))
7171 scene3D = LScene (scene, scenekw = (show_axis= false , limits = Rect (- 7 ,- 10.0 ,0 , 11 ,10 ,11 ), resolution = (800 , 800 )), raw= false )
7272 create_coordinate_system (scene3D)
7373 cam = cameracontrols (scene3D. scene)
@@ -80,11 +80,11 @@ function Viewer3D(show_kite=true)
8080
8181 textsize[] = TEXT_SIZE
8282 textsize2[] = AXIS_LABEL_SIZE
83- text! (scene3D, " z" , position = Point3f0 (0 , 0 , 14.6 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
84- text! (scene3D, " x" , position = Point3f0 (17 , 0 ,0 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
85- text! (scene3D, " y" , position = Point3f0 ( 0 , 14.5 , 0 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
83+ text! (scene3D, " z" , position = Point3f (0 , 0 , 14.6 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
84+ text! (scene3D, " x" , position = Point3f (17 , 0 ,0 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
85+ text! (scene3D, " y" , position = Point3f ( 0 , 14.5 , 0 ), textsize = textsize2, align = (:center , :center ), show_axis = false )
8686
87- text! (scene, status, position = Point2f0 ( 20 , 0 ), textsize = TEXT_SIZE, align = (:left , :bottom ), show_axis = false )
87+ text! (scene, status, position = Point2f ( 20 , 0 ), textsize = TEXT_SIZE, align = (:left , :bottom ), show_axis = false )
8888 status[]= " Stopped"
8989
9090 layout[1 , 1 ] = scene3D
0 commit comments