grid - Mathematica - "Triangulation"- 在图表上绘制三角形网格

标签 grid wolfram-mathematica mesh

我所附的图片应该说明了一切:我想将我绘制的所有点连接起来,形成三角形网格。

三角形的替代方案也是可能的,只要结果是一个漂亮的、几乎规则的图形。

enter image description here

最佳答案

正如贝利撒留在评论中提到的,Mathematica 中有一个三角测量命令。它称为PlanarGraphPlot。这是它的工作原理:

Needs["ComputationalGeometry`"]
g = Table[RandomReal[{0, 100}, 2], {i, 1, 100}];
ListPlot[g, AspectRatio -> 1]

A random graph

PlanarGraphPlot[g, LabelPoints -> False]

triangulated graph

或者,使用 Show 您可以将它们绘制在彼此之上:

Show[PlanarGraphPlot[g, LabelPoints -> False], ListPlot[g, AspectRatio -> 1, PlotStyle -> {Large, Red}]]

enter image description here

关于grid - Mathematica - "Triangulation"- 在图表上绘制三角形网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17791692/

相关文章:

html - Flexbox 网格容器

javascript - KendoUI MVVM 绑定(bind)根据显示值手动更新源

wolfram-mathematica - 格式化使用消息

plot - Mathematica 分段函数错误的绘图渲染

c# - 无法使用 xBIM 从 IFC 中提取三角几何图形

unity3d - 在运行时导入 FBX

grid - Ag-Grid : How to get the focused cell value

graphics - 在 Mathematica 中排列和显示网格的各个部分

java - LibGDX 的 mesh.getVerticies 输出什么?

python:简单的方形网格