1596 | | #Primer dodajanja zaokrožitev na CAD model myBody |
1597 | | # Telo: Dodamo zaokrožitve (fillet) |
1598 | | mkFillet = BRepFilletAPI_MakeFillet(myBody.Shape()) |
1599 | | topology_traverser = Topo(myBody.Shape()) |
1600 | | for aEdge in topology_traverser.edges(): |
1601 | | mkFillet.Add(myThickness / 12. , aEdge) |
1602 | | myBody = mkFillet.Shape() |
| 1596 | #Primer dodajanja zaokrožitev na CAD model Oblika |
| 1597 | # Telo: Dodamo zaokrožitve |
| 1598 | zaokrozitev = BRepFilletAPI_MakeFillet(Oblika) |
| 1599 | anEdgeExplorer = TopExp_Explorer(oblika, TopAbs_EDGE) |
| 1600 | while anEdgeExplorer.More(): |
| 1601 | anEdge = topods.Edge(anEdgeExplorer.Current()) |
| 1602 | zaokrozitev.Add(Radij_1, anEdge) |
| 1603 | #zaokrozitev.Add(Radij_1, Radij_2, anEdge) |
| 1604 | anEdgeExplorer.Next() |
| 1605 | |
| 1606 | zaokrozitev.Build() |
| 1607 | oblika = zaokrozitev.Shape() |