Plot VoronoiDiagram using Graphics in Mathematica

2019-07-26 17:28发布

问题:

Completing questions on how to plot a ConvexHull or a DelaunayTriangulation using Graphics in Mathematica,

I would now like to plot the VoronoiDiagram within Graphics.

Considering :

Needs["ComputationalGeometry`"]
pts = RandomReal[{0, 10}, {60, 2}];
vdpts=VoronoiDiagram[pts]

回答1:

How about

Needs["ComputationalGeometry`"]
pts = RandomReal[{0, 10}, {10, 2}]
DiagramPlot[pts]

or am I missing your point?