bot_decimate.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "bu/getopt.h"
#include "rtgeom.h"
#include "ged.h"
Include dependency graph for bot_decimate.c:

Go to the source code of this file.


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

Detailed Description

The bot_decimate command.

Definition in file bot_decimate.c.

Function Documentation

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

Uses edge decimation to reduce the number of triangles in the specified BOT while keeping within the specified constraints.

Definition at line 38 of file bot_decimate.c.

References bu_getopt(), bu_optarg, bu_opterr, bu_optind, bu_vls_printf(), bu_vls_trunc(), db_i::dbi_local2base, rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_EXISTS, GED_CHECK_READ_ONLY, GED_DB_GET_INTERNAL, GED_DB_LOOKUP, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, rt_db_internal::idb_major_type, rt_db_internal::idb_minor_type, rt_db_internal::idb_ptr, LOOKUP_QUIET, rt_bot_decimate(), rt_db_free_internal(), RT_DB_INTERNAL_INIT, usage(), wdb_put_internal(), and rt_wdb::wdb_resp.

Here is the call graph for this function: