www.pudn.com > Poly.rar > datadef.h
#includeusing namespace std; #ifndef _DATA_DEF_ #define _DATA_DEF_ #define WM_MESSAGE_NO1 WM_USER+1 struct point_3d { float x,y,z; }; struct point_2d { float x,y; }; typedef list
listPoint_3d; struct line_3d{ int start_point; int end_point; }; typedef list listLine_record; // 记录边的链表 typedef int listLine_No; // 记录边的号码 struct face_3d{ int nLine_number; listLine_No listLIneNo[20]; // 三维面的表示 }; typedef list listFace_model; // 记录三维面的链表 struct model_3d { CRect model_rect; listPoint_3d model_point; listLine_record model_line; listFace_model model_face; }; typedef list listModel; // 模型链表 enum PYRAMID{ PYRAMID_1, PYRAMID_2, PYRAMID_3, PYRAMID_4 }; struct PYRAMIDStr { int row; int col; long offset; }; struct PYRHEADER { int type; int grade; long filelength; }; #define PYRAMIDSUM 3 struct strUNDO { CSize range; int posx,posy; float zoom; }; #endif