Skip to content

Commit f4b8ac6

Browse files
author
kevyuu
committed
Slight improvement for readability
1 parent 05ee8ed commit f4b8ac6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/nbl/asset/utils/CSmoothNormalGenerator.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ class CSmoothNormalGenerator
2222
class VertexHashMap
2323
{
2424
public:
25+
using collection_t = core::vector<CPolygonGeometryManipulator::SSNGVertexData>;
2526
struct BucketBounds
2627
{
27-
core::vector<CPolygonGeometryManipulator::SSNGVertexData>::iterator begin;
28-
core::vector<CPolygonGeometryManipulator::SSNGVertexData>::iterator end;
28+
collection_t::iterator begin;
29+
collection_t::iterator end;
2930
};
3031

3132
public:
@@ -52,8 +53,8 @@ class CSmoothNormalGenerator
5253
static constexpr uint32_t primeNumber3 = 83492791;
5354

5455
//holds iterators pointing to beginning of each bucket, last iterator points to m_vertices.end()
55-
core::vector<core::vector<CPolygonGeometryManipulator::SSNGVertexData>::iterator> m_buckets;
56-
core::vector<CPolygonGeometryManipulator::SSNGVertexData> m_vertices;
56+
core::vector<collection_t::iterator> m_buckets;
57+
collection_t m_vertices;
5758
const uint32_t m_hashTableMaxSize;
5859
const float m_cellSize;
5960

0 commit comments

Comments
 (0)