For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS2D_ProjShape bugs

jelle's picture
Forums: 

Hi,

I'm trying to a HLR projection to PostScript.
I'm trying to use AIS2D_ProjShape to build the HLR projection, such that the result can be viewed in a 2d viewer, and exported from there to a PostScript file.

projection = AIS2D_ProjShape(proj)
projection.SetContext(display2d.Context_handle)
projection.Add(box) # simple BrepPrimAPI_MakeBox(1,1,1).Shape()

When calling projection.Add(box) OCC segfaults. OSX's reportcrasher reports the following:
0 libTKV2d.0.0.0.dylib 0x04facdb0 GGraphic2d_SetOfCurves::Add(Handle_Geom2d_Curve const&) + 192
1 libTKV2d.0.0.0.dylib 0x04fa374f AIS2D_ProjShape::DrawCurves(TopoDS_Shape const&, Handle_GGraphic2d_SetOfCurves&) + 127
2 libTKV2d.0.0.0.dylib 0x04fa414c AIS2D_ProjShape::ComputeShape() + 2012
3 _AIS2D.so 0x0bfde97d _wrap_AIS2D_ProjShape_Add + 385 (AIS2D_wrap.c:8499)

Any ideas how to overcome this issue? AIS2D_ProjShape seems key to plotting in OCC, so its a real pity this isnt working out.

Thanks,

-jelle