17 static void cp_draw(
nv_data *,
int,
int,
int);
80 cp_draw(data, data->
cur_cplane, bound1, bound2);
93 void cp_draw(
nv_data * data,
int current,
int surf1,
int surf2)
96 int surf_min = 0, surf_max = 0, temp;
105 if ((surf1 != -1) && (surf2 != -1)) {
106 for (i = 0; i < nsurfs; i++) {
107 if (surf_list[i] == surf1)
109 if (surf_list[i] == surf2)
113 if (surf_max < surf_min) {
133 for (i = surf_min; i < surf_max; i++) {
252 float x, y, z, len, los[2][3];
284 dx = realto[
X] - (e - w) / 2.;
285 dy = realto[
Y] - (n - s) / 2.;
geosurf * gs_get_surf(int)
Get geosurf struct.
int gsd_get_los(float(*)[3], short, short)
ADD.
int Nviz_draw_cplane(nv_data *data, int bound1, int bound2)
Draw the clip plane.
void GS_draw_wire(int)
Draw surface wire.
int Nviz_set_fence_color(nv_data *data, int type)
Set appropriate fence color.
void GS_set_cplane(int)
Set cplace.
int Nviz_set_cplane_rotation(nv_data *data, int id, float dx, float dy, float dz)
Set the rotation for the current clip plane.
void GS_clear(int)
Clear view.
int Nviz_get_cplane_rotation(nv_data *data, int id, float *dx, float *dy, float *dz)
Get the rotation values for the current clip plane.
void GS_set_cplane_rot(int, float, float, float)
Set cplace rotation.
float cp_trans[MAX_CPLANES][3]
float GS_distance(float *, float *)
Calculate distance.
int GS_get_selected_point_on_surface(int, int, int *, float *, float *, float *)
Get selected point of surface.
void GS_set_cplane_trans(int, float, float, float)
Set cplace trans.
int GS_get_region(float *, float *, float *, float *)
Get 2D region extent.
int Nviz_off_cplane(nv_data *data, int id)
Turn off (make inactive) the given clip plane.
void GS_unset_cplane(int)
Unset clip place (turn off)
int Nviz_set_cplane_translation(nv_data *data, int id, float dx, float dy, float dz)
Set the translation for the current clip plane.
int Nviz_get_current_cplane(nv_data *data)
Get the current active cutplane.
int * GS_get_surf_list(int *)
Get surface list.
void GS_done_draw(void)
Draw done, swap buffers.
int GS_draw_cplane_fence(int, int, int)
Draw cplace fence ?
int Nviz_on_cplane(nv_data *data, int id)
Turn on (make current) the given clip plane.
int Nviz_num_cplanes(nv_data *data)
Return the number of clip planes objects currently allocated.
int Nviz_set_cplane_here(nv_data *data, int cplane, float sx, float sy)
int Nviz_new_cplane(nv_data *data, int id)
Creates a clip plane object.
void GS_set_fencecolor(int)
Set fence color.
int GS_v3dir(float *, float *, float *)
Get a normalized direction from v1 to v2, store in v3.
float cp_rot[MAX_CPLANES][3]
void GS_set_draw(int)
Sets which buffer to draw to.
int Nviz_get_cplane_translation(nv_data *data, int id, float *dx, float *dy, float *dz)
Get the translation values for the current clip plane.
void GS_v3mult(float *, float)
Multiple vectors.