Changes between Version 99 and Version 100 of python


Ignore:
Timestamp:
Nov 10, 2015, 6:36:54 PM (9 years ago)
Author:
dpenko
Comment:

Posodobil definicijo naloge vaja124

Legend:

Unmodified
Added
Removed
Modified
  • python

    v99 v100  
    15941594{{{
    15951595#!python
    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
     1598zaokrozitev = BRepFilletAPI_MakeFillet(Oblika)
     1599anEdgeExplorer = 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()
    16031608}}}
    16041609