BRL-CAD
Bv_polygon

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)
 

Detailed Description

Macro Definition Documentation

◆ BV_POLYGON_GENERAL

#define BV_POLYGON_GENERAL   0

Functions for working with polygons.

Definition at line 44 of file polygon.h.

◆ BV_POLYGON_CIRCLE

#define BV_POLYGON_CIRCLE   1

Definition at line 45 of file polygon.h.

◆ BV_POLYGON_ELLIPSE

#define BV_POLYGON_ELLIPSE   2

Definition at line 46 of file polygon.h.

◆ BV_POLYGON_RECTANGLE

#define BV_POLYGON_RECTANGLE   3

Definition at line 47 of file polygon.h.

◆ BV_POLYGON_SQUARE

#define BV_POLYGON_SQUARE   4

Definition at line 48 of file polygon.h.

◆ BV_POLYGON_UPDATE_DEFAULT

#define BV_POLYGON_UPDATE_DEFAULT   0

Definition at line 83 of file polygon.h.

◆ BV_POLYGON_UPDATE_PROPS_ONLY

#define BV_POLYGON_UPDATE_PROPS_ONLY   1

Definition at line 84 of file polygon.h.

◆ BV_POLYGON_UPDATE_PT_SELECT

#define BV_POLYGON_UPDATE_PT_SELECT   2

Definition at line 85 of file polygon.h.

◆ BV_POLYGON_UPDATE_PT_SELECT_CLEAR

#define BV_POLYGON_UPDATE_PT_SELECT_CLEAR   3

Definition at line 86 of file polygon.h.

◆ BV_POLYGON_UPDATE_PT_MOVE

#define BV_POLYGON_UPDATE_PT_MOVE   4

Definition at line 87 of file polygon.h.

◆ BV_POLYGON_UPDATE_PT_APPEND

#define BV_POLYGON_UPDATE_PT_APPEND   5

Definition at line 88 of file polygon.h.

Function Documentation

◆ bv_create_polygon_obj()

struct bv_scene_obj* bv_create_polygon_obj ( struct bview v,
int  flags,
struct bv_polygon p 
)

◆ bv_create_polygon()

struct bv_scene_obj* bv_create_polygon ( struct bview v,
int  flags,
int  type,
point_t fp 
)

◆ bv_update_polygon()

int bv_update_polygon ( struct bv_scene_obj s,
struct bview v,
int  utype 
)

◆ bv_polygon_vlist()

void bv_polygon_vlist ( struct bv_scene_obj s)

◆ bv_select_polygon()

struct bv_scene_obj* bv_select_polygon ( struct bu_ptbl objs,
point_t cp 
)

◆ bv_move_polygon()

int bv_move_polygon ( struct bv_scene_obj s,
point_t cp,
point_t pp 
)

◆ bv_dup_view_polygon()

struct bv_scene_obj* bv_dup_view_polygon ( const char *  nname,
struct bv_scene_obj s 
)

◆ bv_polygon_cpy()

void bv_polygon_cpy ( struct bv_polygon dest,
struct bv_polygon src 
)

◆ bv_polygon_calc_fdelta()

int bv_polygon_calc_fdelta ( struct bv_polygon p)

◆ bv_polygon_fill_segments()

struct bg_polygon* bv_polygon_fill_segments ( struct bg_polygon poly,
plane_t vp,
vect2d_t  line_slope,
fastf_t  line_spacing 
)

◆ bv_polygon_csg()

int bv_polygon_csg ( struct bv_scene_obj target,
struct bv_scene_obj stencil,
bg_clip_t  op 
)