+
+//=================================================================================
+// function : createOperation
+// purpose :
+//=================================================================================
+GEOM::GEOM_IOperations_ptr BuildGUI_FaceDlg::createOperation()
+{
+ return getGeomEngine()->GetIShapesOperations( getStudyId() );
+}
+
+//=================================================================================
+// function : isValid
+// purpose :
+//=================================================================================
+bool BuildGUI_FaceDlg::isValid( QString& )
+{
+ return (myWires.length() != 0);
+}
+
+//=================================================================================
+// function : execute
+// purpose :
+//=================================================================================
+bool BuildGUI_FaceDlg::execute( ObjectList& objects )
+{
+ GEOM::GEOM_Object_var anObj;
+
+ bool isPlanarWanted = GroupWire->CheckButton1->isChecked();
+ anObj = GEOM::GEOM_IShapesOperations::_narrow(
+ getOperation() )->MakeFaceWires( myWires, isPlanarWanted );
+
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
+
+ return true;
+}
+