// and only one plane as a tool
if ( nbSel != 1 ) {
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
- myListShapes.length( 0 );
- // myListMaterials.length( 0 ); // obsolete
- return;
+ myListShapes.length( 0 );
+ // myListMaterials.length( 0 ); // obsolete
+ return;
}
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
- myListTools.length( 0 );
- return;
+ myListTools.length( 0 );
+ return;
}
}
}
else {
if ( nbSel < 1 ) {
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) {
- myListShapes.length( 0 );
- //myListMaterials.length( 0 ); // obsolete
- return;
+ myListShapes.length( 0 );
+ //myListMaterials.length( 0 ); // obsolete
+ return;
}
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) {
- myListTools.length( 0 );
- return;
+ myListTools.length( 0 );
+ return;
}
}
}
GEOM::GEOM_IKindOfShape::shape_kind kind = mOp->KindOfShape( myListTools[0].in(), intList.out(), dblList.out() );
mOp->Destroy();
if ( kind < GEOM::GEOM_IKindOfShape::DISK_CIRCLE || kind > GEOM::GEOM_IKindOfShape::PLANAR ) {
- myListTools.length( 0 );
- return;
+ myListTools.length( 0 );
+ return;
}
}
}
//=================================================================================
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
}
case 0:
anObj = aNoSelfIntersection ?
anOper->MakePartitionNonSelfIntersectedShape( myListShapes, myListTools,
- myListKeepInside, myListRemoveInside,
- aLimit, false, myListMaterials, aKeepNonlimitShapes ) :
+ myListKeepInside, myListRemoveInside,
+ aLimit, false, myListMaterials, aKeepNonlimitShapes ) :
anOper->MakePartition( myListShapes, myListTools,
- myListKeepInside, myListRemoveInside,
- aLimit, false, myListMaterials, aKeepNonlimitShapes );
+ myListKeepInside, myListRemoveInside,
+ aLimit, false, myListMaterials, aKeepNonlimitShapes );
res = true;
break;
case 1:
objects.push_back( anObj._retn() );
else
SUIT_MessageBox::warning( this,
- QObject::tr( "GEOM_ERROR" ),
- QObject::tr( "GEOM_WRN_PARTITION_RESULT_EMPTY" ) );
+ QObject::tr( "GEOM_ERROR" ),
+ QObject::tr( "GEOM_WRN_PARTITION_RESULT_EMPTY" ) );
}
return res;