BRL-CAD
cdt.h File Reference
#include "common.h"
#include "bv/vlist.h"
#include "bn/tol.h"
#include "bg/defines.h"
#include "brep/defines.h"
Include dependency graph for cdt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cdt_bmesh
 

Functions

struct ON_Brep_CDT_State * ON_Brep_CDT_Create (void *bv, const char *objname)
 
void ON_Brep_CDT_Destroy (struct ON_Brep_CDT_State *s)
 
const char * ON_Brep_CDT_ObjName (struct ON_Brep_CDT_State *s)
 
void ON_Brep_CDT_Tol_Set (struct ON_Brep_CDT_State *s, const struct bg_tess_tol *t)
 
void ON_Brep_CDT_Tol_Get (struct bg_tess_tol *t, const struct ON_Brep_CDT_State *s)
 
void * ON_Brep_CDT_Brep (struct ON_Brep_CDT_State *s)
 
int ON_Brep_CDT_Tessellate (struct ON_Brep_CDT_State *s, int face_cnt, int *faces)
 
int ON_Brep_CDT_Status (struct ON_Brep_CDT_State *s)
 
int ON_Brep_CDT_VList (struct bv_vlblock *vbp, struct bu_list *vlfree, struct bu_color *c, int mode, struct ON_Brep_CDT_State *s)
 
int ON_Brep_CDT_Ovlp_Resolve (struct ON_Brep_CDT_State **s_a, int s_cnt, double lthreshold, int timeout)
 
int ON_Brep_CDT_Mesh (int **faces, int *fcnt, fastf_t **vertices, int *vcnt, int **face_normals, int *fn_cnt, fastf_t **normals, int *ncnt, struct ON_Brep_CDT_State *s, int exp_face_cnt, int *exp_faces)
 
int brep_facecdt_plot (struct bu_vls *vls, const char *solid_name, const struct bg_tess_tol *ttol, const struct bn_tol *tol, const ON_Brep *brep, struct bu_list *p_vhead, struct bv_vlblock *vbp, struct bu_list *vlfree, int index, int plottype, int num_points)
 
int brep_cdt_fast (int **faces, int *face_cnt, vect_t **pnt_norms, point_t **pnts, int *pntcnt, const ON_Brep *brep, int index, const struct bg_tess_tol *ttol, const struct bn_tol *tol)
 
int cdt_bmesh_create (struct cdt_bmesh **m)
 
void cdt_bmesh_destroy (struct cdt_bmesh *m)
 
int cdt_bmesh_deserialize (const char *fname, struct cdt_bmesh *m)
 
int cdt_bmesh_repair (struct cdt_bmesh *m)
 

Function Documentation

◆ ON_Brep_CDT_Create()

struct ON_Brep_CDT_State * ON_Brep_CDT_Create ( void *  bv,
const char *  objname 
)

◆ ON_Brep_CDT_Destroy()

void ON_Brep_CDT_Destroy ( struct ON_Brep_CDT_State *  s)

◆ ON_Brep_CDT_ObjName()

const char * ON_Brep_CDT_ObjName ( struct ON_Brep_CDT_State *  s)

◆ ON_Brep_CDT_Tol_Set()

void ON_Brep_CDT_Tol_Set ( struct ON_Brep_CDT_State *  s,
const struct bg_tess_tol t 
)

◆ ON_Brep_CDT_Tol_Get()

void ON_Brep_CDT_Tol_Get ( struct bg_tess_tol t,
const struct ON_Brep_CDT_State *  s 
)

◆ ON_Brep_CDT_Brep()

void * ON_Brep_CDT_Brep ( struct ON_Brep_CDT_State *  s)

◆ ON_Brep_CDT_Tessellate()

int ON_Brep_CDT_Tessellate ( struct ON_Brep_CDT_State *  s,
int  face_cnt,
int *  faces 
)

◆ ON_Brep_CDT_Status()

int ON_Brep_CDT_Status ( struct ON_Brep_CDT_State *  s)

◆ ON_Brep_CDT_VList()

int ON_Brep_CDT_VList ( struct bv_vlblock vbp,
struct bu_list vlfree,
struct bu_color c,
int  mode,
struct ON_Brep_CDT_State *  s 
)

◆ ON_Brep_CDT_Ovlp_Resolve()

int ON_Brep_CDT_Ovlp_Resolve ( struct ON_Brep_CDT_State **  s_a,
int  s_cnt,
double  lthreshold,
int  timeout 
)

◆ ON_Brep_CDT_Mesh()

int ON_Brep_CDT_Mesh ( int **  faces,
int *  fcnt,
fastf_t **  vertices,
int *  vcnt,
int **  face_normals,
int *  fn_cnt,
fastf_t **  normals,
int *  ncnt,
struct ON_Brep_CDT_State *  s,
int  exp_face_cnt,
int *  exp_faces 
)

◆ brep_facecdt_plot()

int brep_facecdt_plot ( struct bu_vls vls,
const char *  solid_name,
const struct bg_tess_tol ttol,
const struct bn_tol tol,
const ON_Brep *  brep,
struct bu_list p_vhead,
struct bv_vlblock vbp,
struct bu_list vlfree,
int  index,
int  plottype,
int  num_points 
)

◆ brep_cdt_fast()

int brep_cdt_fast ( int **  faces,
int *  face_cnt,
vect_t **  pnt_norms,
point_t **  pnts,
int *  pntcnt,
const ON_Brep *  brep,
int  index,
const struct bg_tess_tol ttol,
const struct bn_tol tol 
)

◆ cdt_bmesh_create()

int cdt_bmesh_create ( struct cdt_bmesh **  m)

◆ cdt_bmesh_destroy()

void cdt_bmesh_destroy ( struct cdt_bmesh m)

◆ cdt_bmesh_deserialize()

int cdt_bmesh_deserialize ( const char *  fname,
struct cdt_bmesh m 
)

◆ cdt_bmesh_repair()

int cdt_bmesh_repair ( struct cdt_bmesh m)