Wolfram Language

Core Geometry

Point Sampling over Regions

Version 11 includes uniform point sampling over regions and reconstruction of surfaces from points.

The Stanford bunny.

In[1]:=
Click for copyable input
mesh = ExampleData[{"Geometry3D", "StanfordBunny"}, "Region"];
In[2]:=
Click for copyable input
MeshCellCount[mesh]
Out[2]=

Downsample the mesh.

In[3]:=
Click for copyable input
pointcloud = RandomPoint[mesh, 10000];
In[4]:=
Click for copyable input
Graphics3D[{PointSize[Small], Point[pointcloud]}]
Out[4]=

Reconstruct a smaller surface from points.

In[5]:=
Click for copyable input
ListSurfacePlot3D[pointcloud, MaxPlotPoints -> 40, Axes -> None, Boxed -> False, Mesh -> None]
Out[5]=
In[6]:=
Click for copyable input
ListSurfacePlot3D[pointcloud, MaxPlotPoints -> 40, Axes -> None, Boxed -> False, Mesh -> None]; MeshCellCount[DiscretizeGraphics[%]]
Out[6]=

Related Examples

de es fr ja ko pt-br ru zh