NAME
map2code − PDElib mapping file to PDElib map_EnableMapping code
SYNOPSIS
map2code mapfile outputfile [table_name]
DESCRIPTION
map2code
Take a .map input file and convert the mapping calls into the PDElib function calls map_EnableMapping. For example:
/* Curve to Polyline */ "gdx_solid -> improved gdx_solid", MAP_PARAM, GMP_ADD_MISS_VERTICES, TRUE, MAP_PARAM, GMP_ADD_MISS_MODELCRV, TRUE, MODEL, 'gdx_outmodel', COMMIT;
will be translated to:
/* Curve to Polyline */
map_EnableMapping (MAP_NOOPT, table, "gdx_solid -> improved gdx_solid",
MAP_PARAM, GMP_ADD_MISS_VERTICES, PDX_TRUE, MAP_PARAM,
GMP_ADD_MISS_MODELCRV, MAP_COMMIT, MAP_END);
EXAMPLES
To generate a code file:
map2code test.map test.c
To change the name of the mapping table:
map2code test.map test.c new_table_name
OPTIONS
none
ENVIRONMENT VARIABLES
none