+ if (Label().IsNull()) return 0;
+ Handle(GEOM_Function) function = GEOM_Function::GetFunction(Label());
+
+ GEOMImpl_IFillet aCI( function );
+ Standard_Integer aType = function->GetType();
+
+ theOperationName = "FILLET";
+
+ switch ( aType ) {
+ case FILLET_SHAPE_ALL:
+ AddParam( theParams, "Main Object", aCI.GetShape() );
+ AddParam( theParams, "Selected edges", "all" );
+ break;
+ case FILLET_SHAPE_EDGES:
+ case FILLET_SHAPE_EDGES_2R:
+ AddParam( theParams, "Main Object", aCI.GetShape() );
+ AddParam( theParams, "Selected edges" );
+ if ( aCI.GetLength() > 1 )
+ theParams[1] << aCI.GetLength() << " edges: ";
+ for (int i = 1; i <= aCI.GetLength(); ++i )
+ theParams[1] << aCI.GetEdge( i ) << " ";
+ if ( aType == FILLET_SHAPE_EDGES ) {
+ AddParam( theParams, "Radius", aCI.GetR() );
+ }
+ else {
+ AddParam( theParams, "R1", aCI.GetR1() );
+ AddParam( theParams, "R2", aCI.GetR2() );
+ }
+ break;
+ case FILLET_SHAPE_FACES:
+ case FILLET_SHAPE_FACES_2R:
+ AddParam( theParams, "Main Object", aCI.GetShape() );
+ AddParam( theParams, "Selected faces" );
+ if ( aCI.GetLength() > 1 )
+ theParams[1] << aCI.GetLength() << " faces: ";
+ for (int i = 1; i <= aCI.GetLength(); ++i )
+ theParams[1] << aCI.GetFace( i ) << " ";
+ if ( aType == FILLET_SHAPE_FACES ) {
+ AddParam( theParams, "Radius", aCI.GetR() );
+ }
+ else {
+ AddParam( theParams, "R1", aCI.GetR1() );
+ AddParam( theParams, "R2", aCI.GetR2() );
+ }
+ break;
+ default:
+ return false;