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

can't create mesh with reversed faces #2

Open
22andrew22 opened this issue Oct 29, 2018 · 1 comment
Open

can't create mesh with reversed faces #2

22andrew22 opened this issue Oct 29, 2018 · 1 comment

Comments

@22andrew22
Copy link

22andrew22 commented Oct 29, 2018

I've created the first polygon with
polygon = Polygon2D.Contour (pointlist.ToArray()); triangulation = new Triangulation2D (polygon, threshold); go = Instantiate(prefab); go.GetComponent<DemoMesh>().SetTriangulation(triangulation);

However, when i feed polygon with a reversed pointlist, i get a polygon with the same face. Whats the correct way to do this without a custom shader as was done in the demo?

@psmaAaron
Copy link

One way of fixing this is to reverse the normals.
Here's a script that does this, though I haven't used it.

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