feat: add whitebox module support for linux(#4654) (#5075)

* feat: fix whitebox module to work on linux(#4654)

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* update with AZStl

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* feat: update format

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* chore: minor changes

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* chore: update clang warnings

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* chore: fix clang errors

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* chore: remove unused refrence for g_indices and address range based for loop warnings

Signed-off-by: Michael Pollind <mpollind@gmail.com>

* chore: fix clang warnings for test cases

Signed-off-by: Michael Pollind <mpollind@gmail.com>
This commit is contained in:
Michael Pollind
2021-11-15 01:21:50 -08:00
committed by GitHub
parent 57adfd795e
commit 0ada8b335b
12 changed files with 78 additions and 88 deletions
@@ -180,11 +180,11 @@ namespace WhiteBox
// fill vertex position array
size_t index = 0;
const auto faceHandles = Api::MeshFaceHandles(whiteBox);
for (const auto faceHandle : faceHandles)
for (const auto& faceHandle : faceHandles)
{
const auto faceHalfedgeHandles = Api::FaceHalfedgeHandles(whiteBox, faceHandle);
for (const auto halfEdgeHandle : faceHalfedgeHandles)
for (const auto& halfEdgeHandle : faceHalfedgeHandles)
{
const auto vh = Api::HalfedgeVertexHandleAtTip(whiteBox, halfEdgeHandle);
vertices[index] = Api::VertexPosition(whiteBox, vh);