Click here to Skip to main content
15,314,965 members
Articles / Desktop Programming / MFC
Posted 12 Sep 2006


209 bookmarked

SolidGraph CAD System

Rate me:
Please Sign up or sign in to vote.
4.97/5 (78 votes)
12 Sep 20062 min read
A SolidGraph CAD system source code.

SolidGraph ScreenShort


SolidGraph is a full-featured system for 3D modeling of highly complex geometric objects. Sooner or later, everyone who works with computer graphics feels necessary to write his own editor. We want to show you one of the ways of writing a module application where the functions for creating new objects are distributed among plug-ins.

The project has been compiled only with the following compilers: Microsoft Visual C++ 7.1, and Microsoft Visual C++ 8.0.

Points of Interest

Who may be interested in this article:

  • Everyone who is beginning to work with OpenGL-based computer graphics.
  • Everyone who is interested in creating his own CAD system and geometric modeling software.
  • Software developers writing in MFC because this application contains a lot of ways to solve various problems related to MFC (for example, creating 32-bit toolbars, loading toolbars and strings from plug-ins, the TreeControl class, and much more).
  • Software developers who want to embed the LUA interpreter into their code.
  • Experienced software developers creating their own large systems.

In other words, it is for everyone :)

What can be interesting for you:

  • The GUI completely based on MFC and on some articles from CodeProject.
  • The way of creating a "MultiApp" application - an MDI application with several tabs, and a separate full-featured MDI application is behind each of them (the CAppTabManager class.
  • The method of distributing application features among plug-ins, loading these plug-ins, using dialog boxes, toolbars, and images from plug-ins.
  • Working with OpenGL - the gradient background class, the camera class, object linking, getting the object under the mouse pointer, work planes.
  • Working with LUA - initiating and creating your own classes for LUA.
  • A lot of new MFC control elements.
  • Creating an ActiveX control element using OpenGL (ArMax) with the help of MFC.
  • Creating an OpenGL material editor (MaterialsEditor).
  • You will also find the source code of plug-ins for creating 2D primitives, 3D primitives, Boolean operations, cinematic operations, and for creating surfaces and solids.
  • And a lot more :).

The SolidGraph system can be used as a full-featured editor for 3D models and for building photorealistic images. You can write your own plug-ins for it (taking existing plug-ins as examples).

The SolidGraph system is based on the sgCore library and is developed by the Geometros company as an example of a minimal CAD system that can be based on this library. Ask your questions at [].


We thank the authors of the libraries CxImage, LUA, CDiagramEditor, COptionTree.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

United States United States
No Biography provided

Comments and Discussions

QuestionTopological associations Pin
Naresh9116-Feb-16 6:57
MemberNaresh9116-Feb-16 6:57 
GeneralRe: Topological associations Pin
PIEBALDconsult6-Feb-16 7:00
professionalPIEBALDconsult6-Feb-16 7:00 
QuestionDo you know how to zoom and pan in C# by using the SgCore Lib? Pin
aladingking2-Jul-15 22:07
Memberaladingking2-Jul-15 22:07 
QuestionI Want To Try This Pin
C-P-User-326-Apr-13 4:48
MemberC-P-User-326-Apr-13 4:48 
QuestionSolidgraph for MSVC2010 Pin
Geometros9-Nov-11 21:57
MemberGeometros9-Nov-11 21:57 
GeneralMy vote of 5 Pin
Stadionus28-Oct-11 2:42
MemberStadionus28-Oct-11 2:42 
GeneralMy vote of 1 Pin
AndreRovani26-Sep-11 14:43
MemberAndreRovani26-Sep-11 14:43 
Generalother software shoulb be used? Pin
Jack1 yan1-May-11 18:26
MemberJack1 yan1-May-11 18:26 
QuestionHow many data can I add? Pin
zahra nessri27-Jul-10 21:21
Memberzahra nessri27-Jul-10 21:21 
GeneralWell done! - Very proffesional project Pin
taminha28-May-10 20:17
Membertaminha28-May-10 20:17 
Questionhow can create tetrahedron,tri-prism primitive using SolidGraph? Pin
valanicy8-Dec-09 2:44
Membervalanicy8-Dec-09 2:44 
GeneralIs it compatible with Vista OS Pin
Ashish Ranjan Mishra26-Nov-09 6:54
MemberAshish Ranjan Mishra26-Nov-09 6:54 
GeneralCare it for a long time! Great Work! Pin
kanbang8-Oct-09 23:48
Memberkanbang8-Oct-09 23:48 
GeneralI have a question Pin
nik19519-Sep-09 3:22
Membernik19519-Sep-09 3:22 
GeneralRe: I have a question Pin
africans_chen19-Nov-09 21:45
Memberafricans_chen19-Nov-09 21:45 
QuestionsgCore updates? Pin
alfa__13-Nov-08 2:38
Memberalfa__13-Nov-08 2:38 
Questiondoes the Honker run on Vista? Pin
stockmann30-Aug-08 7:24
Memberstockmann30-Aug-08 7:24 
QuestionI need SolidGraph for Windows ME ! Pin
fsscod1-Oct-07 6:10
Memberfsscod1-Oct-07 6:10 
AnswerRe: I need SolidGraph for Windows ME ! Pin
Geometros1-Oct-07 21:29
MemberGeometros1-Oct-07 21:29 
GeneralExcellent Job Pin
Yogesh Dhakad4-Sep-07 0:28
MemberYogesh Dhakad4-Sep-07 0:28 
GeneralRe: Excellent Job Pin
Geometros1-Oct-07 21:30
MemberGeometros1-Oct-07 21:30 
Questionhow to solve these errors when debug? Pin
cavy0045-Jan-07 21:38
Membercavy0045-Jan-07 21:38 
AnswerRe: how to solve these errors when debug? Pin
xiaofei78343-May-15 1:26
Memberxiaofei78343-May-15 1:26 
QuestionsgCore?? Pin
michaelleetw16-Nov-06 20:28
Membermichaelleetw16-Nov-06 20:28 
Questionany user forum? Pin
metrowerks12-Oct-06 3:02
Membermetrowerks12-Oct-06 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.