711 | | nagib = BRepOffsetAPI_DraftAngle(Oblika) |
712 | | for f in topo.faces(): |
713 | | surf = Handle_Geom_Plane_DownCast(BRep_Tool_Surface(f)).GetObject() |
714 | | dirf = surf.Pln().Axis().Direction() |
715 | | ddd = gp_Dir(0,0,1) |
716 | | if dirf.IsNormal(ddd, Precision_Angular()): |
717 | | nagib.Add(f, ddd, math.radians(25), gp_Pln(gp_Ax3(gp_XOY()))) |
| 711 | topExp = TopExp_Explorer() |
| 712 | topExp.Init(oblika, TopAbs_FACE) |
| 713 | while topExp.More(): |
| 714 | face = topods_Face(topExp.Current()) |
| 715 | surface = Handle_Geom_Plane_DownCast(BRep_Tool_Surface(face)).GetObject() |
| 716 | smer_normale = surface.Pln().Axis().Direction() |
| 717 | os = gp_Dir(0, 0, 1) |
| 718 | if smer_normale.IsNormal(os, precision_Angular()): |
| 719 | nagib.Add(face, os, math.radians(15), gp_Pln(gp_Ax3(gp_XOY()))) |
| 720 | topExp.Next() |