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

Negative value for Triangle index #117

Open
mmedinav18 opened this issue Jul 30, 2019 · 1 comment
Open

Negative value for Triangle index #117

mmedinav18 opened this issue Jul 30, 2019 · 1 comment

Comments

@mmedinav18
Copy link

Hi,

I am running the following code in unity, and everytime I run it, it comes out with an error of the Index being out of range. My thinking is that everytime I try to get the centroid for "triangle2", the index of Triangle 2 is -1, thus creating the error. Could you please explain what's happening? I'd really appreaciate it.

Knit Systems - Microsoft Visual Studio  7_30_2019 10_05_47 PM_LI

Screenshot 7_30_2019 10_01_50 PM_LI

@mmedinav18 mmedinav18 changed the title Negative value index for Triangle index Negative value for Triangle index Jul 30, 2019
@rarora7777
Copy link

You mesh has a boundary loop. When you query for the neighbouring triangles of a boundary edge, one of the results is InvalidID as expected, since there's only one neighbouring triangle.

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