BRL-CAD
nmg_fix_normals.c File Reference
#include "common.h"
#include <string.h>
#include "bu/cmd.h"
#include "rtgeom.h"
#include "./ged_private.h"
Include dependency graph for nmg_fix_normals.c:

Go to the source code of this file.

Functions

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

Detailed Description

The nmg_fix_normals command.

Definition in file nmg_fix_normals.c.

Function Documentation

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

Attempt to fix an NMG primitive's normals.

Definition at line 38 of file nmg_fix_normals.c.

References bn_mat_identity, BN_TOL_MAGIC, BU_LIST_FOR, bu_vls_printf(), db_lookup(), rt_wdb::dbip, bn_tol::dist, bn_tol::dist_sq, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_READ_ONLY, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, ID_NMG, rt_db_internal::idb_ptr, LOOKUP_QUIET, bn_tol::magic, nmg_fix_normals(), bn_tol::para, bn_tol::perp, rt_db_free_internal(), rt_db_get_internal(), RT_DIR_NULL, rt_uniresource, s, and usage().

Here is the call graph for this function: