Fri, 11/28/2025 - 17:36
Forums:
Good afternoon,
I am trying to stretch a topods_face (plane), but the BRepBuilderAPI_GTransform crashes:
Microsoft C++ exception: Standard_ConstructionError
error message: Geom_TrimmedCurve::U1 == U2
gp_Vec dir(0, -1, -0);
gp_Pnt locOnPlane(800, 625, 183);
gp_Ax2 xdir(locOnPlane, dir.Reversed());
double multiplier = 0.75000000000002087;
gp_GTrsf x_aff;
x_aff.SetAffinity(xdir, multiplier);
BRepBuilderAPI_GTransform aBRepGTrsf(face, x_aff);
auto result = TopoDS::Face(aBRepGTrsf.Shape());
What could be the cause of this crash? I am using OCCT 7.9.
Thanks,
Martijn
Fri, 11/28/2025 - 23:16
Hello.
Please share the full code with Face creating or share the face as a .brep file.
Also, could you share it as a GitHub issue? I assume it is a bug, and can be resolved during 7.9.3 (next week). https://github.com/Open-Cascade-SAS/OCCT/issues/new/choose
Best regards, Dmitrii.
Mon, 12/01/2025 - 10:45
Hi,
Thanks for the response, I have created a github bug report.
Please note that I was not able to upload the brep to the github bug report form, so I have uploaded it in this thread instead.
Here is a link to the github thread:
https://github.com/Open-Cascade-SAS/OCCT/issues/872
Martijn