BRL-CAD
test_shape_recognition.cpp File Reference
#include "common.h"
#include <map>
#include <set>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "vmath.h"
#include "raytrace.h"
#include "wdb.h"
#include "plot3.h"
#include "opennurbs.h"
#include "brep.h"
#include "../libbrep/shape_recognition.h"
Include dependency graph for test_shape_recognition.cpp:

Go to the source code of this file.

Functions

struct model * brep_to_nmg (struct subbrep_object_data *data, struct rt_wdb *wdbp)
 
int subbrep_to_csg_planar (struct subbrep_object_data *data, struct rt_wdb *wdbp)
 
int subbrep_to_csg_cylinder (struct subbrep_object_data *data, struct rt_wdb *wdbp)
 
int subbrep_to_csg_conic (struct subbrep_object_data *data, struct rt_wdb *wdbp)
 
int make_shape (struct subbrep_object_data *data, struct rt_wdb *wdbp)
 
int main (int argc, char *argv[])
 

Function Documentation

struct model* brep_to_nmg ( struct subbrep_object_data data,
struct rt_wdb wdbp 
)
int subbrep_to_csg_planar ( struct subbrep_object_data data,
struct rt_wdb wdbp 
)

Definition at line 119 of file test_shape_recognition.cpp.

References brep_to_nmg(), PLANAR_VOLUME, and subbrep_object_data::type.

Referenced by make_shape().

Here is the call graph for this function:

int subbrep_to_csg_cylinder ( struct subbrep_object_data data,
struct rt_wdb wdbp 
)

Definition at line 154 of file test_shape_recognition.cpp.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_sprintf(), CYLINDER, csg_object_params::hv, subbrep_object_data::key, mk_rcc(), csg_object_params::origin, subbrep_object_data::params, csg_object_params::radius, and subbrep_object_data::type.

Referenced by make_shape().

Here is the call graph for this function:

int subbrep_to_csg_conic ( struct subbrep_object_data data,
struct rt_wdb wdbp 
)

Definition at line 168 of file test_shape_recognition.cpp.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_sprintf(), CONE, csg_object_params::height, csg_object_params::hv, subbrep_object_data::key, mk_cone(), csg_object_params::origin, subbrep_object_data::params, csg_object_params::r2, csg_object_params::radius, and subbrep_object_data::type.

Referenced by make_shape().

Here is the call graph for this function:

int make_shape ( struct subbrep_object_data data,
struct rt_wdb wdbp 
)

Definition at line 183 of file test_shape_recognition.cpp.

References bu_log(), bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_sprintf(), COMB, CONE, CYLINDER, ELLIPSOID, subbrep_object_data::key, subbrep_object_data::local_brep, mk_brep(), PLANAR_VOLUME, SPHERE, subbrep_to_csg_conic(), subbrep_to_csg_cylinder(), subbrep_to_csg_planar(), TORUS, and subbrep_object_data::type.

Referenced by main().

Here is the call graph for this function: