"h" wrote in message <email@example.com>... > Hello everyone, > > I use DT = delaunayTriangulation(node) to generate triangles. When I use 15*15 uniform distributed nodes, i get 404 triangular elements. If i am doing the right thing, i think the right answer should be 392 elements. > I calculated the area of these triangles and I found the area of some triangles are zero. > Maybe this is a bug. Hope someone can fix it.
I won't consider as BUG, after all delaunay triangulation is a _numerical_ calculation and a regular grid is a singular case for delaunay triangulation: if one of the node move slightly from it's ideal position, the area of the zero-surface becomes > 0.
And I'm not even sure your grid points coordinates can even stored with 100 % accuracy with floating points at the first place.
You just have to deal with this kind of fact in numerical calculation.