Mon, 12/01/2025 - 13:14
Hello,
The ShapeUpgrade_UnifySameDomain build gives me an error for the attached brep file.
Is my input invalid? Or is this a bug in the OCCT?
Also, is there some kind of validation I can do before unifying to prevent crashes?
Exception thrown at 0x00007FF8920CC77C (TKG2d.dll) in application.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
TopoDS_Shape shape;
BRep_Builder builder;
std::ifstream f("C:\\Path\\To\\file.brep");
BRepTools::Read(shape, f, builder);
ShapeUpgrade_UnifySameDomain unifyDomains(shape, true, true, true);
unifyDomains.SetSafeInputMode(false);
unifyDomains.SetLinearTolerance(0.001);
unifyDomains.SetAngularTolerance(0.001);
unifyDomains.Build();
TopoDS_Shape unifiedShape = unifyDomains.Shape();
Thanks,
Martijn
Wed, 12/03/2025 - 19:36
PR: Modelling - ShapeUpgrade_UnifySameDomain crash by AtheneNoctuaPt · Pull Request #876 · Open-Cascade-SAS/OCCT