tpaviot / pythonocc-demos

Examples and demos for the pythonocc CAD package
219 stars 117 forks source link

Problem with some demos #14

Closed cristobaltapia closed 5 years ago

cristobaltapia commented 5 years ago

I have installed pythonocc-core from the master branch of the git repo. Everything works, but some demos are giving me some errors. For the file examples/core_display_export_EF.py, for example, I can correct this with the following modification:

--- a/examples/core_display_export_to_EF.py
+++ b/examples/core_display_export_to_EF.py
@@ -27,7 +27,7 @@ display, start_display, add_menu, add_function_to_menu = init_display()
 my_box = BRepPrimAPI_MakeTorus(40., 20.).Shape()

 display.DisplayShape(my_box, update=True)
-f = display.View.View()
+f = display.View.View().GetObject()

This was the code up to commit e59acdce5720d84ce76134789b48c268e36446d6, where this and other files were edited "to use transparent handles". Now my question is, for which version of pythonocc-core is this? 0.18.1?

cristobaltapia commented 5 years ago

Forget this... I was using an older version python-occ. Sorry.