OMG! Charles, that's most valueable, this opens up PythonOCC to things like
technical drawing generation...
Wow, great news, thanks for delving deeper into this.

-jelle

On Mon, Aug 13, 2012 at 6:14 PM, Charles Sharman <
charles.shar...@skybeam.com> wrote:

> 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
>
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to