Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Enumerations | Functions | Variables
ply2tri.cxx File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "vtkCellArray.h"
#include "vtkCleanPolyData.h"
#include "vtkPLYReader.h"
#include "vtkPoints.h"
#include "vtkPolyData.h"
#include "vtkTriangleFilter.h"
#include "SimpleOpt.h"
#include "ply2tri.help"
+ Include dependency graph for ply2tri.cxx:

Go to the source code of this file.

Enumerations

enum  { OPT_HELP , OPT_PRECISION }
 

Functions

std::ofstream fout ("/dev/null")
 
int error (int val)
 
void set_cout (std::streambuf *buf)
 
int main (int argc, char *argv[])
 

Variables

std::istringstream in
 
int n_pt
 
int n_tri
 
std::streambuf * on = std::cout.rdbuf()
 
std::streambuf * off = fout.rdbuf()
 
CSimpleOpt::SOption g_rgOptions []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OPT_HELP 
OPT_PRECISION 

Definition at line 30 of file ply2tri.cxx.

Function Documentation

◆ error()

int error ( int  val)

Definition at line 50 of file ply2tri.cxx.

+ Here is the caller graph for this function:

◆ fout()

std::ofstream fout ( "/dev/null"  )

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 61 of file ply2tri.cxx.

+ Here is the call graph for this function:

◆ set_cout()

void set_cout ( std::streambuf *  buf)

Definition at line 56 of file ply2tri.cxx.

+ Here is the caller graph for this function:

Variable Documentation

◆ g_rgOptions

CSimpleOpt::SOption g_rgOptions[]
Initial value:
= {
{ OPT_PRECISION, _T("-p"), SO_REQ_SEP },
{ OPT_PRECISION, _T("--precision"), SO_REQ_SEP },
{ OPT_HELP, _T("-?"), SO_NONE },
{ OPT_HELP, _T("-h"), SO_NONE },
{ OPT_HELP, _T("--help"), SO_NONE },
SO_END_OF_OPTIONS
}
@ OPT_PRECISION
Definition: ply2tri.cxx:30
@ OPT_HELP
Definition: ply2tri.cxx:30

Definition at line 41 of file ply2tri.cxx.

◆ in

std::istringstream in

Definition at line 32 of file ply2tri.cxx.

◆ n_pt

int n_pt

Definition at line 33 of file ply2tri.cxx.

◆ n_tri

int n_tri

Definition at line 34 of file ply2tri.cxx.

◆ off

std::streambuf* off = fout.rdbuf()

Definition at line 38 of file ply2tri.cxx.

◆ on

std::streambuf* on = std::cout.rdbuf()

Definition at line 36 of file ply2tri.cxx.