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

calcPolygonsC produces negative areas #2076

Open
vedadb opened this issue Feb 21, 2024 · 1 comment
Open

calcPolygonsC produces negative areas #2076

vedadb opened this issue Feb 21, 2024 · 1 comment

Comments

@vedadb
Copy link

vedadb commented Feb 21, 2024

Mentioned in #2046

When reconstructing grains the first grainCalc produces normal areas - after having removed ebsd-pixels of grains smaller than e.g. 5px
the second grainCalc SOMETIMES produces negative areas.

I found that this was coupled to calcPolygonsC and does not occur with calcPolygons.
The poly objects formed are different for the two functions in those cases and the algorithm for the C-function needs to be checked to make sure that it produces the same results.

I will see if I can get some data for you, but essentially the functionality must be the same for them.

What MTEX version do you use?
MTEX 5.10.2

@ralfHielscher
Copy link
Member

Thank you for reporting. A demo data set would ne nice of course.

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