Click here to Skip to main content
15,895,656 members
Articles / Desktop Programming / MFC

Basic Curves And Surfaces Modeler

Rate me:
Please Sign up or sign in to vote.
4.17/5 (40 votes)
18 Apr 2012CPOL3 min read 248.5K   16.4K   117  
A basic demo of modeling curves and surfaces in OpenGL.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by CadSurf.rc
//
#define IDR_MANIFEST                    1
#define IDD_ABOUTBOX                    100
#define ID_INDICATOR_COORD              101
#define IDB_SPLASH                      102
#define ID_INDICATOR_DATE               103
#define IDP_SOCKETS_INIT_FAILED         104
#define ID_INDICATOR_TIME               106
#define IDR_MAINFRAME                   128
#define IDR_CADSURTYPE                  129
#define IDR_TB_GEOM                     130
#define IDR_CHILDFRAME                  132
#define IDR_TB_TRN                      135
#define IDD_MATLDLG                     137
#define IDD_GRID                        138
#define IDB_SMALLSPLASH                 143
#define IDC_ALUM                        1000
#define IDC_BRASS                       1001
#define IDC_PBRONZE                     1002
#define IDC_EDIT1                       1002
#define IDC_CHROME                      1003
#define IDC_EDIT2                       1003
#define IDC_PCOPPER                     1004
#define IDC_EDIT3                       1004
#define IDC_GOLD                        1005
#define IDC_SPIN1                       1005
#define IDC_PEWTER                      1006
#define IDC_SPIN2                       1006
#define IDC_SILVER                      1007
#define IDC_SPIN3                       1007
#define IDC_STEEL                       1008
#define IDC_EDIT4                       1008
#define IDC_EMERALD                     1009
#define IDC_SPIN4                       1009
#define IDC_OBSIDIAN                    1010
#define IDC_EDIT5                       1010
#define IDC_PEARL                       1011
#define IDC_SPIN5                       1011
#define IDC_TURQUOISE                   1012
#define IDC_BPLASTIC                    1013
#define IDC_BRONZE                      1014
#define IDC_COPPER                      1015
#define IDC_PGOLD                       1016
#define IDC_PSILVER                     1017
#define IDC_JADE                        1018
#define IDC_RUBY                        1019
#define IDC_BRUBBER                     1020
#define ID_POINTS                       32771
#define ID_LINES                        32772
#define ID_CIRCLES                      32774
#define ID_ELLIPSE                      32775
#define ID_PARABOLA                     32776
#define ID_HYPERBOLA                    32778
#define ID_BEZIER                       32779
#define ID_BSPLINE                      32782
#define ID_EXTSURF                      32783
#define ID_REVSURF                      32784
#define ID_RULEDSURF                    32785
#define ID_TOPVIEW                      32786
#define ID_BOTTOMVIEW                   32787
#define ID_FRONTVIEW                    32788
#define ID_BACKVIEW                     32789
#define ID_LEFTVIEW                     32790
#define ID_RIGHTVIEW                    32791
#define ID_AXONVIEW                     32793
#define ID_FITALL                       32794
#define ID_ZOONWIN                      32795
#define ID_RESETVIEW                    32796
#define ID_ZOOMWIN                      32797
#define ID_PLANE                        32798
#define ID_CYLINDER                     32799
#define ID_CONE                         32800
#define ID_SPHERE                       32801
#define ID_TORUS                        32802
#define ID_PIPE                         32803
#define ID_TRANSLATE                    32804
#define ID_ROTATE                       32805
#define ID_SCALE                        32806
#define ID_REFLECT                      32807
#define ID_DISPLAYMODE                  32808
#define ID_EDIT_DELETEALL               32809
#define ID_VIEW_DISPLAYALL              32810
#define ID_VIEW_ERASEALL                32811
#define ID_PREFERENCES_DISPLAYMODE_SHADED 32812
#define ID_PREFERENCES_DISPLAYMODE_WIREFRAME 32813
#define ID_PREFERENCES_MATERIAL         32814
#define ID_VIEW_DISPLAYSELECTED         32815
#define ID_VIEW_ERASESELECTED           32816
#define ID_PREFERENCES_COLOR            32817
#define ID_PREFERENCES_BACKGROUNDCOLOR  32818
#define ID_EDIT_DELETESELECTED          32819
#define ID_HLREMOVED                    32820
#define ID_PREFERENCES_DISPLAYMODE_HLREMOVED 32821
#define ID_ANTIALIAS                    32822
#define ID_PREFERENCES_LINESTYLE_SOLID  32824
#define ID_PREFERENCES_LINESTYLE_DOTTED 32825
#define ID_PREFERENCES_LINESTYLE_DASHED 32826
#define ID_PREFERENCES_LINESTYLE_DASHEDDOTTED 32827
#define ID_PREFERENCES_GRID_ON          32828
#define ID_PREFERENCES_GRID_SETTINGS    32830
#define ID_MULTIFOUR                    32831
#define ID_SNAPSHOT                     32832
#define ID_HELIX                        32836
#define ID_OFFSETSURFACE                32837
#define ID_OFFSETCURVE                  32838
#define ID_PROJECTION_TYPE              32839
#define ID_BUTTON32840                  32840
#define ID_USERSURFACE                  32841

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        144
#define _APS_NEXT_COMMAND_VALUE         32842
#define _APS_NEXT_CONTROL_VALUE         1006
#define _APS_NEXT_SYMED_VALUE           109
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager Mahindra & Mahindra
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Comments and Discussions