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

TopoDS_Shell.ShapeType() returns Random numbers

Tobias's picture


I am new to OpenCascade and created a new Box by using BRepPrimAPI_MakeBox.
The box is constructed correct ( tested with STEP output ).

When accessing the ShapeType() method (Box.ShapeType()) it will give me random numbers and when accessing the second time the program crashes (Segmentation fault , is trying to access 0x00 ).

Can you give me some hints which could cause this?

Cheers Tobias

Yogesh Sajanikar's picture

Check if Box.IsNull is false. If it is true, the box is not created.

Tobias's picture

Box.IsNull is false