how to do a delaunay triangulation for 10 points using c#?
Hi, I'm a noob ,just wanted to know how to triangulate some set of points . also I searched and found as3implementation but I was not able to make anything sensible out of it because I know only the basics of coding and know nothing about importing libraries. Can someone please show me the right way to go about it.
This question will most likely not attract many helpfull answers.
Your question is to broad as it is.
If you need help finding a suitable library, then ask that.
Or when you need help using a specific library, then ask that.
But if you need a finished implementation of delaunay triangulation with description on how it works, etc. then don't ask it, as nobody will have the time to do that.
If you need a working system, you should take a look at Unity Connect.
have some points(random) on a unity 2d layer.
If you don't know much about coding then an implementation of a triangulating algorithm might be out of your reach. Thus I would recommend importing an existing solution. Actually, that would be my recommendation anyway.
There are several implementations of Delaunay triangulation in c# available.
Triangle.NET is another that I have used previously but should read this before using it. It works great if you just handle the mono 2.0 fix.
hi , I managed to import the csDelaunay library , but I cant understand how I will use it to make a planar graph using delaunay triangulation. I have 7-10 points in 2d .I require to connect them with line game objects (sprites) using delaunay triangulation. Could you please show me what are the steps I should follow. I will attach the code I used to draw lines if that could be of any use.
oh, sorry just realized that it produces a voronoi diagram... It can be converted to a triangulation, but if that is too hard maybe you better use one of the alternatives. I added two alternatives that might work. I have only tried Triangle.NET but that requires you to follow the instructions in the link.