Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

obj2sm.C File Reference

#include <string>
#include <sstream>
#include <limits>
#include "mesh/lmesh.H"
#include "std/config.H"

Include dependency graph for obj2sm.C:

Go to the source code of this file.

Classes

class  vtn

Functions

void skip_line (istream &in)
void read_vert (LMESH *mesh, istream &in)
void read_texcoord (UVpt_list &uvs, istream &in)
istream & operator>> (istream &in, vtn &v)
template<class T>
bool all_valid_indices (const T &l, int i, int j, int k)
template<class T>
bool any_valid_indices (const T &l, int i, int j, int k)
void add_tri (LMESH *mesh, CUVpt_list &uvs, const vtn &v1, const vtn &v2, const vtn &v3)
void add_poly (LMESH *mesh, CUVpt_list &uvs, const ARRAY< vtn > &vtns)
void read_face (LMESH *mesh, CUVpt_list &uvs, istream &in)
static LMESHptr read_obj (istream &in)
int main (int argc, char *argv[])

Variables

static bool debug = Config::get_var_bool("DEBUG_OBJ2SM",false,true)


Function Documentation

void add_poly LMESH mesh,
CUVpt_list uvs,
const ARRAY< vtn > &  vtns
[inline]
 

Definition at line 183 of file obj2sm.C.

References add_tri(), BMESH::bv(), lookup_edge(), ARRAY< T >::num(), Bsimplex::set_bit(), and Bedge::WEAK_BIT.

Referenced by read_face().

void add_tri LMESH mesh,
CUVpt_list uvs,
const vtn v1,
const vtn v2,
const vtn v3
[inline]
 

Definition at line 170 of file obj2sm.C.

References vtn::_t, vtn::_v, BMESH::add_face(), all_valid_indices(), and BMESH::verts().

Referenced by add_poly().

template<class T>
bool all_valid_indices const T &  l,
int  i,
int  j,
int  k
[inline]
 

Definition at line 157 of file obj2sm.C.

Referenced by add_tri().

template<class T>
bool any_valid_indices const T &  l,
int  i,
int  j,
int  k
[inline]
 

Definition at line 164 of file obj2sm.C.

int main int  argc,
char *  argv[]
 

Definition at line 257 of file obj2sm.C.

References err_msg(), Config::get_var_bool(), and read_obj().

istream& operator>> istream &  in,
vtn v
[inline]
 

Definition at line 136 of file obj2sm.C.

References vtn::_n, vtn::_t, and vtn::_v.

Referenced by REF_CLASS().

void read_face LMESH mesh,
CUVpt_list uvs,
istream &  in
[inline]
 

Definition at line 199 of file obj2sm.C.

References add_poly(), and ARRAY< T >::num().

static LMESHptr read_obj istream &  in  )  [static]
 

Definition at line 232 of file obj2sm.C.

References read_face(), read_texcoord(), read_vert(), and skip_line().

Referenced by main().

void read_texcoord UVpt_list uvs,
istream &  in
[inline]
 

Definition at line 114 of file obj2sm.C.

References skip_line().

Referenced by read_obj().

void read_vert LMESH mesh,
istream &  in
[inline]
 

Definition at line 104 of file obj2sm.C.

References LMESH::add_vertex(), and skip_line().

void skip_line istream &  in  )  [inline]
 

Definition at line 98 of file obj2sm.C.

References max().

Referenced by read_obj(), read_texcoord(), and read_vert().


Variable Documentation

bool debug = Config::get_var_bool("DEBUG_OBJ2SM",false,true) [static]
 

Definition at line 95 of file obj2sm.C.

Referenced by OBJReaderImpl::add_patches(), ControlFrameTexture::build_strip(), Patch::build_tri_strips(), BMESH::build_zcross_strips(), CamFocus::CamFocus(), Bface_list::can_unpush_layer(), BMESH::clean_patches(), GLSLShader::compile_shader(), Lpatch::cur_edges(), TEXTUREgl::declare_texture(), Bedge::demote(), GLUT_MANAGER::do_idle(), Bedge::do_swap(), WireframeTexture::draw(), GLSLShader::draw(), FlatShadeTexture::draw(), ControlFrameTexture::draw_level(), MeshGlobal::edit_level_changed(), TabletMultimode::enqueue_available_tablet_events(), TEXTURE::expand_image(), GEOM::find_cam_focus(), UVMapping::find_face(), LMESH::fit(), BMESH::fix_orientation(), TEXTUREgl::free_dl(), generate_samples(), JOTrender_mode::get(), get_subdiv_chain(), LMESH::get_subdiv_inputs(), UVdata::get_uv(), BMESH::get_weak_edges(), GLSLNormalShader::GLSLNormalShader(), GLUT_MOUSE::GLUT_MOUSE(), HACK_mouse_right_button_up(), ICON2D::ICON2D(), GLSLShader::init(), GESTURE::is_circle(), Bface_list::is_connected(), GESTURE::is_ellipse(), GESTURE::is_small_circle(), GLSLShader::link_program(), TEXTUREgl::load_image(), GLSLShader::load_shader(), GLSLShader::load_shaders(), DISTRIB::load_stream(), TEXTUREgl::load_texture(), main(), mouse_motion_callback(), GEST_INT::move(), MSLDShader::MSLDShader(), normal_keydown_callback(), GEST_INT::notify(), BMESH::pick_face(), JOTrender_mode::put(), read_file(), Patch::read_stream(), Bface::redef2(), Bedge::redef2(), Bface::redefine(), DISTRIB::save_stream(), TEXTUREgl::set_image(), TEXTUREgl::set_texture(), OBJReaderImpl::set_vert_normals(), UVdata::split(), sps(), SimpleUVCalc::subdiv_val(), Bedge::swap_is_legal(), Bedge::swapable(), CamFocus::tick(), Animator::toggle_activation(), GESTURE::trim(), BMESH::try_collapse_edge(), GEST_INT::up(), LMESH::update_subdivision(), GESTURE::winding(), write_sm(), BMESH::~BMESH(), CamFocus::~CamFocus(), and GEL::~GEL().


Generated on Mon Sep 18 11:42:21 2006 for jot by  doxygen 1.4.4