From 485005aa19dd83fb3271d24509aa8d92cbf2b7ec Mon Sep 17 00:00:00 2001
From: Nikolaus Vahrenkamp <vahrenkamp@kit.edu>
Date: Wed, 26 Apr 2017 16:17:56 +0200
Subject: [PATCH] Fix for non convex polygons

---
 .../RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
index ebf8cfff1..33548cefc 100644
--- a/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
+++ b/source/RobotAPI/components/DebugDrawer/DebugDrawerComponent.cpp
@@ -936,6 +936,7 @@ namespace armarx
         SoShapeHints* hints = new SoShapeHints;
         hints->vertexOrdering = SoShapeHints::COUNTERCLOCKWISE;
         hints->shapeType = SoShapeHints::UNKNOWN_SHAPE_TYPE;
+        hints->faceType = SoShapeHints::UNKNOWN_FACE_TYPE;
         sep->addChild(hints);
 
         sep->addChild(VirtualRobot::CoinVisualizationFactory::CreatePolygonVisualization(d.points, d.colorInner, d.colorBorder, d.lineWidth));
@@ -2476,7 +2477,7 @@ namespace armarx
         }
         accumulatedUpdateData.arrows.clear();
 
-        for (auto & e : accumulatedUpdateData.triMeshes)
+        for (auto& e : accumulatedUpdateData.triMeshes)
         {
             drawTriMesh(e.second);
         }
-- 
GitLab