Commit c5b1f72
committed
Refactor UpdateFaceNormalsModifier for improved performance and
robustness
- Added validation to ensure the mesh is not null, improving error
handling.
- Introduced a `setMesh` method to cleanly manage the current mesh
instance.
- Replaced sequential processing with parallelStream for better
performance on large meshes.
- Optimized normal updates by directly modifying existing vectors to
reduce object creation and memory overhead.
- Enhanced code readability and maintainability with a structured
approach.
This update ensures the modifier is faster and more robust, making it
suitable for large-scale mesh operations.1 parent da08978 commit c5b1f72
1 file changed
+66
-7
lines changedLines changed: 66 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | | - | |
9 | | - | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
14 | 37 | | |
15 | | - | |
16 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
17 | 76 | | |
18 | 77 | | |
0 commit comments