BRL-CAD
|
#include "common.h"
#include "brep/defines.h"
#include "vmath.h"
#include "bu/vls.h"
#include "rt/defines.h"
Go to the source code of this file.
Take an old v4 shader specification of the form
shadername arg1=value1 arg2=value2 color=1/2/3
and convert it into the v5 {} list form
shadername {arg1 value1 arg2 value2 color 1/2/3}
Note – the input string is smashed with nulls.
Note – the v5 version is used everywhere internally, and in v5 databases.
|
extern |
Import a combination record from a V4 database into internal form.
|
extern |
|
extern |
|
extern |
OBJ[ID_COMBINATION].ft_describe() method
|
extern |
fills in rgb with the color for a given comb combination
returns truthfully if a color could be got. note that this routine will not (and cannot) handle the color inherit/override flag as that is set on some higher-level parent combination.
|
extern |
change all matching object names in the comb tree from old_name to new_name
calling function must supply an initialized bu_ptbl, and free it once done.
|
extern |
Read a combination object in v5 external (on-disk) format, and convert it into the internal format described in rtgeom.h
This is an unusual conversion, because some of the data is taken from attributes, not just from the object body. By the time this is called, the attributes will already have been cracked into ip->idb_avs, we get the attributes from there.
Returns - 0 OK -1 FAIL
|
extern |
Return a RT_DIR_NULL terminated array of directory pointers that holds the set of immediate children associated with comb. The caller is responsible for freeing the array, but not the directory structures pointed to by the array.
Optionally, pointers may also be supplied to collect arrays holding the boolean operations and matrices associated with the comb entries. For boolean operations, the caller is responsible for freeing the array. For matrices, both the array and the matrices themselves must be freed by the caller. The boolean operations array is zero terminated, the matrix array is NULL terminated. For example: