Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapped poly sets clipping issue #1

Closed
sasmaster opened this issue Nov 11, 2012 · 2 comments
Closed

Overlapped poly sets clipping issue #1

sasmaster opened this issue Nov 11, 2012 · 2 comments

Comments

@sasmaster
Copy link

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.

@speps
Copy link
Owner

speps commented Apr 21, 2013

Thanks for the report, it would help a lot if you could provide a solution with both projects so I can debug that more thoroughly :)

@speps
Copy link
Owner

speps commented Feb 3, 2016

I think I fixed that one some time ago with 6cf875c. The default normal vector was different.

@speps speps closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants