BRL-CAD
brep_debug.cpp File Reference
#include "common.h"
#include <vector>
#include <list>
#include <iostream>
#include <algorithm>
#include <set>
#include <utility>
#include "poly2tri/poly2tri.h"
#include "bu/log.h"
#include "bu/color.h"
#include "bu/str.h"
#include "bu/malloc.h"
#include "bu/list.h"
#include "bu/vls.h"
#include "vmath.h"
#include "plot3.h"
#include "brep.h"
#include "brep_debug.h"
#include "dvec.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "wdb.h"
#include "brep_local.h"
Include dependency graph for brep_debug.cpp:

Go to the source code of this file.

Macros

#define ARB_FACE(valp, a, b, c, d)
 
#define BB_PLOT_VLIST(min, max)
 

Functions

int brep_command (struct bu_vls *vls, const char *solid_name, const struct rt_tess_tol *ttol, const struct bn_tol *tol, struct brep_specific *bs, struct rt_brep_internal *bi, struct bn_vlblock *vbp, int argc, const char *argv[], char *commtag)
 
int single_conversion (struct rt_db_internal *intern, ON_Brep **brep, const struct db_i *dbip)
 
int brep_conversion (struct rt_db_internal *in, struct rt_db_internal *out, const struct db_i *dbip)
 
int brep_conversion_comb (struct rt_db_internal *old_internal, const char *name, const char *suffix, struct rt_wdb *wdbp, fastf_t local2mm)
 
int brep_intersect_point_point (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j)
 
int brep_intersect_point_curve (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j)
 
int brep_intersect_point_surface (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j)
 
int brep_intersect_curve_curve (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j)
 
int brep_intersect_curve_surface (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j)
 
int brep_intersect_surface_surface (struct rt_db_internal *intern1, struct rt_db_internal *intern2, int i, int j, struct bn_vlblock *vbp)
 
void rt_comb_brep (ON_Brep **b, const struct rt_db_internal *ip, const struct bn_tol *tol, const struct db_i *dbip)
 
void poly2tri_CDT (struct bu_list *vhead, ON_BrepFace &face, const struct rt_tess_tol *ttol, const struct bn_tol *tol, const struct rt_view_info *info, bool watertight=false, int plottype=0, int num_points=-1.0)
 
FILE * brep_plot_file (const char *pname)
 
void plotsurfaceleafs (SurfaceTree *surf)
 
unsigned int plotsurfaceleafs (SurfaceTree *surf, struct bn_vlblock *vbp, bool dim3d)
 
void plottrimleafs (SurfaceTree *st, struct bn_vlblock *vbp, bool dim3d)
 
void plotleaf3d (BBNode *bb, double within_distance_tol)
 
void plotleafuv (BBNode *bb)
 
void plottrim (ON_BrepFace &face, struct bn_vlblock *vbp, int plotres, bool dim3d)
 
void plottrim2d (ON_BrepFace &face, struct bn_vlblock *vbp, int plotres)
 
void plotUVDomain2d (ON_BrepFace &face, struct bn_vlblock *vbp)
 
void plottrim (ON_BrepTrim &trim, struct bn_vlblock *vbp, int plotres, bool dim3d)
 
void plottrimdirection (ON_BrepFace &face, struct bn_vlblock *vbp, int plotres)
 
void plotsurface (ON_Surface &surf, struct bn_vlblock *vbp, int isocurveres, int gridres, const int red=200, const int green=200, const int blue=200)
 
void plotsurfacenormals (ON_Surface &surf, struct bn_vlblock *vbp, int gridres)
 
void plotsurfaceknots (ON_Surface &surf, struct bn_vlblock *vbp, bool dim3d)
 
void plotcurve (ON_Curve &curve, struct bn_vlblock *vbp, int plotres, const int red=255, const int green=255, const int blue=0)
 
void plotpoint (const ON_3dPoint &point, struct bn_vlblock *vbp, const int red=255, const int green=255, const int blue=0)
 
void plotcurveonsurface (ON_Curve *curve, ON_Surface *surface, struct bn_vlblock *vbp, int plotres, const int red=255, const int green=255, const int blue=0)
 
void plottrim (const ON_Curve &curve, double from, double to)
 
void plottrim (ON_Curve &curve)
 
int brep_info (struct brep_specific *bs, struct bu_vls *vls)
 
int brep_surface_info (struct brep_specific *bs, struct bu_vls *vls, int si)
 
int brep_surface_bezier_info (struct brep_specific *bs, struct bu_vls *vls, int si)
 
int brep_face_info (struct brep_specific *bs, struct bu_vls *vls, int fi)
 
int brep_trim_info (struct brep_specific *bs, struct bu_vls *vls, int ti)
 
int brep_trim_bezier_info (struct brep_specific *bs, struct bu_vls *vls, int ti)
 
int brep_curve_info (struct brep_specific *bs, struct bu_vls *vls, int ci)
 
int brep_loop_info (struct brep_specific *bs, struct bu_vls *vls, int li)
 
int brep_edge_info (struct brep_specific *bs, struct bu_vls *vls, int ei)
 
int brep_facecdt_plot (struct bu_vls *vls, const char *solid_name, const struct rt_tess_tol *ttol, const struct bn_tol *tol, struct brep_specific *bs, struct rt_brep_internal *bi, struct bn_vlblock *vbp, int index, int plottype, int num_points=-1)
 
int brep_facetrim_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres, bool dim3d)
 
int brep_trim_direction_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres)
 
int brep_surface_uv_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, double u, double v)
 
int brep_surface_uv_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, ON_Interval &U, ON_Interval &V)
 
int brep_surface_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres)
 
int brep_surface_normal_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres)
 
int brep_surface_knot_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, bool dim3d)
 
int brep_edge3d_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres)
 
int brep_trim_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres, bool dim3d)
 
int brep_loop_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres, bool dim3d)
 
int brep_surface_cv_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index)
 
bool near_equal (double first, double second)
 
void plotFace (SurfaceTree *st, struct bn_vlblock *vbp, int isocurveres, int gridres)
 
void drawisoUCheckForTrim (SurfaceTree *st, struct bn_vlblock *vbp, fastf_t from, fastf_t to, fastf_t v, int curveres)
 
void drawisoVCheckForTrim (SurfaceTree *st, struct bn_vlblock *vbp, fastf_t from, fastf_t to, fastf_t u, int curveres)
 
void drawisoU (SurfaceTree *st, struct bn_vlblock *vbp, fastf_t from, fastf_t to, fastf_t v, int curveres)
 
void drawisoV (SurfaceTree *st, struct bn_vlblock *vbp, fastf_t from, fastf_t to, fastf_t u, int curveres)
 
void drawBBNode (SurfaceTree *st, struct bn_vlblock *vbp, BBNode *node)
 
void plotFaceFromSurfaceTree (SurfaceTree *st, struct bn_vlblock *vbp, int isocurveres, int gridres)
 
int brep_isosurface_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, int index, int plotres)
 
int brep_surfaceleafs_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, bool dim3d, int index, int)
 
int brep_trimleafs_plot (struct bu_vls *vls, struct brep_specific *bs, struct rt_brep_internal *, struct bn_vlblock *vbp, bool dim3d, int index, int)
 
void info_usage (struct bu_vls *vls)
 
void plot_usage (struct bu_vls *vls)
 
int brep_conversion_tree (const struct db_i *dbip, const union tree *oldtree, union tree *newtree, const char *suffix, struct rt_wdb *wdbp, fastf_t local2mm)
 
int brep_translate_scv (ON_Brep *brep, int surface_index, int i, int j, fastf_t dx, fastf_t dy, fastf_t dz)
 
int translate_command (struct bu_vls *result, struct brep_specific *bs, int argc, const char *argv[])
 

Detailed Description

brep debugging utilities

Definition in file brep_debug.cpp.