图形学中的裁剪算法。其中有矩形裁剪,和凸多边形裁剪。-Graphics cutting algorithm. These rectangular cutting, and cutting convex polygon. 下载
1. 做一个集成的图形界面的程序,可调用每一次作业子程序。 2. 调用画点的函数,用DDA、中点算法画直线和中点算法及正负法画圆和抛物线。 3. 交互式的二维直线求交:如果存在交点,用实心圆显示交点,并用文字显示其坐标。 4. 用动画实现二维图形变换的各种算法,实现对指定形体的平移、旋转和缩放。(包括自行车行走和绕固定点旋转的自旋转物体动画。) 5. 线段裁剪和多边形裁剪算法的动画演示实现。(两种线段裁剪算法和H-S多边形逐边裁剪算法)多边形裁剪算法的动画演示要求先画出一个封闭的多边形,再画矩形的裁剪窗口,然后选择裁剪按钮(或命令),按下“上边裁剪”按钮(或执行“上边裁剪”命令),多边形相对裁剪窗口的上边进行裁剪,显示上边裁剪后的多边形,依此进行其它各边裁剪。 6. 两种扫描多边形扫描转换算法实现(扫描线算法为必做,基于求余运算的边缘填充和边标志算法任选一种); 7. 4连通区域的递归种子填充算法,和扫描线种子填充算法,要求种子点(x,y)可交互输入)。 8. 简单三维图形系统:凸多面体的建模、透视投影,隐藏面的消除及基本图形变换(平移、旋转、缩放)。 9. 交互式Bezier曲线的输入绘制程序实现 -1. So an integrated graphical interface procedures, which call for each operation subroutine. 2. Calling the painting point function, with DDA, the midpoint algorithm painting line and the midpoint algorithm and France Circle and the positive and negative parabola. 3. Interactive 2D linear intersection : If there intersection with a solid circle indicates Nodal and writing to demonstrate its coordinates. 4. Using 2D animation graphics transform algorithms to achieve the specified physical translation, rotation and scaling. (Including walking and cycling around the fixed point of rotating objects from the rotating animation.) 5. Line cutting and polygon clipping algorithm to achieve the animation demo. (Two segments cutting algorithm and H-S-by-side polygon clipping algorithm) polygon clipp 下载
我的程序是用C语言编的一个画图软件,满足以下几点: 用某种方法实现圆的生成算法。 实现橡皮筋直线、圆、矩形。 实现多边形裁剪。 实现基本几何变换(平移、旋转、缩放)。 实现Bezier曲线或B样条曲线。 最终呈现的结果是一个小型的交互式图形系统,用界面把所有功能串连起来。-the procedures I used the C language is part of a drawing software to meet the following points : the use of a certain method of generating algorithm round. Achieving rubber-band linear, circular and rectangular. Achieving polygon clipping. To achieve basic geometry transformation (translation, rotation, zoom). Achieving Bezier curve or B-spline curves. The final results show is a small interactive graphics system, with all the functional interface to link up. 下载
程序的功能: 一、用两种不同算法(DDA法和中点法)画任意直线,输入方式有鼠标取点点法,和对话框输入直线端点法。直线颜色在画线前任意选取。 二、直线的属性控制。可以从对话框中任意输入线宽画直线。还有画虚线的功能,你可以输入虚线中实线部分的长度和空白间隔的长度来画虚线。 三、用两种算法(中点法和正负法)画任意圆。 四、画任意椭圆。画椭圆时限任意取两点确定一矩形,由该矩形确定椭圆的大小。 五、多边形填充。用鼠标取点画任意多边形,可选取任意颜色去填充多边形区域。 六、矩形填充。用鼠标任取两点确定矩形区域,选取任意颜色去填充。 七、直线裁剪。有两种算法实现这一功能,梁友栋法和编码法。先用鼠标画一直线,然后再取两点确定一矩形裁剪框,点击一下右键,裁剪成功。 八、多边形裁剪。先用鼠标取点画一任意多边形,点击右键后继续取两点确定裁剪矩形框,在点击一次右键裁剪执行。 九、弹球。 -procedures functions : one, using two different algorithms (DDA law and midpoint) painting arbitrary line, input from a little mouse, and the dialog box input linear endpoint law. Linear color line drawing in the former arbitrary selection. Two straight attributes. From the dialog box indiscriminate importation linewidth linear paintings. The paintings are dotted line function, you can enter dotted line which is part of the length and spacing of the gap length to paint a dotted line. And, third, using two algorithms (the midpoint of law and the positive and negative) painting arbitrary round. Four paintings arbitrary elliptic. Elliptic painting from 2:00 arbitrary time limit to determine a rectangle, rectangle determined by the size of the ellipse. 5, polygon filling. Dotted with the mouse 下载
delphi 汉字 转 unicode码 svm分类器源码 fpga实现串行解串器 vc图片显示 放大 长整数减法 at91sam7 最常用的排序算法 asn.1 source code dos 多任务 来电显示 程序 日文汉字区位码 avr spi example 组广播 源程序 eliscpe piview注册机 计算hurst指数程序 upnp source code orl人脸库 计算机并口研究 mp3编码解码程序 matlab script kalman filter 并行计算 源码 de2 lcd 编写ftp上传下载工具 思路传说辅助外挂 markov chain monte carlo matlab java chinese chess pkzip document 指纹识别 matlab 手写数字识别软件 vc 分析音频 条件随机场 vc 图形菜单 uart编程 ks0107的12864程序 图像处理 matlab函数 opengl camera qfdtd90 s3c2410 串口 换256色 这样用c vc 并行计算 交点值 matlab 程序 mschart使用方法 用processing做的小游戏 最速下降法程序matlab 十进制转十六进制c dhcp代码c语言 优秀 高等数学 ppt 简单点的c编写的小游戏代码