ShapeCustom::SweptToElementary() running into access violation

Hello,

I am trying to pass parts of my models through the function ShapeCustom::SweptToElementary(). I am using OpenCascade 7.6.0.
However, the function tends to crash, giving me an access violation exception when running in debug mode.

There seems to be a problem in ShapeCustom_SweptToElementary::NewCurve2d().
At line 247: Handle(Geom_Surface) NS = BRep_Tool::Surface(NewF,L);
I think there is a problem here with NewF, but I am not 100% sure yet what.

I use this model for testing, which definitely has both Linear Extrusion faces and Revolution faces:
https://grabcad.com/library/model-centrifugal-jet-engine-1
(I could attach the step file, it is only 5.5 mb. But I am not sure if it is allowed)

Any ideas?

Nathaniel Essenberg's picture

I attached part of the model that causes this crash. It contains some surfaces of Linear Extrusion.

Attachments: