图形学
Snnopy#8809
这个作者很懒,什么都没留下…
展开
-
B样条的C++实现
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//去除控制台窗口#include <iostream>#include <gl/GLUT.h>#include <map>#include <vector>#include<cmath>#...原创 2019-10-30 14:57:25 · 1704 阅读 · 1 评论 -
Bezier
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//去除控制台窗口#include <iostream>#include <gl/GLUT.h>#include <map>#include <vector>#include<cmath>#...原创 2019-10-30 14:56:37 · 389 阅读 · 0 评论 -
三角形窗口剪直线
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//去除控制台窗口#include <iostream>#include <gl/GLUT.h>#include <map>#include <vector>#include <list>#...原创 2019-10-30 14:55:24 · 296 阅读 · 0 评论 -
矩形窗口剪多边形
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//去除控制台窗口#include <iostream>#include <gl/GLUT.h>#include <map>#include <vector>#include <list>#...原创 2019-10-30 14:53:58 · 471 阅读 · 0 评论 -
Liang-Barsky裁剪算法
//#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//去除控制台窗口#include <iostream>#include <gl/GLUT.h>#include <map>#include <vector>#include<cmath>...原创 2019-10-30 14:49:06 · 1793 阅读 · 0 评论 -
Bresenham算法画直线
#include <iostream>#include<gl/glut.h>#include<algorithm>using namespace std;float window_size = 800;int numbers = 20;int xs = -115, ys =-119, xe = 35 ,ye =59;void InitEnviro...原创 2019-10-30 14:48:02 · 1954 阅读 · 0 评论 -
有圆有方
#include<gl/glut.h>#include<math.h>#include <stdlib.h>const double PI = 3.14159265357f;const double R = 0.57f;double red[] = { 1,0,0 };double blue[] = { 0,0,1 };double green[]...原创 2019-10-30 14:45:33 · 230 阅读 · 0 评论 -
图形学完结撒花
原创 2019-10-30 14:42:44 · 151 阅读 · 0 评论