BRL-CAD
op.c File Reference
#include "common.h"
#include "rt/op.h"
#include <ctype.h>
Include dependency graph for op.c:

Go to the source code of this file.

Functions

db_op_t db_str2op (const char *str)
 

Function Documentation

db_op_t db_str2op ( const char *  str)

Get the next CSG boolean operator found in a given string.

Skipping any whitespace, this routine returns the CSG boolean operation in canonical (single-byte enumeration) form. It will attempt to recognize operators in various unicode formats if the input string contains mixed encodings.

Definition at line 31 of file op.c.

References DB_OP_INTERSECT, DB_OP_NULL, DB_OP_SUBTRACT, and DB_OP_UNION.

Referenced by add_operator(), build_comb(), db_tree_parse(), ged_bev(), ged_brep(), ged_comb(), ged_instance(), and ged_region().