BRL-CAD
polyclip.cpp File Reference
#include "common.h"
#include <clipper.hpp>
#include "ged.h"
Include dependency graph for polyclip.cpp:

Go to the source code of this file.

Data Structures

struct  clipper_vertex
 
struct  segment_node
 
struct  contour_node
 
struct  poly_contour_2d
 
struct  polygon_2d
 

Functions

bview_polygonged_clip_polygon (ClipType op, bview_polygon *subj, bview_polygon *clip, fastf_t sf, matp_t model2view, matp_t view2model)
 
bview_polygonged_clip_polygons (ClipType op, bview_polygons *subj, bview_polygons *clip, fastf_t sf, matp_t model2view, matp_t view2model)
 
int ged_export_polygon (struct ged *gedp, bview_data_polygon_state *gdpsp, size_t polygon_i, const char *sname)
 
bview_polygonged_import_polygon (struct ged *gedp, const char *sname)
 
fastf_t ged_find_polygon_area (bview_polygon *gpoly, fastf_t sf, matp_t model2view, fastf_t size)
 
int ged_polygons_overlap (struct ged *gedp, bview_polygon *polyA, bview_polygon *polyB)
 

Detailed Description

An interface to src/other/clipper.

Definition in file polyclip.cpp.

Function Documentation

bview_polygon* ged_clip_polygon ( ClipType  op,
bview_polygon subj,
bview_polygon clip,
fastf_t  sf,
matp_t  model2view,
matp_t  view2model 
)

Definition at line 163 of file polyclip.cpp.

References gctDifference, gctIntersection, and gctUnion.

Referenced by to_data_polygons().

bview_polygon* ged_clip_polygons ( ClipType  op,
bview_polygons subj,
bview_polygons clip,
fastf_t  sf,
matp_t  model2view,
matp_t  view2model 
)

Definition at line 206 of file polyclip.cpp.

References gctDifference, gctIntersection, and gctUnion.

fastf_t ged_find_polygon_area ( bview_polygon gpoly,
fastf_t  sf,
matp_t  model2view,
fastf_t  size 
)