12namespace Cogs::Core::GeometryProcessing
28 void COGSCORE_DLL_API uniqueVertexSubset(Context* context,
29 std::vector<uint32_t>& unique,
30 std::vector<uint32_t>& map,
32 const size_t P_stride,
34 const size_t N_stride,
36 const size_t T_stride,
38 const float epsilon = std::numeric_limits<float>::epsilon());
41 void COGSCORE_DLL_API normalsFromIndexedTriangles(Context* context,
42 std::vector<glm::vec3>& N,
43 std::vector<uint32_t>& remap,
44 std::vector<uint32_t>& newIndices,
48 const uint32_t* indices,
50 const float featureAngle = 0.7f,
51 const float protrusionAngle = 0.7f,
52 const bool flip =
false);
55 void COGSCORE_DLL_API normalsFromIndexedTriangles(Context* context,
57 uint32_t normalStride,
58 const float* vertices,
59 uint32_t vertexStride,
60 const uint32_t numVertices,
61 const uint32_t* indices,
62 const uint32_t numIndices,
63 const uint32_t taskSize = 10000,
64 std::atomic<uint64_t>* elapsed_us =
nullptr);
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....