Changes between Version 48 and Version 49 of PythonOcc/primitives


Ignore:
Timestamp:
Nov 16, 2015, 11:47:40 AM (5 years ago)
Author:
dpenko
Comment:

Popravil kodo pri "izdelava posnetij"

Legend:

Unmodified
Added
Removed
Modified
  • PythonOcc/primitives

    v48 v49  
    614614from OCC.BRepFilletAPI import * #Knjiznica z zaokrozitvami
    615615from OCC.BRep import *
    616 from OCC.TopExp import *
    617616from OCC.TopAbs import *
    618617from OCC.TopTools import *
     
    634633{{{
    635634#!python
    636 posnetje = BRepFilletAPI_MakeChamfer(Olika)
     635a = 100
     636Oblika = BRepPrimAPI_MakeBox(a,a,a).Shape()
     637posnetje = BRepFilletAPI_MakeChamfer(Oblika)
    637638Razdalja = 20 #Poljubno
    638639topExp = TopExp_Explorer()
     
    652653    first, last = topexp_FirstVertex(edge), topexp_LastVertex(edge)
    653654    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:
    655656        for face in face_results:
    656657            posnetje.Add(Razdalja, edge, face)
     
    660661    anEdgeExplorer.Next()
    661662posnetje.Build()
    662 kocka = posnetje.Shape()
     663Oblika_Posnetje = posnetje.Shape()
    663664}}}
    664665