From: cg zhang on
Matlab's delaunay command is convienient for grid generation, after
each triangulation, every node will have a label/order (to indicate
the 1st node, the 2nd node etc.). But on the boundary the order is
usually terrible. For example, if you triangulated a circle, the label
of boundary nodes counted clockwise one by one would be like
1,6,10,23,16 and so on. Is there a way to change it to the simple
1,2,3...? Because when you use the grid for any computation, you
normally have to specify boundary conditions for each node, and
apparently it is much much easier if those nodes are in simple order.
Any comment will be appreciated.
From: us on
cg zhang <mayasky87(a)gmail.com> wrote in message <b2d35909-fca0-4066-a0fe-860495d6b838(a)u26g2000yqu.googlegroups.com>...
> Matlab's delaunay command is convienient for grid generation, after
> each triangulation, every node will have a label/order (to indicate
> the 1st node, the 2nd node etc.). But on the boundary the order is
> usually terrible. For example, if you triangulated a circle, the label
> of boundary nodes counted clockwise one by one would be like
> 1,6,10,23,16 and so on. Is there a way to change it to the simple
> 1,2,3...? Because when you use the grid for any computation, you
> normally have to specify boundary conditions for each node, and
> apparently it is much much easier if those nodes are in simple order.
> Any comment will be appreciated.

a hint:
- you could use this FEX contribution to sort your nodes...

http://www.mathworks.com/matlabcentral/fileexchange/6760

us