BRL-CAD
op.h File Reference
#include "./defines.h"
Include dependency graph for op.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  db_op_t { DB_OP_NULL = 0, DB_OP_UNION = 'u', DB_OP_SUBTRACT = '-', DB_OP_INTERSECT = '+' }
 

Functions

db_op_t db_str2op (const char *str)
 

Detailed Description

Routines for detecting, using, and managing boolean operators.

Definition in file op.h.

Enumeration Type Documentation

enum db_op_t
Enumerator
DB_OP_NULL 
DB_OP_UNION 
DB_OP_SUBTRACT 
DB_OP_INTERSECT 

Definition at line 33 of file op.h.

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().