mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021271: [CEA 473] Implement min size in netgen plugin
::SMESH_Hypothesis::TDefaults dflts; + dflts._shape = &shape;
This commit is contained in:
parent
fa4bd0dfc4
commit
974453b6c1
@ -751,7 +751,7 @@ SMESH_Gen_i::GetHypothesisParameterValues (const char* theHypType,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// let the temporary hypothesis find out some how parameter values by mesh
|
// let the temporary hypothesis find out somehow parameter values by mesh
|
||||||
if ( hyp->SetParametersByMesh( mesh, shape ))
|
if ( hyp->SetParametersByMesh( mesh, shape ))
|
||||||
return SMESH::SMESH_Hypothesis::_duplicate( tmpHyp );
|
return SMESH::SMESH_Hypothesis::_duplicate( tmpHyp );
|
||||||
}
|
}
|
||||||
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user