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

Go to the source code of this file.

Functions

void generate_curves (fastf_t id, fastf_t od, ON_Plane *plane, ON_SimpleArray< ON_Curve * > *outer, ON_SimpleArray< ON_Curve * > *inner)
 
void make_linear_surfaces (ON_Brep **b, ON_SimpleArray< ON_Curve * > *startoutercurves, ON_SimpleArray< ON_Curve * > *endoutercurves, ON_SimpleArray< ON_Curve * > *startinnercurves, ON_SimpleArray< ON_Curve * > *endinnercurves)
 
void make_curved_surfaces (ON_Brep **b, ON_SimpleArray< ON_Curve * > *startoutercurves, ON_SimpleArray< ON_Curve * > *startinnercurves, fastf_t angle, point_t bend_center, vect_t norm)
 
void rt_pipe_brep (ON_Brep **b, const struct rt_db_internal *ip, const struct bn_tol *tol)
 

Detailed Description

Convert a Pipe to b-rep form

Definition in file pipe_brep.cpp.

Function Documentation

void generate_curves ( fastf_t  id,
fastf_t  od,
ON_Plane *  plane,
ON_SimpleArray< ON_Curve * > *  outer,
ON_SimpleArray< ON_Curve * > *  inner 
)

Definition at line 35 of file pipe_brep.cpp.

Referenced by rt_pipe_brep().

void make_linear_surfaces ( ON_Brep **  b,
ON_SimpleArray< ON_Curve * > *  startoutercurves,
ON_SimpleArray< ON_Curve * > *  endoutercurves,
ON_SimpleArray< ON_Curve * > *  startinnercurves,
ON_SimpleArray< ON_Curve * > *  endinnercurves 
)

Definition at line 51 of file pipe_brep.cpp.

References SMALL_FASTF.

Referenced by rt_pipe_brep().

void make_curved_surfaces ( ON_Brep **  b,
ON_SimpleArray< ON_Curve * > *  startoutercurves,
ON_SimpleArray< ON_Curve * > *  startinnercurves,
fastf_t  angle,
point_t  bend_center,
vect_t  norm 
)

Definition at line 101 of file pipe_brep.cpp.

Referenced by rt_pipe_brep().

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

Definition at line 125 of file pipe_brep.cpp.

References bn_vec_ortho(), bp, BU_LIST_DEQUEUE, BU_LIST_FIRST, BU_LIST_IS_EMPTY, BU_LIST_IS_HEAD, BU_LIST_NEXT, BU_LIST_NEXT_IS_HEAD, delta, generate_curves(), rt_db_internal::idb_ptr, M_PI, make_curved_surfaces(), make_linear_surfaces(), NEAR_ZERO, RT_CK_DB_INTERNAL, RT_LEN_TOL, and SQRT_SMALL_FASTF.

Here is the call graph for this function: