diff --git a/samples/c/delaunay.c b/samples/c/delaunay.c index 17499320b..0d8f3e2c1 100644 --- a/samples/c/delaunay.c +++ b/samples/c/delaunay.c @@ -2,9 +2,16 @@ #include #include - -/* the script demostrates iterative construction of - delaunay triangulation and voronoi tesselation */ +void help() +{ + printf("\nThis program demostrates iterative construction of\n" + "delaunay triangulation and voronoi tesselation.\n" + "It draws a random set of points in an image and then delaunay triangulates them.\n" + "Call:\n" + "./delaunay\n" + "\nThis program builds the traingulation interactively, you may stop this process by\n" + "hitting any key.\n"); +} CvSubdiv2D* init_delaunay( CvMemStorage* storage, CvRect rect ) @@ -226,6 +233,7 @@ int main( int argc, char** argv ) #ifdef _MSC_VER argc, argv; #endif + help(); run(); return 0; }