-
Notifications
You must be signed in to change notification settings - Fork 0
/
mom_map_to_rotated_csys.txt
47 lines (44 loc) · 1.27 KB
/
mom_map_to_rotated_csys.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
int mom_map_to_rotated_csys
(
void *client_data, /* This is the mom object */
void *interp, /* Pointer to the TCL interpreter */
int argc, /* Count of the numnber of arguments */
char **argv /* Array of arguments where the
argv[0] - The TCL extension */
)
{
int error;
MOM_input_point_p_t input_gotos ;
MOM_input_point_p_t rotd_gotos ;
MOM_input_point_p_t processed_gotos ;
UF_MOM_id_t mom_id = ( UF_MOM_id_t ) client_data ;
error = SET_input_point(mom_id, &input_gotos);
if ( error )
{
printf(" SET_input_point failed in mom_map_to_rotated_csys\n ");
}
else
{
error = mom_process_input_gotos(&input_gotos, &rotd_gotos);
if ( error )
{
printf(" mom_process_input_gotos failed in mom_map_to_rotated_csys\n ");
}
else
{
error = mom_transfer_gotos_rotd_mcsys(&rotd_gotos, &processed_gotos);
if ( error )
{
printf(" mom_transfer_gotos_rotd_mcsys failed in mom_map_to_rotated_csys\n ");
}
else
{
UF_MOM_set_double(mom_id , "pos_x", processed_gotos);
UF_MOM_set_double(mom_id , "pos_y", v7, v8);
UF_MOM_set_double(mom_id , "pos_z", v9, v10);
error = 0;
}
}
}
return error;
}