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

Go to the source code of this file.


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

Detailed Description

The bot_face_sort command.

Definition in file bot_face_sort.c.

Function Documentation

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

Sort the facelist of BOT solids to optimize ray trace performance for a particular number of triangles per raytrace piece.

Definition at line 37 of file bot_face_sort.c.

References bn_mat_identity, bu_log(), bu_vls_printf(), bu_vls_trunc(), directory::d_namep, db_lookup(), rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_READ_ONLY, GED_DB_GET_INTERNAL, GED_DB_PUT_INTERNAL, 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_NOISY, rt_bot_sort_faces(), rt_db_free_internal(), RT_DIR_NULL, usage(), and rt_wdb::wdb_resp.

Here is the call graph for this function: