| 81 | Za izdelavo posnetja je potrebno podati ploskev in rob. |
| 82 | [[Image(elbow3.png,right)]] |
| 83 | {{{ |
| 84 | #!python |
| 85 | mkFillet = BRepFilletAPI_MakeChamfer(myPrim1.Shape()) |
| 86 | ex = TopExp_Explorer(myPrim1.Shape(), TopAbs_EDGE) |
| 87 | ex2 = TopExp_Explorer(myPrim1.Shape(), TopAbs_FACE) |
| 88 | edge = TopoDS_edge(ex.Current()) |
| 89 | face = TopoDS_face(ex2.Current()) |
| 90 | mkFillet.Add(15.0, 3.0, edge, face) |
| 91 | #... |
| 92 | display.DisplayColoredShape(mkFillet.Shape(), 'BLUE') |
| 93 | }}} |
| 94 | in naslednje vključke na vrhu |
| 95 | {{{ |
| 96 | #!python |
| 97 | from OCC.BRepFilletAPI import * |
| 98 | from OCC.Utils.Topology import Topo |
| 99 | from OCC.TopExp import * |
| 100 | from OCC.TopAbs import * |
| 101 | from OCC.TopoDS import * |
| 102 | }}} |