-
Notifications
You must be signed in to change notification settings - Fork 53
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
Detessellate Not Working for Some Models #72
Comments
Can you elaborate? Is the attached model the result of detessellation, or the input? Can you provide a code sample of how you are loading the model, and what you expect the output to be? Also, I notice that when I preview the model in the Finder, it seems to have inverted faces - could that be related to the issue? |
Long delayed reply: I want to use the above model as input into your detessellation method. All I'm doing is calling Regardless, normals probably shouldn't affect detessellation. It's just a merging of coplanar polygons, no? |
@iwoj normals can affect detessellatioon because if two neighboring triangles face opposite directions then they are effectively not coplanar and cannot be merged into a single quad. That said, you are right that it seems that was not the issue in this case. I believe I've now fixed the actual issue, and pushed a fix to the develop branch if you'd like to try it out. |
It works much better now! Thanks. I'm still noticing a few models that don't detessellate and I don't think it's because of normals. Does detessellation only reduce to quads or can it create planar polygons with any number of vertices? |
It can produce any number of vertices. If you have example models that don't detessellate properly please share them and I'll investigate further. |
Hello, |
For example: https://www.icloud.com/iclouddrive/0K8FOcYTy7wEBf0WRt-70LrTw#Detessellate_Test
The text was updated successfully, but these errors were encountered: