Giter Site home page Giter Site logo

xxmy7 / computer_graphics_practice Goto Github PK

View Code? Open in Web Editor NEW
37.0 1.0 3.0 10.2 MB

武大遥感院2021年计算机图形学实习,包括图形生成:DDA直线,中点直线,Bresenham圆,正负法圆,Bezier曲线,B样条曲线,Hermite曲线;图形变化:平移,旋转,缩放,对称;图形填充:扫描线填充,边缘填充,种子填充;图形裁剪:Cohen-Sutherland算法,中点分割法,梁友栋-Barsky裁剪,多边形裁剪,圆的裁剪;设置颜色和字符;凸多面体的消隐(立方体和三棱锥),漫反射光照模型

C++ 77.94% C 2.69% CMake 3.45% Shell 0.20% Cuda 1.39% Fortran 14.09% Python 0.09% JavaScript 0.09% CSS 0.06%

computer_graphics_practice's Introduction

cg_practice

武大遥感院2021年6月计算机图形学实习内容

没错,就是那ex的MFC编程

pdf为其中遇到的一些问题及解决办法。

实习要求:

编写计算机图形学图形处理程序,该程序包括:

1、画直线、画多边形、画圆、画字符

2、对多边形进行填充

3、图形裁剪

4、图形的几何变换

5、三维图形的消隐(选做)

6、光照(选做)

该仓库实现了以下菜单内容:

图形生成:DDA直线,中点直线,Bresenham圆,正负法圆,Bezier曲线,B样条曲线,Hermite曲线

图形变化:平移,旋转,缩放,对称

图形填充:扫描线填充,边缘填充,种子填充

图形裁剪:Cohen-Sutherland算法,中点分割法,梁友栋-Barsky裁剪,多边形裁剪,圆的裁剪

设置颜色和字符

凸多面体的消隐(立方体和三棱锥),漫反射光照模型

感谢wwl实习期间的帮助!实习和考试复习一起搞太搞人了。


后面有时间再补上操作说明,可以直接运行Debug里的exe文件来看效果,Eigen可能需要重新加入到项目里才能运行。

computer_graphics_practice's People

Contributors

xxmy7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

computer_graphics_practice's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.