Changes between Version 12 and Version 13 of PythonOcc/elbow


Ignore:
Timestamp:
Oct 29, 2013, 7:07:04 AM (6 years ago)
Author:
Leon Kos
Comment:

Chamfer

Legend:

Unmodified
Added
Removed
Modified
  • PythonOcc/elbow

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