From 9f635d0a6efdf60681be1a8de2e8a7190f0a7fda Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 20 Jul 2007 11:23:00 +0000 Subject: [PATCH] PAL15881 New NETGEN capability: is it possible to do only a 2D mesh ? make QuadranglePreference hypotheses auxiliary --- src/StdMeshers/StdMeshers_QuadranglePreference.cxx | 2 +- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/StdMeshers/StdMeshers_QuadranglePreference.cxx b/src/StdMeshers/StdMeshers_QuadranglePreference.cxx index b16eeb58e..3e04aa872 100644 --- a/src/StdMeshers/StdMeshers_QuadranglePreference.cxx +++ b/src/StdMeshers/StdMeshers_QuadranglePreference.cxx @@ -42,7 +42,7 @@ StdMeshers_QuadranglePreference::StdMeshers_QuadranglePreference(int hyp :SMESH_Hypothesis(hypId, studyId, gen) { _name = "QuadranglePreference"; - _param_algo_dim = 2; // is used by StdMeshers_Quadrangle_2D + _param_algo_dim = -2; // auxiliary used by StdMeshers_Quadrangle_2D } //============================================================================= diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index bf2f614da..6852c9edb 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -119,7 +119,7 @@ bool StdMeshers_Quadrangle_2D::CheckHypothesis aStatus = SMESH_Hypothesis::HYP_OK; // there is only one compatible Hypothesis so far - const list &hyps = GetUsedHypothesis(aMesh, aShape); + const list &hyps = GetUsedHypothesis(aMesh, aShape, false); myQuadranglePreference = hyps.size() > 0; return isOk; @@ -886,7 +886,7 @@ bool StdMeshers_Quadrangle_2D::ComputeQuadPref (SMESH_Mesh & aMesh, SMESHDS_Mesh * meshDS = aMesh.GetMeshDS(); const TopoDS_Face& F = TopoDS::Face(aShape); Handle(Geom_Surface) S = BRep_Tool::Surface(F); - const TopoDS_Wire& W = BRepTools::OuterWire(F); +// const TopoDS_Wire& W = BRepTools::OuterWire(F); bool WisF = true; // if(W.Orientation()==TopAbs_FORWARD) // WisF = true; -- 2.39.2