Description
Hi.First Kudos for this port.However I see the C# version outputs a numerical data that little different from the same when done using C version of this lib.While the end results still looks as expected I am really curious to know if you are aware of this fact ?
Here for example a set of 2 polys
ContourVertex v1 = new ContourVertex();
v1.Position.X = 100;
v1.Position.Y = 100;
v1.Data = Color.Aqua;
ContourVertex v2 = new ContourVertex();
v2.Position.X = 400;
v2.Position.Y = 100;
v2.Data = Color.Aqua;
ContourVertex v3 = new ContourVertex();
v3.Position.X = 400;
v3.Position.Y = 500;
v3.Data = Color.Aqua;
ContourVertex v4 = new ContourVertex();
v4.Position.X = 100;
v4.Position.Y = 500;
v4.Data = Color.Aqua;
////////////////////////
//TESSreal cont2[8]={50,50,300,50,300,200,50,200};
ContourVertex v1c = new ContourVertex();
v1c.Position.X = 50;
v1c.Position.Y = 50;
v1c.Data = Color.Bisque;
ContourVertex v2c = new ContourVertex();
v2c.Position.X = 300;
v2c.Position.Y = 50;
v2c.Data = Color.Bisque;
ContourVertex v3c = new ContourVertex();
v3c.Position.X = 300;
v3c.Position.Y = 200;
v3c.Data = Color.Bisque;
ContourVertex v4c = new ContourVertex();
v4c.Position.X = 50;
v4c.Position.Y = 200;
v4c.Data = Color.Bisque;
Try running it in C and C# , the output indices and vertices are not exactly the same .
Thanks.