As of Version 10, all the functionality of the ComputationalGeometry package is built into the Wolfram System.
ComputationalGeometry contains a number of functions that are useful for geometry applications. A native implementation of this functionality has been added to the Wolfram System.
A region in the ComputationalGeometry package is specified by a list of points {{x1,y1},{x2,y2},…}. In the Wolfram System, MeshRegion yields a region specified by a collection of mesh cells with coordinates {{x1,y1},{x2,y2},…}. This mesh object displays in a notebook as a plot of the mesh and can be manipulated via functions. See the Geometric Computation guide for an overview of the Wolfram System functionality.
<<ComputationalGeometry`
ConvexHullArea[{{4.4, 14}, {6.7, 15.25}, {6.9, 12.8}, {2.1, 11.1}, {9.5, 14.9}, {13.2, 11.9}, {10.3, 12.3}, {6.8, 9.5}, {3.3, 7.7}, {0.6, 5.1}, {5.3, 2.4}, {8.45, 4.7}, {11.5, 9.6}, {13.8, 7.3}, {12.9, 3.1}, {11, 1.1}}]ConvexHullMesh[{{4.4, 14}, {6.7, 15.25}, {6.9, 12.8}, {2.1, 11.1}, {9.5, 14.9}, {13.2, 11.9}, {10.3, 12.3}, {6.8, 9.5}, {3.3, 7.7}, {0.6, 5.1}, {5.3, 2.4}, {8.45, 4.7}, {11.5, 9.6}, {13.8, 7.3}, {12.9, 3.1}, {11, 1.1}}]Area[%]The complete list of ComputationalGeometry functions and the corresponding equivalent functions in the Wolfram System are shown below.
| ComputationalGeometry | Built–in Wolfram Language function |
| BoundedDiagram[{b1,b2,…},{p1,…}] | VoronoiMesh[{p1,p2,…},{b1,b2,…}] |
| ConvexHull[{p1,p2,…}] | ConvexHullMesh[{p1,p2,…}] |
| ConvexHullArea[{p1,p2,…}] | Area[reg] |
| ConvexHullMedian[{p1,p2,…}] | Mean[MeshCoordinates[reg]] |
| DelaunayTriangulation[{p1,p2,…}] | DelaunayMesh[{p1,p2,…}] |
| DiagramPlot[{p1,p2,…}] | VoronoiMesh[{p1,p2,…}] |
| PlanarGraphPlot[{p1,p2,…}] | DelaunayMesh[{p1,p2,…}] |
| Ray[p1,p2] | InfiniteLine[{p1,p2}] |
| TileAreas[{p1,p2,…}] | Area[reg] |
| TriangularSurfacePlot[{p1,p2,…}] | DelaunayMesh[{p1,p2,…}] |
| VoronoiDiagram[{p1,p2,…}] | VoronoiMesh[{p1,p2,…}] |
See the Geometric Computation guide for an overview of the Wolfram System functionality.