mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 11:34:18 +05:00
[SALOME platform 0013410]: SubMesh not taken into account with Netgen 1D-2D et 1D-2D-3D
Read a new aglo attribute "support-submeshes": + QString suppSub = atts.value("support-submeshes"); + if ( !suppSub.isEmpty() ) + isSupportSubmeshes = (suppSub == "true"); +
This commit is contained in:
parent
c9179d6bde
commit
f9900de370
@ -122,10 +122,13 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
|
|||||||
QString aLabel = atts.value("label-id");
|
QString aLabel = atts.value("label-id");
|
||||||
QString anIcon = atts.value("icon-id");
|
QString anIcon = atts.value("icon-id");
|
||||||
bool isAux = atts.value("auxiliary") == "true";
|
bool isAux = atts.value("auxiliary") == "true";
|
||||||
bool isNeedGeom = true;
|
bool isNeedGeom = true, isSupportSubmeshes = false;
|
||||||
QString aNeedGeom = atts.value("need-geom");
|
QString aNeedGeom = atts.value("need-geom");
|
||||||
if ( !aNeedGeom.isEmpty() )
|
if ( !aNeedGeom.isEmpty() )
|
||||||
isNeedGeom = (aNeedGeom == "true");
|
isNeedGeom = (aNeedGeom == "true");
|
||||||
|
QString suppSub = atts.value("support-submeshes");
|
||||||
|
if ( !suppSub.isEmpty() )
|
||||||
|
isSupportSubmeshes = (suppSub == "true");
|
||||||
|
|
||||||
QString aDimStr = atts.value("dim");
|
QString aDimStr = atts.value("dim");
|
||||||
aDimStr = aDimStr.remove( ' ' );
|
aDimStr = aDimStr.remove( ' ' );
|
||||||
@ -155,7 +158,8 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
|
|||||||
HypothesisData* aHypData =
|
HypothesisData* aHypData =
|
||||||
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
|
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
|
||||||
aLabel, anIcon, aDim, isAux,
|
aLabel, anIcon, aDim, isAux,
|
||||||
attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ], isNeedGeom );
|
attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ],
|
||||||
|
isNeedGeom, isSupportSubmeshes );
|
||||||
|
|
||||||
if (qName == "algorithm")
|
if (qName == "algorithm")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user