Creating the scene identifier scene_id, with the view index view_ind , consisting of structures S3, S2 and S5.
Example 1:
Plimit domain;
domain.x_min = 0.0; domain.x_max = 5.0;
domain.y_min = 0.0; domain.y_max = 10.0;
tdomain (&domain);
struct_id_list.num_ints = 3;
struct_id_list.ints[0] = S3;
struct_id_list.ints[1] = S2;
struct_id_list.ints[2] = S5;
tscene (scene_id, &struct_id_list, view_ind);
The structure identifier scene_id consists of the following elements
plabel (0);
pset_text_font (-9);
pset_view_ind (view_ind);
pset_local_tran (matrix_2D);
pset_model_clip_vol (...);
plabel (0);
plabel (S3);
plabel (S3);
pexec_struct (S3);
plabel (S2);
plabel (S2);
pexec_struct (S2);
plabel (S5);
plabel (S5);
pexec_struct (S5);
plabel (-999);
where matrix_2D is a matrix transforming the rectangular domain (0,5, 0,10) into a square (0,1, 0,1)
Example 2:
Plimit3 domain;
domain.x_min = 0.0; domain.x_max = 5.0;
domain.y_min = 0.0; domain.y_max = 10.0;
domain.z_min = 5.0; domain.z_max = 20.0;
tdomain3 (&domain);
struct_id_list.num_ints = 3;
struct_id_list.ints[0] = S3;
struct_id_list.ints[1] = S2;
struct_id_list.ints[2] = S5;
tscene (scene_id, &struct_id_list, view_ind);
The structure identifier scene_id consists of the following elements
plabel (0);
pset_text_font (-9);
pset_view_ind (view_ind);
pset_local_tran3 (matrix_3D);
pset_model_clip_vol3 (...);
plabel (0);
plabel (S3);
plabel (S3);
pexec_struct (S3);
plabel (S2);
plabel (S2);
pexec_struct (S2);
plabel (S5);
plabel (S5);
pexec_struct (S5);
where matrix_3D is a matrix transforming the domain parallelepiped (0,5, 0,10, 5,20) into a cube (0,1, 0,1, 0,1)
The part of the CSS corresponding to the scene may be represented by the graph below
