BRL-CAD
|
#include "rt/defines.h"
Go to the source code of this file.
Macros | |
#define | MKOP(x) (x) |
#define | OP_SOLID MKOP(1) |
Leaf: tr_stp -> solid. | |
#define | OP_UNION MKOP(2) |
Binary: L union R. | |
#define | OP_INTERSECT MKOP(3) |
Binary: L intersect R. | |
#define | OP_SUBTRACT MKOP(4) |
Binary: L subtract R. | |
#define | OP_XOR MKOP(5) |
Binary: L xor R, not both. | |
#define | OP_REGION MKOP(6) |
Leaf: tr_stp -> combined_tree_state. | |
#define | OP_NOP MKOP(7) |
Leaf with no effect. | |
#define | OP_NOT MKOP(8) |
Unary: not L. | |
#define | OP_GUARD MKOP(9) |
Unary: not L, or else! | |
#define | OP_XNOP MKOP(10) |
Unary: L, mark region. | |
#define | OP_TESS MKOP(11) |
Leaf: tr_d -> evaluated tessellation result. | |
#define | OP_DB_LEAF MKOP(12) |
Leaf of combination, db fmt. | |
#define | OP_FREE MKOP(13) |
Unary: L has free chain. | |
Enumerations | |
enum | db_op_t { DB_OP_NULL = 0 , DB_OP_UNION = 'u' , DB_OP_SUBTRACT = '-' , DB_OP_INTERSECT = '+' } |
Functions | |
db_op_t | db_char2op (const char c) |
db_op_t | db_str2op (const char *str) |
Routines for detecting, using, and managing boolean operators.
Definition in file op.h.
Leaf: tr_stp -> combined_tree_state.
Give a single char, translate it to a db_op_t. If it does not correspond to a known operator, DB_OP_NULL is returned
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.