471 | | topology_traverser = Topo(Oblika) |
472 | | for aEdge in topology_traverser.edges(): |
473 | | zaokrozitev.Add(Radij , aEdge) |
474 | | # zaokrozitev.Add(Radij_1, Radij_2 , aEdge) |
| 475 | anEdgeExplorer = TopExp_Explorer(oblika, TopAbs_EDGE) |
| 476 | |
| 477 | while anEdgeExplorer.More(): |
| 478 | anEdge = topods.Edge(anEdgeExplorer.Current()) |
| 479 | zaokrozitev.Add(Radij_1, anEdge) |
| 480 | #zaokrozitev.Add(Radij_1, Radij_2, anEdge) |
| 481 | anEdgeExplorer.Next() |
| 482 | |
| 483 | zaokrozitev.Build() |
| 484 | oblika = zaokrozitev.Shape() |
480 | | for aEdge in topology_traverser.edges(): |
481 | | first, last = TopExp().FirstVertex(aEdge), TopExp().LastVertex(aEdge) |
482 | | first_vert, last_vert = BRep_Tool().Pnt(first), BRep_Tool().Pnt(last) |
483 | | if first_vert.Z() != last_vert.Z(): |
484 | | zaokrozitev.Add(Radij, aEdge) |
| 490 | topExp = TopExp_Explorer() |
| 491 | topExp.Init(oblika, TopAbs_VERTEX) |
| 492 | |
| 493 | # Vzamemo dve točki (two vertices) |
| 494 | vertA = topods_Vertex(topExp.Current()) |
| 495 | topExp.Next() |
| 496 | vertB = topods_Vertex(topExp.Current()) |
| 497 | anEdgeExplorer = TopExp_Explorer(oblika, TopAbs_EDGE) |
| 498 | while anEdgeExplorer.More(): |
| 499 | edge = topods.Edge(anEdgeExplorer.Current()) |
| 500 | first, last = topexp_FirstVertex(edge), topexp_LastVertex(edge) |
| 501 | vertex, first_vert, last_vert = BRep_Tool().Pnt(vertA), BRep_Tool().Pnt(first), BRep_Tool().Pnt(last) |
| 502 | if first_vert.Z() != last_vert.Z(): |
| 503 | zaokrozitev.Add(Radij_1, edge) |
| 504 | anEdgeExplorer.Next() |
| 505 | afillet.Build() |
| 506 | oblika = afillet.Shape() |
528 | | for edg in topo.edges_from_vertex(tocka): |
529 | | first, last = TopExp().FirstVertex(edg), TopExp().LastVertex(edg) |
530 | | vertex, first_vert, last_vert = BRep_Tool().Pnt(tocka), BRep_Tool().Pnt(first), BRep_Tool().Pnt(last) |
531 | | if edg.Orientation(): |
| 550 | # Iz točk najdemo robove |
| 551 | _map = TopTools_IndexedDataMapOfShapeListOfShape() |
| 552 | topexp_MapShapesAndAncestors(oblika, TopAbs_VERTEX, TopAbs_EDGE, _map) |
| 553 | results = _map.FindFromKey(vert) |
| 554 | topology_iterator = TopTools_ListIteratorOfListOfShape(results) |
| 555 | while topology_iterator.More(): |
| 556 | edge = topods_Edge(topology_iterator.Value()) |
| 557 | topology_iterator.Next() |
| 558 | first, last = topexp_FirstVertex(edge), topexp_LastVertex(edge) |
| 559 | vertex, first_vert, last_vert = BRep_Tool().Pnt(vert), BRep_Tool().Pnt(first), BRep_Tool().Pnt(last) |
| 560 | if edge.Orientation(): |