Changeset 8393:a5337d606da8 in orange


Ignore:
Timestamp:
07/16/11 13:37:24 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
402a32d7f4aad805699ac42cd8c8f4cd87f5c0ef
Message:

owplot3d: fixed initial jump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/owplot3d.py

    r8392 r8393  
    232232        self.minx = self.miny = self.minz = 0 
    233233        self.maxx = self.maxy = self.maxz = 0 
    234         self.camera = numpy.array([0.6, 0.8, 0]) 
    235234        self.center = numpy.array([0,   0,   0]) 
    236235        self.view_cube_edge = 10 
    237236        self.camera_distance = 30 
    238237 
    239         self.yaw = self.pitch = 0. 
     238        self.yaw = self.pitch = -pi / 4. 
    240239        self.rotation_factor = 100. 
     240        self.camera = [ 
     241            sin(self.pitch)*cos(self.yaw), 
     242            cos(self.pitch), 
     243            sin(self.pitch)*sin(self.yaw)] 
     244 
    241245        self.zoom_factor = 500. 
    242246        self.move_factor = 100. 
    243         self.mouse_pos = [100, 100] # TODO: get real mouse position, calculate camera, fix the initial jump 
    244247 
    245248        self.labels_font = QFont('Helvetice', 8) 
Note: See TracChangeset for help on using the changeset viewer.