Changes between Version 48 and Version 49 of PythonOcc/primitives
- Timestamp:
- Nov 16, 2015, 11:47:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonOcc/primitives
v48 v49 614 614 from OCC.BRepFilletAPI import * #Knjiznica z zaokrozitvami 615 615 from OCC.BRep import * 616 from OCC.TopExp import *617 616 from OCC.TopAbs import * 618 617 from OCC.TopTools import * … … 634 633 {{{ 635 634 #!python 636 posnetje = BRepFilletAPI_MakeChamfer(Olika) 635 a = 100 636 Oblika = BRepPrimAPI_MakeBox(a,a,a).Shape() 637 posnetje = BRepFilletAPI_MakeChamfer(Oblika) 637 638 Razdalja = 20 #Poljubno 638 639 topExp = TopExp_Explorer() … … 652 653 first, last = topexp_FirstVertex(edge), topexp_LastVertex(edge) 653 654 first_vert, last_vert = BRep_Tool().Pnt(first), BRep_Tool().Pnt(last) 654 if first_vert.Z()== b and last_vert.Z()==b:655 if first_vert.Z()==a and last_vert.Z()==a: 655 656 for face in face_results: 656 657 posnetje.Add(Razdalja, edge, face) … … 660 661 anEdgeExplorer.Next() 661 662 posnetje.Build() 662 kocka= posnetje.Shape()663 Oblika_Posnetje = posnetje.Shape() 663 664 }}} 664 665