0021271: [CEA 473] Implement min size in netgen plugin

::SMESH_Hypothesis::TDefaults dflts;
+    dflts._shape = &shape;
This commit is contained in:
eap 2011-07-05 12:07:17 +00:00
parent fa4bd0dfc4
commit 974453b6c1

View File

@ -764,6 +764,7 @@ SMESH_Gen_i::GetHypothesisParameterValues (const char* theHypType,
::SMESH_Hypothesis::TDefaults dflts; ::SMESH_Hypothesis::TDefaults dflts;
dflts._elemLength = diagonal / myGen.GetBoundaryBoxSegmentation(); dflts._elemLength = diagonal / myGen.GetBoundaryBoxSegmentation();
dflts._nbSegments = myGen.GetDefaultNbSegments(); dflts._nbSegments = myGen.GetDefaultNbSegments();
dflts._shape = &shape;
// let the temporary hypothesis initialize it's values // let the temporary hypothesis initialize it's values
if ( hyp->SetParametersByDefaults( dflts, mesh )) if ( hyp->SetParametersByDefaults( dflts, mesh ))
return SMESH::SMESH_Hypothesis::_duplicate( tmpHyp ); return SMESH::SMESH_Hypothesis::_duplicate( tmpHyp );