2012/8/13 Charles Sharman <charles.shar...@skybeam.com>

> I discovered the issue.  I wasn't copying the TCL calls closely enough.
>
> After this line in OCCViewer.py:
>
> shape_to_display = OCC.AIS2D.AIS2D_ProjShape(proj, 0, 0, 0)
>
> I added the following line:
>
> handle_shape_to_display =
> OCC.AIS2D.Handle_AIS2D_ProjShape(shape_to_display)
>
> That fixed the segmentation fault.  Now I can view 2D shapes with
> AIS2D_Projshape.  I had to add Context.EraseAll() and
> Context.UpdateCurrentViewer() commands a little further down to clean-up
> the
> drawing as I tried the cube and sphere examples.
>
> Give me a couple days to add some obviously needed functionality (panning,
> zooming, orbiting, etc.), then I'll submit a bug fix to the code
> repository.
>
> - Charles
>
>
>
Hi Charles,

Thanks very much for diving into 2D drawing issues. It's something we
did'nt investigate that much. You can either submit a bugfix or, even
better, create a pull request (please follow the pythonocc github
repository link: https://github.com/tpaviot/pythonocc).

Did you run your tests with the latest pythonocc master branch revision ?

Best Regards,

Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to