Functions
contrib/brl/bbas/imesh/imesh_fileio.cxx File Reference
#include "imesh_fileio.h"
#include <vcl_fstream.h>
#include <vcl_sstream.h>
#include <vcl_limits.h>
#include <vul/vul_file.h>
#include <vgl/vgl_point_2d.h>

Go to the source code of this file.

Functions

bool imesh_read (const vcl_string &filename, imesh_mesh &mesh)
 Read a mesh from a file, determine type from extension.
bool imesh_read_ply2 (const vcl_string &filename, imesh_mesh &mesh)
 Read a mesh from a PLY2 file.
bool imesh_read_ply2 (vcl_istream &is, imesh_mesh &mesh)
 Read a mesh from a PLY2 stream.
bool imesh_read_ply (const vcl_string &filename, imesh_mesh &mesh)
 Read a mesh from a PLY2 file.
bool imesh_read_ply (vcl_istream &is, imesh_mesh &mesh)
 Read a mesh from a PLY2 stream.
void imesh_write_ply2 (const vcl_string &filename, const imesh_mesh &mesh)
 Write a mesh to a PLY2 file.
void imesh_write_ply2 (vcl_ostream &os, const imesh_mesh &mesh)
 Write a mesh to a PLY2 stream.
bool imesh_read_uv2 (const vcl_string &filename, imesh_mesh &mesh)
 Read texture coordinates from a UV2 file.
bool imesh_read_uv2 (vcl_istream &is, imesh_mesh &mesh)
 Read texture coordinates from a UV2 stream.
bool imesh_read_obj (const vcl_string &filename, imesh_mesh &mesh)
 Read a mesh from a wavefront OBJ file.
bool imesh_read_obj (vcl_istream &is, imesh_mesh &mesh)
 Read a mesh from a wavefront OBJ stream.
void imesh_write_obj (const vcl_string &filename, const imesh_mesh &mesh)
 Write a mesh to a wavefront OBJ file.
void imesh_write_obj (vcl_ostream &os, const imesh_mesh &mesh)
 Write a mesh to a wavefront OBJ stream.
void imesh_write_kml (vcl_ostream &os, const imesh_mesh &mesh)
 Write a mesh into a kml file.
void imesh_write_kml_collada (vcl_ostream &os, const imesh_mesh &mesh)
 Write a mesh into a kml collada file.
void imesh_write_vrml (vcl_ostream &os, const imesh_mesh &mesh)
 Write a mesh into a vrml file.

Detailed Description

Definition in file imesh_fileio.cxx.


Function Documentation

bool imesh_read ( const vcl_string &  filename,
imesh_mesh mesh 
)

Read a mesh from a file, determine type from extension.

Definition at line 14 of file imesh_fileio.cxx.

bool imesh_read_obj ( const vcl_string &  filename,
imesh_mesh mesh 
)

Read a mesh from a wavefront OBJ file.

Definition at line 175 of file imesh_fileio.cxx.

bool imesh_read_obj ( vcl_istream &  is,
imesh_mesh mesh 
)

Read a mesh from a wavefront OBJ stream.

Definition at line 185 of file imesh_fileio.cxx.

bool imesh_read_ply ( const vcl_string &  filename,
imesh_mesh mesh 
)

Read a mesh from a PLY2 file.

Read a mesh from a PLY file.

Definition at line 64 of file imesh_fileio.cxx.

bool imesh_read_ply ( vcl_istream &  is,
imesh_mesh mesh 
)

Read a mesh from a PLY2 stream.

Read a mesh from a PLY file.

Definition at line 74 of file imesh_fileio.cxx.

bool imesh_read_ply2 ( const vcl_string &  filename,
imesh_mesh mesh 
)

Read a mesh from a PLY2 file.

Definition at line 29 of file imesh_fileio.cxx.

bool imesh_read_ply2 ( vcl_istream &  is,
imesh_mesh mesh 
)

Read a mesh from a PLY2 stream.

Definition at line 39 of file imesh_fileio.cxx.

bool imesh_read_uv2 ( const vcl_string &  filename,
imesh_mesh mesh 
)

Read texture coordinates from a UV2 file.

Definition at line 146 of file imesh_fileio.cxx.

bool imesh_read_uv2 ( vcl_istream &  is,
imesh_mesh mesh 
)

Read texture coordinates from a UV2 stream.

Definition at line 156 of file imesh_fileio.cxx.

void imesh_write_kml ( vcl_ostream &  os,
const imesh_mesh mesh 
)

Write a mesh into a kml file.

Definition at line 374 of file imesh_fileio.cxx.

void imesh_write_kml_collada ( vcl_ostream &  os,
const imesh_mesh mesh 
)

Write a mesh into a kml collada file.

Definition at line 417 of file imesh_fileio.cxx.

void imesh_write_obj ( const vcl_string &  filename,
const imesh_mesh mesh 
)

Write a mesh to a wavefront OBJ file.

Definition at line 300 of file imesh_fileio.cxx.

void imesh_write_obj ( vcl_ostream &  os,
const imesh_mesh mesh 
)

Write a mesh to a wavefront OBJ stream.

Rotated about X because Y is up in wavefront (not Z)

Definition at line 310 of file imesh_fileio.cxx.

void imesh_write_ply2 ( const vcl_string &  filename,
const imesh_mesh mesh 
)

Write a mesh to a PLY2 file.

Definition at line 116 of file imesh_fileio.cxx.

void imesh_write_ply2 ( vcl_ostream &  os,
const imesh_mesh mesh 
)

Write a mesh to a PLY2 stream.

Definition at line 125 of file imesh_fileio.cxx.

void imesh_write_vrml ( vcl_ostream &  os,
const imesh_mesh mesh 
)

Write a mesh into a vrml file.

Definition at line 561 of file imesh_fileio.cxx.