vcglib/apps/trimeshinfo/defs.h

54 lines
2.5 KiB
C
Raw Normal View History

2005-12-12 11:14:53 +01:00
// -----------------------------------------------------------------------------------------------
2005-01-17 19:20:33 +01:00
#ifndef _DEFS_H
#define _DEFS_H
// -----------------------------------------------------------------------------------------------
2005-12-12 11:14:53 +01:00
// command line parameters
#define CMD_LINE_ARG_HIST 'H'
#define CMD_LINE_ARG_VERTEX_SAMPLE 'V'
#define CMD_LINE_ARG_EDGE_SAMPLE 'E'
#define CMD_LINE_ARG_FACE_SAMPLE 'F'
#define CMD_LINE_ARG_SAMPLE_TYPE 'S'
#define CMD_LINE_ARG_MONTECARLO_SAMPLING 'M'
#define CMD_LINE_ARG_SUBDIVISION_SAMPLING 'S'
#define CMD_LINE_ARG_SIMILAR_TRIANGLES_SAMPLING 'T'
#define CMD_LINE_ARG_N_SAMPLES 'N'
#define CMD_LINE_ARG_SAMPLES_PER_AREA_UNIT 'A'
#define CMD_LINE_ARG_SAVE_DISPLACEMENT 'O'
#define CMD_LINE_ARG_SAVE_ERROR_AS_COLOUR 'C'
2005-01-17 19:20:33 +01:00
// error messages
2005-12-13 16:45:51 +01:00
#define MSG_ERR_N_ARGS " Usage:\n\n" \
2005-12-21 14:37:14 +01:00
" trimeshinfo <mesh> [options]\n\n" \
2005-12-13 16:45:51 +01:00
" Options:\n\n" \
" -q Quiet (disable verbose mode that is enabled by default)\n" \
2005-12-12 12:26:54 +01:00
" -x Enable XML output\n" \
2005-12-21 15:46:46 +01:00
" -h Enable HTML output\n" \
" -s <filename> Save the clean mesh\n\n"
2005-12-12 11:14:53 +01:00
2005-01-17 19:20:33 +01:00
#define MSG_ERR_MESH_LOAD "error loading the input meshes.\n"
#define MSG_ERR_INVALID_OPTION "unable to parse option '%s'\n"
2005-12-12 11:14:53 +01:00
#define MSG_ERR_FILE_OPEN "unable to open the output file.'n"
#define MSG_ERR_UNKNOWN_FORMAT "unknown file format '%s'.\n"
2005-01-17 19:20:33 +01:00
2005-12-12 11:14:53 +01:00
// global constants
#define NO_SAMPLES_PER_FACE 10
#define N_SAMPLES_EDGE_TO_FACE_RATIO 0.1
#define BBOX_FACTOR 0.1
2005-12-14 13:16:13 +01:00
#define INFLATE_PERCENTAGE 0.02
#define MIN_SIZE 125 /* 125 = 5^3 */
2005-12-12 11:14:53 +01:00
#define N_HIST_BINS 256
#define PRINT_EVERY_N_ELEMENTS 1000
#define FILE_EXT_SMF "smf"
#define FILE_EXT_PLY "ply"
// strings
#define STR_HIST_FILENAME_DEFAULT "hist.txt"
#define STR_NEW_MESH_FILENAME_DEFAULT "error.ply"
#define STR_NEW_MESH_FILENAME_DEFAULT_2 "error_colour.ply"
// -----------------------------------------------------------------------------------------------
2005-01-17 19:20:33 +01:00
#endif
// -----------------------------------------------------------------------------------------------