The xCellerator Project
delaunayTriangulation mPower Reference Home

delaunayTriangulation[{{x1,y1},{x2,y2}, ...}, options] computes the Delaunay Triangulation using qhull (qdelaunay). It returns an option list as specified by the value of the option delaunayFormat. If any of the options in delaunayFormat are False the the corresponding portion of the return value of delaunayTriangulation is not returned.

Options for delaunayTriangulation:

traceqhullFalse - if True, messages will be printed summarizing the data and execution process.

delaunayFormat→ list of options describing the type of output requsted.

keepDelaunayFilesFalse: if True, temporary files created during the interface with qhull (the input and output files of qdelaunay) are not deleted.

The value returned by delaunayTriangulation has the format:
	{
	edges→{{i1,j1},{i2,j2},..}
	edgeCoordinates→
		{{{x11,y11,z11},{x12,y12,z12}},
		 {{x21,y21,z21},{x22,y22,z22}},..}
	regions→{{i11,i12,...},{i21,i22,...},...}
	regionCoordinates→
		{{{x11,y11,z11},{x12,y12,z12},...},
		 {{x21,y21,z21},{x22,y22,z22},...},...}
	statistics→{mean, median, standard-deviation}
	}
where:

The edges pairs {ik,jk} are pairs of integers indicating that the Delaunay Triangulation of the points contains an edge connecting the points ik,jk. The edges are listed with the first index smaller than the second index and in increasing numerical order.

The list of edgeCoordinates give the Cartesian Coordinates of the edges in the same order as in edges.

The list of regions give the indices of the points defining each region in the Delaunay Triangulation. The points in the regions are not ordered, i.e, one can not assume that one traverses the edge of the polygon sequentially. [ In 2D the polygons are triangles, so this comment does not apply.]

The list of regionCoordinates gives the coordinates of the points defining each region in the Delaunay Triangulation.

The statistics give the average, median, and standard deviation of the lengths of the edges in the Delaunay Triangulation.

Example

See also:


SourceForge.net Logo






[23-Dec-2005]