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