model2view.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "./ged_private.h"
Include dependency graph for model2view.c:

Go to the source code of this file.


int ged_model2view (struct ged *gedp, int argc, const char *argv[])

Function Documentation

int ged_model2view ( struct ged gedp,
int  argc,
const char *  argv[] 

Given a point in model space coordinates (in mm) convert it to view (screen) coordinates which must be scaled to correspond to actual screen coordinates. If no input coordinates are supplied, the model2view matrix is displayed.

Definition at line 37 of file model2view.c.

References bn_encode_mat(), bn_encode_vect(), bu_vls_printf(), bu_vls_trunc(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_VIEW, GED_ERROR, ged::ged_gvp, GED_OK, ged::ged_result_str, bview::gv_model2view, usage(), X, Y, and Z.

Here is the call graph for this function: