3D and 2D homogeneous space line clipping using cohen sudherland algorithm:line clipping using cohen sudherland algorithm-matlab开发

时间:2021-05-30 06:09:11
【文件属性】:
文件名称:3D and 2D homogeneous space line clipping using cohen sudherland algorithm:line clipping using cohen sudherland algorithm-matlab开发
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-30 06:09:11
matlab 在图形管线中,裁剪是在点与透视矩阵相乘之后进行的。 这称为剪辑空间。 算法的输入是裁剪空间中齐次坐标 (x, y, z, w) 中线的端点。 如果线被剪裁,则输出被剪裁线(修改的线端点)。 如果行被移除,则 is_removed 设置为 1。 有以下三种情况: 1. 线未修改(当它在视锥内时)(is_clipped = 0,is_removed =0) 2.线被一个或多个视锥平面剪裁(is_clipped = 1,is_removed = 0) 3. 线在视锥外(is_removed = 1)
【文件预览】:
line_clipping_cohen_sudherland.zip

网友评论