struct wmember wm_hd; /* defined in wdb.h */
BU_LIST_INIT(&wm_hd.l);
/* see h/wdb.h or libwdb/reg.c for API conv or proc-db
* for examples
*/
(void)mk_addmember("mybox", &wm_hd.l, NULL, WMOP_UNION);
/* If we wanted a transformation matrix for this element, we could
* have passed the matrix in to mk_addmember as an argument or we
* could add the following code:
*/
memcpy(wm_hd->wm_mat, trans_matrix, sizeof(mat_t));
/* Remember that values in the database are stored in millimeters,
* so the values in the matrix must take this into account.
*/
(void)mk_addmember("myball", & wm_hd.l, NULL, WMOP_SUBTRACT);