# STLViewer **Repository Path**: bigass1990/STLViewer ## Basic Information - **Project Name**: STLViewer - **Description**: 本项目是参考《Visual C++CAD 应用程序开发技术》做的OpenGL兼容模式的cad框架。 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # STLViewer #### 介绍 本项目是参考《Visual C++CAD 应用程序开发技术》做的OpenGL兼容模式的cad框架。 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### OpenGL 本程序中,Windows中使用OpenGL方式是使用Windows提供的一套“Wiggle”函数,用来作为OpenGL与Windows GDI的连接。不再使用GDI中的画笔、画刷等gdi对象,而是使用OpenGL的渲染场景/上下文(rendering context),通过与设备上下文关联,实现了与窗口的关联。 常规使用glut/freeglut管理窗口的OpenGL使用方式,在STLViewer\testopengl\文件夹下的例子中。 #### GeomKernel模块 cad系统的核心问题是对几何模型的管理和操作。几何模型可以具体到点、线、面、实体和部件。 包含一下几何对象类: CEntity:几何对象基本类,描述几何对象的共有属性。 CPart:高级几何模型类,描述应用程序中整个几何模型。 CSTLModel:几何模型类,描述由离散三角面片(STL格式)表示的实体。 CTripChip:三角面片对象类,描述三角面片。