00001
00002 #ifndef _DEFS_H
00003 #define _DEFS_H
00004
00005
00006
00007 #define CMD_LINE_ARG_HIST 'H'
00008 #define CMD_LINE_ARG_VERTEX_SAMPLE 'V'
00009 #define CMD_LINE_ARG_EDGE_SAMPLE 'E'
00010 #define CMD_LINE_ARG_FACE_SAMPLE 'F'
00011 #define CMD_LINE_ARG_SAMPLE_TYPE 'S'
00012 #define CMD_LINE_ARG_MONTECARLO_SAMPLING 'M'
00013 #define CMD_LINE_ARG_SUBDIVISION_SAMPLING 'S'
00014 #define CMD_LINE_ARG_SIMILAR_TRIANGLES_SAMPLING 'T'
00015 #define CMD_LINE_ARG_N_SAMPLES 'N'
00016 #define CMD_LINE_ARG_SAMPLES_PER_AREA_UNIT 'A'
00017 #define CMD_LINE_ARG_SAVE_DISPLACEMENT 'O'
00018 #define CMD_LINE_ARG_SAVE_ERROR_AS_COLOUR 'C'
00019
00020
00021
00022 #define MSG_ERR_N_ARGS " Usage:\n\n" \
00023 " trimeshinfo <mesh> [options]\n\n" \
00024 " Options:\n\n" \
00025 " -q Quiet (disable verbose mode that is enabled by default)\n" \
00026 " -x Enable XML output\n" \
00027 " -h Enable HTML output\n" \
00028 " -s <filename> Save the clean mesh\n\n"
00029
00030 #define MSG_ERR_MESH_LOAD "error loading the input meshes.\n"
00031 #define MSG_ERR_INVALID_OPTION "unable to parse option '%s'\n"
00032 #define MSG_ERR_FILE_OPEN "unable to open the output file.'n"
00033 #define MSG_ERR_UNKNOWN_FORMAT "unknown file format '%s'.\n"
00034
00035
00036 #define NO_SAMPLES_PER_FACE 10
00037 #define N_SAMPLES_EDGE_TO_FACE_RATIO 0.1
00038 #define BBOX_FACTOR 0.1
00039 #define INFLATE_PERCENTAGE 0.02
00040 #define MIN_SIZE 125
00041 #define N_HIST_BINS 256
00042 #define PRINT_EVERY_N_ELEMENTS 1000
00043 #define FILE_EXT_SMF "smf"
00044 #define FILE_EXT_PLY "ply"
00045
00046
00047 #define STR_HIST_FILENAME_DEFAULT "hist.txt"
00048 #define STR_NEW_MESH_FILENAME_DEFAULT "error.ply"
00049 #define STR_NEW_MESH_FILENAME_DEFAULT_2 "error_colour.ply"
00050
00051
00052 #endif
00053