Repository navigation
+Add vertex duplication during face normal generation - #5805
Merged
Merged
Conversation
`aiProcess_GenNormals` PostProcess now duplicates vertices if they are referenced by more than one polygon which results in the correct faceted appearance.
diiigle
force-pushed
the
GenNormals/duplicate_vertices
branch
from
October 9, 2024 08:18
e7d043e to
1e3c5f4
Compare
- Fix old spellings - Use static_cast instead of c-style casts
|
Member
|
Merged, thanks a lot for your contribution. |
|
there is a leak here. have been unsuccessful finding it. |
kimkulling
added a commit
that referenced
this pull request
Jul 1, 2026
* +Add vertex duplication during face normal generation `aiProcess_GenNormals` PostProcess now duplicates vertices if they are referenced by more than one polygon which results in the correct faceted appearance. * Update GenFaceNormalsProcess.cpp - Fix old spellings - Use static_cast instead of c-style casts --------- Co-authored-by: Kim Kulling <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



aiProcess_GenNormalsPostProcess now duplicates vertices if they are referenced by more than one polygon which results in the correct faceted appearance. I tried to keep an eye on performance, but haven't done any profiling.According to the documentation, this should have already been the case. Maybe it got removed over the years, or was never implemented in the first place.
Alternatively, I have considered:
aiProcess_GenNormals_DuplicateVerticesflagLet me know if you prefer either one of the alternative implementations.