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

BRepOffsetAPI_ThruSections crashes when calling build()

Alexander Luger's picture

Dear community,

I want to close a cylindrical surface (generate solid). Therefore I pass the outer wire of a cylindrical surface to BRepOffsetAPI_ThruSections.

TopoDS_Wire outerWire = BRepTools::OuterWire(TopoDS::Face(myCylinderShape));
BRepOffsetAPI_ThruSections aSolidGenerator(Standard_True,Standard_False);

My code always crashes when I call aSolidGenerator.Build(). "access violation when reading at position ..."

What's the problem with my code?

Thanks in advance.

Best regards, alex