对区域上的点采样
版本 11 包括了对区域上的点的均匀采样以及用点对表面进行重构.
斯坦福兔.
In[1]:=
mesh = ExampleData[{"Geometry3D", "StanfordBunny"}, "Region"];
In[2]:=
MeshCellCount[mesh]
Out[2]=
降采样.
In[3]:=
pointcloud = RandomPoint[mesh, 10000];
In[4]:=
Graphics3D[{PointSize[Small], Point[pointcloud]}]
Out[4]=
根据点重构一个较小的表面.
In[5]:=
ListSurfacePlot3D[pointcloud, MaxPlotPoints -> 40, Axes -> None,
Boxed -> False, Mesh -> None]
Out[5]=
In[6]:=
ListSurfacePlot3D[pointcloud, MaxPlotPoints -> 40, Axes -> None,
Boxed -> False, Mesh -> None];
MeshCellCount[DiscretizeGraphics[%]]
Out[6]=