NearestMeshCells
NearestMeshCells[mr,pt]
给出网格区域 mr 中距点 pt 最近的单元的索引.
NearestMeshCells[mr,pt,n]
给出距点 pt 最近的 n 个单元的索引.
NearestMeshCells[mr,pt,{n,r}]
给出 pt 半径 r 内距点 pt 最近的 n 个或更少单元的索引.
NearestMeshCells[{mr,d},…]
给出维度为 d 的单元的索引.
更多信息

- NearestMeshCells 亦称为最近的点或最近的区域.
- NearestMeshCells 通常用于查找网格中距给定点最近的单元.
- 到网格中某个单元的距离就是到该单元中最近的点的距离. 最近的单元是距离最小的单元.
- NearestMeshCells 返回形式为 {d,{i1,i2,…}} 的单元索引列表.

范例
打开所有单元关闭所有单元基本范例 (2)常见实例总结
In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-c9gwr5
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-xrf9na
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-61rfw8
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-mmj6le
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-51xo4p
Out[3]=3

范围 (8)标准用法实例范围调查
基本用法 (2)
In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-xoe6tx
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-evc14l
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-vh074n
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0btogovy9k84-mgilwl
Out[4]=4

In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-vph3zh
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-ebfkir
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-mx0i25
Out[3]=3

网格区域 (2)
找出 MeshRegion 中最近的单元:
In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-c4x5u4
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-mn718z
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-uobscz
Out[3]=3

找出 BoundaryMeshRegion 中最近的线:
In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-xp31vk
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-be2c82
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-zndpn8
Out[3]=3

多边形和多面体 (4)
In[15]:=15

✖
https://wolfram.com/xid/0btogovy9k84-9d9b7i
In[20]:=20

✖
https://wolfram.com/xid/0btogovy9k84-k65id5
Out[20]=20

In[21]:=21

✖
https://wolfram.com/xid/0btogovy9k84-tngi4o
Out[21]=21

In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-3ablj2
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-4mgh26
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-fe77lm
Out[3]=3

Line:
In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-0cxwo0
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-2w9b7a
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-sldrpe
Out[3]=3

In[1]:=1

✖
https://wolfram.com/xid/0btogovy9k84-2q31tf
In[2]:=2

✖
https://wolfram.com/xid/0btogovy9k84-wtgl42
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0btogovy9k84-yku5em
Out[3]=3

应用 (1)用该函数可以解决的问题范例
互动范例 (1)有交互式输出的范例
Wolfram Research (2020),NearestMeshCells,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NearestMeshCells.html.
文本
Wolfram Research (2020),NearestMeshCells,Wolfram 语言函数,https://reference.wolfram.com/language/ref/NearestMeshCells.html.
CMS
Wolfram 语言. 2020. "NearestMeshCells." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/NearestMeshCells.html.
APA
Wolfram 语言. (2020). NearestMeshCells. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/NearestMeshCells.html 年