开发者

How can I draw points in WPF 3D?

WPF's basic unit of representation for 3D is a mesh of triangles. However, I want to be able to represent points, e.g. for a scatterplot. What's the best way to do this?

I've been experimenting with the ScreenSpaceLines3D class from the 3DTools package on CodePlex, trying different ways to get it to 开发者_如何转开发draw just a single square instead of a full line, but the visual appearance is pretty poor.

[Clarification: I could draw glyphs, as Reed suggests below, but in order to conserve my triangle budget I'd prefer nothing fancy. I've been trying squares, but I'd prefer something more point-like in appearance. I wonder if I could determine what the "minimum" possible sized square would be?]

Any suggestions?

-mpg


Billboarding (which is what ScreenSpaceLines3D does) is one approach. Instead of a square, you can make a circle (or hex, etc), which will improve the appearance quite a bit.

Another option is to use a glyph of some form at each point - for example, place a small (coarse) sphere at each point location.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜