From ffaaa17d1cff537216621a28bf10757ffc01ac92 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 29 Jan 2023 22:35:07 -0500 Subject: [PATCH] IGES files love faces instead of solids, maybe support them Fixes: https://gitlab.com/kicad/code/kicad/-/issues/11175 --- plugins/3d/oce/loadmodel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/3d/oce/loadmodel.cpp b/plugins/3d/oce/loadmodel.cpp index e10e080697..73649103c3 100644 --- a/plugins/3d/oce/loadmodel.cpp +++ b/plugins/3d/oce/loadmodel.cpp @@ -1005,6 +1005,13 @@ bool processLabel( const TDF_Label& aLabel, DATA& aData, SGNODE* aParent, processShell( xp.Current(), aData, pptr, aItems, nullptr ); ret = true; } + + for( xp.Init( shape, TopAbs_FACE ); xp.More(); xp.Next() ) + { + const TopoDS_Face& face = TopoDS::Face( xp.Current() ); + processFace( face, aData, pptr, aItems, nullptr ); + ret = true; + } } } break;