BRL-CAD
polygon.h File Reference
#include "common.h"
#include "vmath.h"
#include "bu/color.h"
#include "bv/defines.h"
#include "bg/polygon.h"
#include "bg/polygon_types.h"
Include dependency graph for polygon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bv_polygon
 

Macros

#define BV_POLYGON_GENERAL   0
 Functions for working with polygons. More...
 
#define BV_POLYGON_CIRCLE   1
 
#define BV_POLYGON_ELLIPSE   2
 
#define BV_POLYGON_RECTANGLE   3
 
#define BV_POLYGON_SQUARE   4
 
#define BV_POLYGON_UPDATE_DEFAULT   0
 
#define BV_POLYGON_UPDATE_PROPS_ONLY   1
 
#define BV_POLYGON_UPDATE_PT_SELECT   2
 
#define BV_POLYGON_UPDATE_PT_SELECT_CLEAR   3
 
#define BV_POLYGON_UPDATE_PT_MOVE   4
 
#define BV_POLYGON_UPDATE_PT_APPEND   5
 

Functions

struct bv_scene_objbv_create_polygon_obj (struct bview *v, int flags, struct bv_polygon *p)
 
struct bv_scene_objbv_create_polygon (struct bview *v, int flags, int type, point_t *fp)
 
int bv_update_polygon (struct bv_scene_obj *s, struct bview *v, int utype)
 
void bv_polygon_vlist (struct bv_scene_obj *s)
 
struct bv_scene_objbv_select_polygon (struct bu_ptbl *objs, point_t *cp)
 
int bv_move_polygon (struct bv_scene_obj *s, point_t *cp, point_t *pp)
 
struct bv_scene_objbv_dup_view_polygon (const char *nname, struct bv_scene_obj *s)
 
void bv_polygon_cpy (struct bv_polygon *dest, struct bv_polygon *src)
 
int bv_polygon_calc_fdelta (struct bv_polygon *p)
 
struct bg_polygonbv_polygon_fill_segments (struct bg_polygon *poly, plane_t *vp, vect2d_t line_slope, fastf_t line_spacing)
 
int bv_polygon_csg (struct bv_scene_obj *target, struct bv_scene_obj *stencil, bg_clip_t op)