Scilab Function
Last update : 1/11/2005

nextdrei - Neighbour analysis of triangles and voronoy diagram

Calling Sequence

[Q,VS,zlist] = nextdrei(tri)

Parameters

Description

If only the index matrix of delaunay points is given, then you get the neighbourmatrix of the delaunay triangles. If you use complex points as input argument, and you have less than two output arguments, then you will see also a graphical display of delaunay lines and voronoy diagram.

Triangulation works fine with irregualry spaced points. When you have installed the metanet toolbox, then you do not really need this function.

Examples

p=rand(1,20,'normal') + %i .*rand(1,20,'normal');
[Q,vl,dl]=nextdrei(p);
plot2d(real(p),imag(p),style=-3);
// Now, Voronoy Lines will be drawn
plot2d(real(vl),imag(vl),style=2*ones(1,size(vl,2)));
// Now, Delaunay Triangles will be drawn
plot2d(real(dl),imag(dl),style=3*ones(1,size(dl,2)));
xclick();
xbasc();
TRI1=delaunay(p);
Q=nextdrei(TRI1);

See Also

delaunay ,  

Authors

Dr. Andreas Geissler geisslea@web.de

Used Function

delaunay