--- /dev/null
+#####################################################################\r
+#Created :17/02/2005\r
+#Auhtor :MASLOV Eugeny, KOVALTCHUK Alexey \r
+#####################################################################\r
+\r
+import geompy\r
+import salome\r
+import os\r
+import math\r
+\r
+#Sketcher_1 creation\r
+Sketcher_1 = geompy.MakeSketcher("Sketcher:F 100 -57.7:TT 100 57.7:TT 0 115.47:TT -100 57.7:TT -100 -57.7:TT 0 -115.47:WW") \r
+geompy.addToStudy(Sketcher_1, "Sketcher_1")\r
+Face_1 = geompy.MakeFace(Sketcher_1, 1)\r
+geompy.addToStudy(Face_1, "Face_1")\r
+\r
+#Line creation\r
+Line_1 = geompy.MakeLineTwoPnt(geompy.MakeVertex(0,0,0), geompy.MakeVertex(0,0,100))\r
+geompy.addToStudy(Line_1, "Line_1")\r
+\r
+#Prism creation\r
+Prism_1 = geompy.MakePrismVecH(Face_1, Line_1, 100)\r
+geompy.addToStudy(Prism_1, "Prism_1")\r
+\r
+#Sketcher_2 creation\r
+Sketcher_2 = geompy.MakeSketcher("Sketcher:F 50 0:TT 80 0:TT 112 13:TT 112 48:TT 80 63:TT 80 90:TT 50 90:WW", [0,0,0, 1,0,0, 0,1,0]) \r
+geompy.addToStudy(Sketcher_2, "Sketcher_2")\r
+Face_2 = geompy.MakeFace(Sketcher_2, 1)\r
+geompy.addToStudy(Face_2, "Face_2")\r
+\r
+#Revolution creation\r
+Revolution_1 = geompy.MakeRevolution(Face_2, Line_1, 2*math.pi)\r
+geompy.addToStudy(Revolution_1, "Revolution_1")\r
+\r
+#Common applying\r
+Common_1 = geompy.MakeBoolean(Revolution_1, Prism_1, 1)\r
+geompy.addToStudy(Common_1, "Common_1")\r
+\r
+#Explode Common_1 on edges\r
+CommonExplodedListEdges = geompy.SubShapeAll(Common_1, geompy.ShapeType["EDGE"])\r
+for i in range(0, len(CommonExplodedListEdges)):\r
+ name = "Edge_"+str(i+1)\r
+ geompy.addToStudyInFather(Common_1, CommonExplodedListEdges[i], name)\r
+\r
+#Fillet applying\r
+#ID = geompy.GetSubShapeID(Common_1, CommonExplodedListEdges[0])\r
+Fillet_1 = geompy.MakeFillet(Common_1, 10, geompy.ShapeType["EDGE"], [6])\r
+geompy.addToStudy(Fillet_1, "Fillet_1")\r
+\r
+#Chamfer applying\r
+Chamfer_1 = geompy.MakeChamferEdge(Fillet_1, 10, 10, 16, 50 )\r
+geompy.addToStudy(Chamfer_1, "Chamfer_1")\r
+\r
+Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 )\r
+geompy.addToStudy(Chamfer_2, "Chamfer_2")\r
+\r
+#Import of the shape from "slots.brep"\r
+thePath = os.getenv("KERNEL_ROOT_DIR")\r
+theFileName = thePath + "/examples/slots.brep"\r
+theShapeForCut = geompy.ImportBREP(theFileName)\r
+geompy.addToStudy(theShapeForCut, "slot.brep_1")\r
+\r
+#Cut applying\r
+Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)\r
+geompy.addToStudy(Cut_1, "Cut_1")\r
+\r
+salome.sg.updateObjBrowser(1)\r
+\r