【发布时间】:2018-06-05 12:00:29
【问题描述】:
我想制作凸包图形,为 Gnuplot 提供连接图形表面的顶点。
我一直在测试,但我没有任何明确的方法来做到这一点。
我可以用这个脚本绘制点:
set encoding iso_8859_1
set terminal postscript eps enhanced color size 4.0in,4.0in #"Helvetica" 16
set output "RG1.eps"
set view 50,220
unset colorbox
splot "convex1.dat" with lines notitle ,\
"convex1.dat" u 1:2:3 with points palette pointsize 3 pointtype 7
convex1.dat 包含这些点的位置
0 0 0
0 0 0.285957
0 0.285957 0.285957
0 0.3812378724 0.1906189362
0 0.571914 0
0.1906761276 0.3812378724 0.1906189362
0.285957 0.285957 0.285957
0.571914 0 0
0.571914 0 0.285957
这个脚本的表示是:
我可以在 Mathematica 环境中使用这些点制作凸包,并创建我正在寻找的图形类型:
问题是:如何使用 Gnuplot 制作像 Mathematica 图形一样的凸包,以及如何使用透明度制作图形并比较具有相同轴的两个凸包?
【问题讨论】:
标签: gnuplot computational-geometry convex-hull