BRL-CAD
vlist.h File Reference
#include "common.h"
#include "vmath.h"
#include "bu/magic.h"
#include "bu/list.h"
#include "bn/defines.h"
Include dependency graph for vlist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bn_vlist
 
struct  bn_vlblock
 

Macros

#define BN_VLIST_CHUNK   35
 Definitions for handling lists of vectors (really vertices, or points) and polygons in 3-space. Intended for common handling of wireframe display information, in the full resolution that is calculated in. More...
 
#define BN_VLIST_NULL   ((struct bn_vlist *)0)
 
#define BN_CK_VLIST(_p)   BU_CKMAG((_p), BN_VLIST_MAGIC, "bn_vlist")
 
#define BN_VLIST_LINE_MOVE   0
 
#define BN_VLIST_LINE_DRAW   1
 
#define BN_VLIST_POLY_START   2
 pt[] has surface normal More...
 
#define BN_VLIST_POLY_MOVE   3
 move to first poly vertex More...
 
#define BN_VLIST_POLY_DRAW   4
 subsequent poly vertex More...
 
#define BN_VLIST_POLY_END   5
 last vert (repeats 1st), draw poly More...
 
#define BN_VLIST_POLY_VERTNORM   6
 per-vertex normal, for interpolation More...
 
#define BN_VLIST_TRI_START   7
 pt[] has surface normal More...
 
#define BN_VLIST_TRI_MOVE   8
 move to first triangle vertex More...
 
#define BN_VLIST_TRI_DRAW   9
 subsequent triangle vertex More...
 
#define BN_VLIST_TRI_END   10
 last vert (repeats 1st), draw poly More...
 
#define BN_VLIST_TRI_VERTNORM   11
 per-vertex normal, for interpolation More...
 
#define BN_VLIST_POINT_DRAW   12
 Draw a single point. More...
 
#define BN_VLIST_POINT_SIZE   13
 specify point pixel size More...
 
#define BN_VLIST_LINE_WIDTH   14
 specify line pixel width More...
 
#define BN_VLIST_CMD_MAX   14
 Max command number. More...
 
#define BN_GET_VLIST(_free_hd, p)
 
#define BN_FREE_VLIST(_free_hd, hd)
 
#define BN_ADD_VLIST(_free_hd, _dest_hd, pnt, draw)
 
#define BN_VLIST_SET_POINT_SIZE(_free_hd, _dest_hd, _size)
 
#define BN_VLIST_SET_LINE_WIDTH(_free_hd, _dest_hd, _width)
 
#define BN_CK_VLBLOCK(_p)   BU_CKMAG((_p), BN_VLBLOCK_MAGIC, "bn_vlblock")
 

Functions

int bn_vlist_cmd_cnt (struct bn_vlist *vlist)
 
int bn_vlist_bbox (struct bn_vlist *vp, point_t *bmin, point_t *bmax)
 
void bn_vlist_3string (struct bu_list *vhead, struct bu_list *free_hd, const char *string, const point_t origin, const mat_t rot, double scale)
 
void bn_vlist_2string (struct bu_list *vhead, struct bu_list *free_hd, const char *string, double x, double y, double scale, double theta)