Wolfram Language

Geometria básica

Amostragem de pontos sobre regiões

A versão 11 inclui amostragem de pontos sobre regiões e a reconstrução de superfícies a partir de pontos.

O coelho de Stanford.

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

Reduza a resolução da malha.

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

Reconstrua uma superfície menor com os pontos.

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]=

Exemplos Relacionados

de en es fr ja ko ru zh