Structure DispInfo
Below is the display information structure. This structure holds the information describing 3ds max's current system of measurement. This includes the type of units used, how they are displayed and any custom unit name and scale.
typedef struct {
int dispType;
Unit Display Type. One of the following values:
UNITDISP_GENERIC
UNITDISP_METRIC
UNITDISP_US
UNITDISP_CUSTOM
int metricDisp;
Metric display option. One of the following values:
UNIT_METRIC_DISP_MM
UNIT_METRIC_DISP_CM
UNIT_METRIC_DISP_M
UNIT_METRIC_DISP_KM
int usDisp;
US display option. One of the following values:
UNIT_US_DISP_FRAC_IN
UNIT_US_DISP_DEC_IN
UNIT_US_DISP_FRAC_FT
UNIT_US_DISP_DEC_FT
UNIT_US_DISP_FT_FRAC_IN
UNIT_US_DISP_FT_DEC_IN
int usFrac;
US fraction option. One of the following values:
UNIT_FRAC_1_1
UNIT_FRAC_1_2
UNIT_FRAC_1_4
UNIT_FRAC_1_8
UNIT_FRAC_1_10
UNIT_FRAC_1_16
UNIT_FRAC_1_32
UNIT_FRAC_1_64
UNIT_FRAC_1_100
const TCHAR *customName;
Custom unit name.
float customValue;
Custom unit value.
int customUnit;
Custom unit reference.
Note: The three custom settings above are related as follows: If for example the customName is set to "FL" for furlongs (which is equal to 660 feet), customValue should equal 660.0 and customUnit should equal UNITS_FEET.
} DispInfo;