From 36497ec0b2cfb10d92d0465c443e6636d1a8a549 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 10 Mar 2017 11:54:04 +0000 Subject: [PATCH] fix --- Geo/GModelIO_OCC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp index f96f6791cd..79169c040e 100644 --- a/Geo/GModelIO_OCC.cpp +++ b/Geo/GModelIO_OCC.cpp @@ -852,9 +852,10 @@ void OCC_Internals::addPlaneSurface(int tag, const std::vector<int> &wireTags) computeMeanPlaneSimple(points, meanPlane); try{ gp_Pln aPlane(meanPlane.a, meanPlane.b, meanPlane.c, -meanPlane.d); - BRepBuilderAPI_MakeFace f(aPlane); - for(unsigned int i = 0; i < wires.size(); i++) + BRepBuilderAPI_MakeFace f(aPlane, wires[0]); + for(unsigned int i = 1; i < wires.size(); i++){ f.Add(wires[i]); + } f.Build(); if(!f.IsDone()){ Msg::Error("Could not create face"); -- GitLab