-
Notifications
You must be signed in to change notification settings - Fork 67
Smooth normal calculation Update! #941
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
Merged
Merged
Changes from 38 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
efa37a7
Remove wage and store weighted normal instead
cc4a219
Move getAngleWeight to hlsl/shapes/triangle.hlsl
c018762
Refactor erase to resize
42ccf48
Remove parentTriangleFaceNormal from SSNGVertexData
05ee8ed
Refactor getNeighboringCells
f4b8ac6
Slight improvement for readability
0dd02e8
Refactor Radix Sorter and use histogram as skip list
ce99287
Move VertexHashMap into its own file
28f73f5
Refactor smooth normal generator to use VertexHashGrid and separate w…
5acb40d
Fix normal comparison to use dot instead of value by value comparison
0feb4e9
Merge branch 'master' into smooth_normal_calculation
7424828
Fix triangle.hlsl
d078b2c
Rename LSBSorter to RadixLSBSorter
e72e0ef
Add comment for future task
e91aba1
Refactor CVertexHashGrid
509b359
Make radix sort more efficient
a30ef6f
Change type of index in SSNGVertexData
c580d72
Move CanJoinVertices to CVertexWelder
5af4a9b
Move SSNGVertexData and VxCmpFunction to CSmoothNormalGenerator
39e288c
Add comment
c49d8d1
Add overload for CVertexHashGrid::forEachBroadphaseNeighborCandidates…
c688f7b
Add inline specifier to a bunch of method
c521f95
use 0 base indexing for edge and vertex in compInternalAngle
a7aae4d
Iterate backward when gatherin histogram frequency for better cache l…
4a5c490
Refactor CVertexWelder to use abstract class for WeldPredicate instea…
82f9820
Add concept for Vertex Welder AccelerationStructure
401f1bb
Fix virtual destructor for WeldPredicate
9b007d2
Return nullptr if vertex contain INVALID_INDEX
7d31750
Reindent CVertexHashGrid to use tabs
4699173
Reindent CPolygonGeometryManipulator to use TABS
e65297b
Add diagram to explain why we choose cellSize to be twice as epsilon
dbffea5
Improve Diagram
ad0646e
Improve the explanation of VertexHashGrid
60ec970
Improve comment
7ebd7d0
Fix wrong iteration order
087beb8
Fix compInternalAngle
6d4b794
Fix method specifier in radix_sort.h
0cdf7e8
Fix variable and function specifier
4dbcbeb
Fix the patchedEpsilon
ff42165
Remove inline specifier for function that is defined in cpp
94c65b6
Remove forEachBroadphaseNeighborCandidates overload that takes vertex…
38ef627
Add inline specifier for method in CVertexWelder
bfba9fa
Refactor class name for SSNGVertexData
f3d9a19
Add inline specifier for DefaultWeldPredicate constructor and destructor
f5d38f2
Remove outdated TODO
cc39901
Slight refactor for SSNGVertexData alias
1257d4d
Add comment to implement a class template of CVertexHashGrid and CSmo…
d2503af
Add some assert in isAttributeValEqual and isAttributeDirEqual
1386fba
Cache channelCount and byte size in init
ac2ed54
Fix weldVertices
fe55595
Small fixes in CVertexWelder
4391433
fix compiler warning
devshgraphicsprogramming bd102e4
Update CSmoothNormalGenerator.cpp
devshgraphicsprogramming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.