Fix for the "0021861: EDF 2226 : Documentation of numeric functor option in split quadrangles is unclear" issue.

Fix conversion of "QuadToTriObject"
This commit is contained in:
eap 2012-11-08 14:02:30 +00:00
parent 62f76f744f
commit d627437f5d

View File

@ -818,7 +818,7 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
} }
} }
// objects erasing creation command if no more it's commands invoked: // objects erasing creation command if no more its commands invoked:
// SMESH_Pattern, FilterManager // SMESH_Pattern, FilterManager
if ( method == "GetPattern" || if ( method == "GetPattern" ||
method == "CreateFilterManager" || method == "CreateFilterManager" ||
@ -1978,7 +1978,8 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand)
const char * names[] = { const char * names[] = {
"RemoveElements","RemoveNodes","RemoveOrphanNodes","AddNode","Add0DElement","AddEdge","AddFace","AddPolygonalFace","AddBall", "RemoveElements","RemoveNodes","RemoveOrphanNodes","AddNode","Add0DElement","AddEdge","AddFace","AddPolygonalFace","AddBall",
"AddVolume","AddPolyhedralVolume","AddPolyhedralVolumeByFaces","MoveNode", "MoveClosestNodeToPoint", "AddVolume","AddPolyhedralVolume","AddPolyhedralVolumeByFaces","MoveNode", "MoveClosestNodeToPoint",
"InverseDiag","DeleteDiag","Reorient","ReorientObject","TriToQuad","SplitQuad","SplitQuadObject", "InverseDiag","DeleteDiag","Reorient","ReorientObject",
"TriToQuad","TriToQuadObject", "SplitQuad","SplitQuadObject",
"BestSplit","Smooth","SmoothObject","SmoothParametric","SmoothParametricObject", "BestSplit","Smooth","SmoothObject","SmoothParametric","SmoothParametricObject",
"ConvertToQuadratic","ConvertFromQuadratic","RenumberNodes","RenumberElements", "ConvertToQuadratic","ConvertFromQuadratic","RenumberNodes","RenumberElements",
"RotationSweep","RotationSweepObject","RotationSweepObject1D","RotationSweepObject2D", "RotationSweep","RotationSweepObject","RotationSweepObject1D","RotationSweepObject2D",
@ -2129,13 +2130,11 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand)
if ( method == "QuadToTri" || method == "QuadToTriObject" ) if ( method == "QuadToTri" || method == "QuadToTriObject" )
{ {
int crit_arg = theCommand->GetNbArgs();
_AString crit = theCommand->GetArg(crit_arg);
if(crit.Search("MaxElementLength2D") != -1)
{
theCommand->SetArg(crit_arg, "");
isPyMeshMethod = true; isPyMeshMethod = true;
} int crit_arg = theCommand->GetNbArgs();
const _AString& crit = theCommand->GetArg(crit_arg);
if (crit.Search("MaxElementLength2D") != -1)
theCommand->SetArg(crit_arg, "");
} }
if ( isPyMeshMethod ) if ( isPyMeshMethod )