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 "\nUsage: "\
00023 "trimeshinfo filename \n"
00024
00025 #define MSG_ERR_MESH_LOAD "error loading the input meshes.\n"
00026 #define MSG_ERR_INVALID_OPTION "unable to parse option '%s'\n"
00027 #define MSG_ERR_FILE_OPEN "unable to open the output file.'n"
00028 #define MSG_ERR_UNKNOWN_FORMAT "unknown file format '%s'.\n"
00029
00030
00031 #define NO_SAMPLES_PER_FACE 10
00032 #define N_SAMPLES_EDGE_TO_FACE_RATIO 0.1
00033 #define BBOX_FACTOR 0.1
00034 #define INFLATE_PERCENTAGE 0.02
00035 #define MIN_SIZE 125
00036 #define N_HIST_BINS 256
00037 #define PRINT_EVERY_N_ELEMENTS 1000
00038 #define FILE_EXT_SMF "smf"
00039 #define FILE_EXT_PLY "ply"
00040
00041
00042 #define STR_HIST_FILENAME_DEFAULT "hist.txt"
00043 #define STR_NEW_MESH_FILENAME_DEFAULT "error.ply"
00044 #define STR_NEW_MESH_FILENAME_DEFAULT_2 "error_colour.ply"
00045
00046
00047 #endif
00048