@@ -431,8 +431,8 @@ main(int argc, char *argv[])
431
431
//
432
432
// In essense, xpos and ypos are intended to simulate what a GUI toolkit
433
433
// would provide us from a mouse cursor position.
434
- int xpos = 50 ;
435
- int ypos = 80 ;
434
+ int xpos = 1372 ;
435
+ int ypos = 1383 ;
436
436
vect_t mousevec; /* float pt -1..+1 mouse pos vect */
437
437
/* map xpos and ypos to the -1 to +1 range*/
438
438
mousevec[X] = xpos * INV_BV;
@@ -447,7 +447,7 @@ main(int argc, char *argv[])
447
447
// set cmp vals to expected
448
448
VMOVE (cmp_tor->v , orig_tor->v );
449
449
VMOVE (cmp_tor->h , orig_tor->h );
450
- cmp_tor->r_a = 20.19531250000000000 ;
450
+ cmp_tor->r_a = 23.37646484375000000 ;
451
451
452
452
rt_solid_edit_process (s);
453
453
@@ -471,9 +471,12 @@ main(int argc, char *argv[])
471
471
s->e_inpara = 0 ;
472
472
s->es_scale = 0 ;
473
473
474
+ // XY transform cares about curr_e_axes_pos
475
+ VMOVE (s->curr_e_axes_pos , orig_tor->v );
476
+
474
477
// Prepare mousevec.
475
- xpos = 100 ;
476
- ypos = 200 ;
478
+ xpos = 1482 ;
479
+ ypos = 762 ;
477
480
/* map xpos and ypos to the -1 to +1 range*/
478
481
mousevec[X] = xpos * INV_BV;
479
482
mousevec[Y] = ypos * INV_BV;
@@ -484,7 +487,7 @@ main(int argc, char *argv[])
484
487
bu_exit (1 , " ERROR: RT_SOLID_EDIT_TRANS(xy) failed ft_edit_xy call: %s\n " , bu_vls_cstr (s->log_str ));
485
488
486
489
// set cmp vals to expected
487
- VSET (cmp_tor->v , 7.28225503464339674 , 4.81374219599902631 ,22.93261631551052560 );
490
+ VSET (cmp_tor->v , - 12.61323935991339340 , 24.90340037137704243 ,22.73653941175349047 );
488
491
VMOVE (cmp_tor->h , orig_tor->h );
489
492
cmp_tor->r_a = orig_tor->r_a ;
490
493
0 commit comments