BRL-CAD
#include "common.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <signal.h>
#include "tcl.h"
#include "bn.h"
#include "bu/cmd.h"
#include "vmath.h"
#include "./qray.h"
#include "./ged_private.h"
Include dependency graph for nirt.c:

Go to the source code of this file.

Functions

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

Detailed Description

Routines to interface to nirt.

This code was imported from the RTUIF and modified to work as part of the drawable geometry object.

Definition in file nirt.c.

Function Documentation

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

Invoke nirt with the current view & stuff

Definition at line 63 of file nirt.c.

References _ged_cvt_vlblock_to_solids(), _ged_wait_status(), bu_list::back, bin(), BU_ALLOC, bu_brlcad_root(), bu_calloc(), bu_fgets(), bu_free(), BU_LIST_APPEND, bu_list_free(), BU_LIST_INIT, bu_log(), BU_STR_EQUAL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_strcat(), bu_vls_strcpy(), bu_vls_strlen(), bu_vls_strncpy(), bu_vls_trimspace(), bu_vls_trunc(), db_i::dbi_base2local, db_i::dbi_filename, db_i::dbi_local2base, rt_wdb::dbip, DG_QRAY_FORMAT_NULL, DG_QRAY_FORMAT_O, DG_QRAY_FORMAT_P, DG_QRAY_GRAPHICS, DG_QRAY_TEXT, dl_set_wflag(), DOWN, FALSE, fdopen(), ged_qray_fmt::fmt, ged_drawable::gd_headDisplay, ged_drawable::gd_qray_basename, ged_drawable::gd_qray_cmd_echo, ged_drawable::gd_qray_fmts, ged_drawable::gd_qray_script, ged_drawable::gd_rt_cmd, ged_drawable::gd_rt_cmd_len, ged_build_tops(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, ged_count_tops(), GED_ERROR, ged::ged_gdp, ged::ged_gvp, GED_OK, ged::ged_result_str, ged::ged_wdbp, bview::gv_center, bview::gv_rotation, qray_dataList::l, qray_dataList::los, memset(), qray_data_to_vlist(), RT_MAXLINE, rt_vlblock_free(), rt_vlblock_init(), TRUE, ged_qray_fmt::type, VSET, X, qray_dataList::x_in, Y, qray_dataList::y_in, Z, and qray_dataList::z_in.

Referenced by ged_vnirt().

Here is the call graph for this function:

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

Definition at line 548 of file nirt.c.

References bu_calloc(), bu_free(), bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), bu_vls_trunc(), db_i::dbi_base2local, rt_wdb::dbip, DG_GED_MAX, DG_INV_GED, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, GED_ERROR, ged::ged_gvp, GED_HELP, ged_nirt(), ged::ged_result_str, ged::ged_wdbp, bview::gv_view2model, usage(), X, Y, and Z.

Here is the call graph for this function: