绘图用Java 3D功能和点 [英] Plotting 3D function and points in Java

查看:597
本文介绍了绘图用Java 3D功能和点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的是一个函数曲线图在3D与表面上的一些问题。我怎样才能实现呢?

All I need is a function plot in 3D with some points on the surface. How can I achieve it?

一开始我尝试 jzy3d 但事实证明它是这样一个太多精力基本任务(尤其是因为jzy3d缺乏code的例子和依赖关系JOGL可能很麻烦)。所以,我想 Java的曲面图 和功能表面的一部分 - 它是完美的。但是,它可以添加(X,Y,Z)点..?我猜不会。在这种情况下,我可以用什么其他的库?

At first I tried jzy3d but it turned out it's too much effort for such a basic task (especially because jzy3d lacks code samples and dependencies with JOGL may be cumbersome). So I tried Java Surface Plot and for the function surface part - it's perfect. But is it possible to add (x, y, z) points..? I guess not. In this case what other library could I use?

我知道这个问题可能会感到偏离主题,但这种简单的绘制是的基本的功能和的答案已经2岁的,所以......也许有更好的东西了吧?

I know this question might feel off-topic, but such a simple plotting is a basic functionality and this answer is already 2 years old, so.. maybe there's something better now?

推荐答案

奥森图表是一个新的(专有)库,将利用表面图表没有JOGL依赖(它包含基于Java2D的所以有不同的标准的Java运行时不依赖软件渲染器)。表面渲染器需要样品从函数y = f(X,Z),所以有可能是一个问题,您的要求,您说的:

Orson Charts is a new (proprietary) library that will draw surface charts with no JOGL dependency (it contains a software renderer based on Java2D so there are no dependencies except the standard Java runtime). The surface renderer takes samples from a function y = f(x, z), so there might be an issue with your requirement where you say:

但是,它可以添加(X,Y,Z)点..?

But is it possible to add (x, y, z) points..?

不过,它不会是很难适应的code这样的数据进行工作,因此,如果奥森图表看起来像您可以使用,那么请与我联系。

However, it would not be difficult to adapt the code to work with such data, so if Orson Charts looks like something you could use then please contact me.

这篇关于绘图用Java 3D功能和点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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