From 47fe01f7931c0434b4348c2e474ac265ec2677ed Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 9 Dec 2018 07:52:58 -0800 Subject: [PATCH] 3d-viewer: Remove duplicate call Simplify is called by GetBoardPolygonOutlines(), it does not need to be called a second time. --- 3d-viewer/3d_canvas/cinfo3d_visu.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/3d-viewer/3d_canvas/cinfo3d_visu.cpp b/3d-viewer/3d_canvas/cinfo3d_visu.cpp index 37301ee653..154123fe94 100644 --- a/3d-viewer/3d_canvas/cinfo3d_visu.cpp +++ b/3d-viewer/3d_canvas/cinfo3d_visu.cpp @@ -463,9 +463,6 @@ void CINFO3D_VISU::createBoardPolygon() wxLogMessage( errmsg ); } - // Be sure the polygon is strictly simple to avoid issues. - m_board_poly.Simplify( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE ); - Polygon_Calc_BBox_3DU( m_board_poly, m_board2dBBox3DU, m_biuTo3Dunits ); }