绘制立体二维多边形的好算法? [英] Good algorithm for drawing solid 2-dimensional polygons?

查看:19
本文介绍了绘制立体二维多边形的好算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在内存中绘制纯色(如在单一纯色中——无纹理映射)2D 多边形的最简单(也是最简单的,尽管这是主观的)算法是什么?最有效的方法是什么?

What is the simplest (and easiest, although that's subjective) algorithm for drawing solid (as in a single, solid color--no texture mapping) 2D polygons in memory? What is the most efficient method?

我对使用 GPU 或任何渲染方法不感兴趣,因为我的程序的输出不会显示在屏幕上.

I am not interested in using the GPU or any rendering method, as the output of my program will not be to the screen.

推荐答案

多边形填充教学工具将向您展示一个非常好的简单算法,用于绘制任何复杂的填充多边形.

The Polygon Fill Teaching Tool will show you a very nice, simple algorithm for drawing filled polygons of any complexity.

我已经为嵌入式图形实现了它,它实际上是一个简洁(而且有趣!)的算法.

I've implemented it for embedded graphics, and it's actually a neat (and fun!) algorithm.

-亚当

这篇关于绘制立体二维多边形的好算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆