Quote:
i can not understand how to start
For such a generic question, you need to start by studying and understand what is a 'concave hull' and related subject 'convex hull' and 'Delaunay triangulation'.
Google is your friend.
If you just want source code, Google is also your friend.