BRL-CAD
dsp_brep.cpp File Reference
#include "common.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "brep.h"
#include "./dsp.h"
Include dependency graph for dsp_brep.cpp:

Go to the source code of this file.

Macros

#define MOVEPT(_p)   MAT4X3PNT(_p, dsp_ip->dsp_stom, p_temp)
 
#define MAX_CNT   256
 

Functions

int DegreeReduction (int n, ON_3dPointArray &bezcurv, fastf_t tol, fastf_t &maxerr)
 
void rt_dsp_brep (ON_Brep **b, const struct rt_db_internal *ip, const struct bn_tol *)
 

Variables

fastf_t C [2 *MAX_CNT+1][2 *MAX_CNT+1]
 

Detailed Description

Convert a Displacement Map to b-rep form

Definition in file dsp_brep.cpp.

Macro Definition Documentation

#define MOVEPT (   _p)    MAT4X3PNT(_p, dsp_ip->dsp_stom, p_temp)

Definition at line 35 of file dsp_brep.cpp.

Referenced by rt_dsp_brep().

#define MAX_CNT   256

Definition at line 36 of file dsp_brep.cpp.

Referenced by rt_dsp_brep().

Function Documentation

int DegreeReduction ( int  n,
ON_3dPointArray &  bezcurv,
fastf_t  tol,
fastf_t maxerr 
)

Definition at line 40 of file dsp_brep.cpp.

References bu_log(), C, delta, and NEAR_ZERO.

Referenced by rt_dsp_brep().

Here is the call graph for this function:

void rt_dsp_brep ( ON_Brep **  b,
const struct rt_db_internal ip,
const struct bn_tol  
)

Definition at line 104 of file dsp_brep.cpp.

References C, data, DegreeReduction(), DSP, rt_db_internal::idb_ptr, MAX_CNT, MOVEPT, RT_CK_DB_INTERNAL, VSET, and VSETALL.

Here is the call graph for this function:

Variable Documentation