We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果您需要的只是简单的东西,那么我可能会说您自己编写即可。如果您不需要移动相机,您可以假设许多计算为零,并且您可以执行以下操作来获取任何 3d 点的 2d 坐标:
这样做您可以简单地获取所有 3d 点组成多边形,并使用 2d 点作为 SVG 图元。您必须处理的棘手部分是隐藏的表面去除,但这并不太难。阴影将是您真正的问题,但也许您可以使用渐变来模拟光线。
If all you need is something simple then I might say just write it yourself. If you don't need to move the camera you can assume a lot of the calculations zero out, and you can just do the following to get the 2d coordinate for any 3d point:
Doing that you can just simple take all of the 3d points that make up your polygon, and use the 2d points as your SVG primitive. The tricky part you're going to have to deal with is hidden surface removal, but that's not too hard. Shading is going to be your real problem, but maybe you can play around with gradients to emulate light.
看看 JFreeChart。查看 Batik 将其保存为 SVG
Have a look at JFreeChart. Have a look at Batik for saving it to SVG