Skip to content

Commit bfba9fa

Browse files
author
kevyuu
committed
Refactor class name for SSNGVertexData
1 parent 38ef627 commit bfba9fa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/nbl/asset/utils/CPolygonGeometryManipulator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class NBL_API2 CPolygonGeometryManipulator
235235

236236
using SSNGVxCmpFunction = CSmoothNormalGenerator::VxCmpFunction;
237237
static core::smart_refctd_ptr<ICPUPolygonGeometry> createSmoothVertexNormal(const ICPUPolygonGeometry* inbuffer, bool enableWelding = false, float epsilon = 1.525e-5f,
238-
SSNGVxCmpFunction vxcmp = [](const CSmoothNormalGenerator::SSNGVertexData& v0, const CSmoothNormalGenerator::SSNGVertexData& v1, const ICPUPolygonGeometry* buffer)
238+
SSNGVxCmpFunction vxcmp = [](const CSmoothNormalGenerator::VertexData& v0, const CSmoothNormalGenerator::VertexData& v1, const ICPUPolygonGeometry* buffer)
239239
{
240240
constexpr float cosOf45Deg = 0.70710678118f;
241241
return dot(normalize(v0.weightedNormal),normalize(v1.weightedNormal)) > cosOf45Deg;

src/nbl/asset/utils/CSmoothNormalGenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ namespace nbl
1313
{
1414
namespace asset
1515
{
16-
static bool operator<(uint32_t lhs, const CSmoothNormalGenerator::SSNGVertexData& rhs)
16+
static bool operator<(uint32_t lhs, const CSmoothNormalGenerator::VertexData& rhs)
1717
{
1818
return lhs < rhs.hash;
1919
}
2020

21-
static bool operator<(const CSmoothNormalGenerator::SSNGVertexData& lhs, uint32_t rhs)
21+
static bool operator<(const CSmoothNormalGenerator::VertexData& lhs, uint32_t rhs)
2222
{
2323
return lhs.hash < rhs;
2424
}

src/nbl/asset/utils/CSmoothNormalGenerator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CSmoothNormalGenerator
1616
CSmoothNormalGenerator() = delete;
1717
~CSmoothNormalGenerator() = delete;
1818

19-
struct SSNGVertexData
19+
struct VertexData
2020
{
2121
uint32_t index; //offset of the vertex into index buffer
2222
// TODO: check whether separating hash and position into its own vector or even rehash the position everytime we need will result in VertexHashGrid become faster.
@@ -41,9 +41,9 @@ class CSmoothNormalGenerator
4141

4242
};
4343

44-
using VxCmpFunction = std::function<bool(const SSNGVertexData&, const SSNGVertexData&, const ICPUPolygonGeometry*)>;
44+
using VxCmpFunction = std::function<bool(const VertexData&, const VertexData&, const ICPUPolygonGeometry*)>;
4545

46-
using VertexHashMap = CVertexHashGrid<SSNGVertexData>;
46+
using VertexHashMap = CVertexHashGrid<VertexData>;
4747

4848
struct Result
4949
{

0 commit comments

Comments
 (0)