From 7c2ac5565e02e2b579c971b7b4da85cd839535f6 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 7 May 2008 18:00:49 +0000 Subject: [PATCH] PAL13464: SMESH homogenize algorithm hypothesis can work with no hypothesis, LengthFromEdges is default one --- src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index a474e03..9a9086a 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -114,11 +114,15 @@ bool NETGENPlugin_NETGEN_2D_ONLY::CheckHypothesis (SMESH_Mesh& aMesh, _hypLengthFromEdges = 0; _hypQuadranglePreference = 0; - aStatus = HYP_MISSING; - const list& hyps = GetUsedHypothesis(aMesh, aShape, false); - if (hyps.empty()) return false; // can't work with no hypothesis + if (hyps.empty()) + { + aStatus = HYP_OK; //SMESH_Hypothesis::HYP_MISSING; + return true; // (PAL13464) can work with no hypothesis, LengthFromEdges is default one + } + + aStatus = HYP_MISSING; list::const_iterator ith; for (ith = hyps.begin(); ith != hyps.end(); ++ith ) @@ -328,7 +332,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, // -------------------- double edgeLength = 0; - if (_hypLengthFromEdges) + if (_hypLengthFromEdges || !_hypLengthFromEdges && !_hypMaxElementArea) { int nbSegments = 0; for ( int iW = 0; iW < nbWires; ++iW ) -- 2.39.2