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
@@ -92,7 +92,7 @@ namespace WhiteBox
};
const auto faceHandles = Api::MeshFaceHandles(whiteBox);
for (const auto faceHandle : faceHandles)
for (const auto& faceHandle : faceHandles)
{
faceData.push_back(createWhiteBoxFaceFromHandle(faceHandle));
}
@@ -817,7 +817,7 @@ namespace WhiteBox
debugDisplay.DepthTestOn();
for (const auto faceHandle : Api::MeshFaceHandles(whiteBoxMesh))
for (const auto& faceHandle : Api::MeshFaceHandles(whiteBoxMesh))
{
const auto faceHalfedgeHandles = Api::FaceHalfedgeHandles(whiteBoxMesh, faceHandle);
@@ -832,7 +832,7 @@ namespace WhiteBox
}) /
3.0f;
for (const auto halfedgeHandle : faceHalfedgeHandles)
for (const auto& halfedgeHandle : faceHalfedgeHandles)
{
const Api::VertexHandle vertexHandleAtTip =
Api::HalfedgeVertexHandleAtTip(whiteBoxMesh, halfedgeHandle);
@@ -887,7 +887,7 @@ namespace WhiteBox
if (cl_whiteBoxDebugEdgeHandles)
{
for (const auto edgeHandle : Api::MeshEdgeHandles(whiteBoxMesh))
for (const auto& edgeHandle : Api::MeshEdgeHandles(whiteBoxMesh))
{
const AZ::Vector3 localEdgeMidpoint = Api::EdgeMidpoint(whiteBoxMesh, edgeHandle);
const AZ::Vector3 worldEdgeMidpoint = worldFromLocal.TransformPoint(localEdgeMidpoint);