From 22d47455e84b9f8660062175a7e81a0a6722d51b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 25 Aug 2010 08:37:05 +0000 Subject: [PATCH] --- Geo/GeoInterpolation.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Geo/GeoInterpolation.cpp b/Geo/GeoInterpolation.cpp index b253df6290..47ca545b7a 100644 --- a/Geo/GeoInterpolation.cpp +++ b/Geo/GeoInterpolation.cpp @@ -566,11 +566,13 @@ static Vertex InterpolateExtrudedSurface(Surface *s, double u, double v) } } - if(num < 0) - Msg::Error("Unknown curve in extruded surface"); - Vertex T; + if(num < 0){ + Msg::Error("Unknown curve in extruded surface"); + return T; + } + switch(num){ case 0: T = InterpolateCurve(c, c->ubeg + (c->uend - c->ubeg) * u, 0); -- GitLab