mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
remove debug output
This commit is contained in:
parent
cac1b61a47
commit
b4d072bf20
@ -265,26 +265,26 @@ void OperationGUI_PartitionDlg::SelectionIntoArgument()
|
|||||||
// and only one plane as a tool
|
// and only one plane as a tool
|
||||||
if ( nbSel != 1 ) {
|
if ( nbSel != 1 ) {
|
||||||
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
|
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
|
||||||
myListShapes.length( 0 );
|
myListShapes.length( 0 );
|
||||||
// myListMaterials.length( 0 ); // obsolete
|
// myListMaterials.length( 0 ); // obsolete
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
|
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
|
||||||
myListTools.length( 0 );
|
myListTools.length( 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ( nbSel < 1 ) {
|
if ( nbSel < 1 ) {
|
||||||
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
|
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
|
||||||
myListShapes.length( 0 );
|
myListShapes.length( 0 );
|
||||||
//myListMaterials.length( 0 ); // obsolete
|
//myListMaterials.length( 0 ); // obsolete
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
|
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
|
||||||
myListTools.length( 0 );
|
myListTools.length( 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -313,8 +313,8 @@ void OperationGUI_PartitionDlg::SelectionIntoArgument()
|
|||||||
GEOM::GEOM_IKindOfShape::shape_kind kind = mOp->KindOfShape( myListTools[0].in(), intList.out(), dblList.out() );
|
GEOM::GEOM_IKindOfShape::shape_kind kind = mOp->KindOfShape( myListTools[0].in(), intList.out(), dblList.out() );
|
||||||
mOp->Destroy();
|
mOp->Destroy();
|
||||||
if ( kind < GEOM::GEOM_IKindOfShape::DISK_CIRCLE || kind > GEOM::GEOM_IKindOfShape::PLANAR ) {
|
if ( kind < GEOM::GEOM_IKindOfShape::DISK_CIRCLE || kind > GEOM::GEOM_IKindOfShape::PLANAR ) {
|
||||||
myListTools.length( 0 );
|
myListTools.length( 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -412,8 +412,6 @@ GEOM::GEOM_IOperations_ptr OperationGUI_PartitionDlg::createOperation()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool OperationGUI_PartitionDlg::isValid( QString& )
|
bool OperationGUI_PartitionDlg::isValid( QString& )
|
||||||
{
|
{
|
||||||
printf("OperationGUI_PartitionDlg::isValid:myListShapes.length()=%d\n",myListShapes.length());
|
|
||||||
printf("OperationGUI_PartitionDlg::isValid:myListTools.length()=%d\n",myListTools.length());
|
|
||||||
return ( myListShapes.length() || myListTools.length() ); // || myListKeepInside.length() || myListRemoveInside.length() // obsolete
|
return ( myListShapes.length() || myListTools.length() ); // || myListKeepInside.length() || myListRemoveInside.length() // obsolete
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,11 +435,11 @@ bool OperationGUI_PartitionDlg::execute( ObjectList& objects )
|
|||||||
case 0:
|
case 0:
|
||||||
anObj = aNoSelfIntersection ?
|
anObj = aNoSelfIntersection ?
|
||||||
anOper->MakePartitionNonSelfIntersectedShape( myListShapes, myListTools,
|
anOper->MakePartitionNonSelfIntersectedShape( myListShapes, myListTools,
|
||||||
myListKeepInside, myListRemoveInside,
|
myListKeepInside, myListRemoveInside,
|
||||||
aLimit, false, myListMaterials, aKeepNonlimitShapes ) :
|
aLimit, false, myListMaterials, aKeepNonlimitShapes ) :
|
||||||
anOper->MakePartition( myListShapes, myListTools,
|
anOper->MakePartition( myListShapes, myListTools,
|
||||||
myListKeepInside, myListRemoveInside,
|
myListKeepInside, myListRemoveInside,
|
||||||
aLimit, false, myListMaterials, aKeepNonlimitShapes );
|
aLimit, false, myListMaterials, aKeepNonlimitShapes );
|
||||||
res = true;
|
res = true;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
@ -462,8 +460,8 @@ bool OperationGUI_PartitionDlg::execute( ObjectList& objects )
|
|||||||
objects.push_back( anObj._retn() );
|
objects.push_back( anObj._retn() );
|
||||||
else
|
else
|
||||||
SUIT_MessageBox::warning( this,
|
SUIT_MessageBox::warning( this,
|
||||||
QObject::tr( "GEOM_ERROR" ),
|
QObject::tr( "GEOM_ERROR" ),
|
||||||
QObject::tr( "GEOM_WRN_PARTITION_RESULT_EMPTY" ) );
|
QObject::tr( "GEOM_WRN_PARTITION_RESULT_EMPTY" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user