BRepBuilderAPI_GTransform Crash

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

Dmitrii Pasukhin's picture

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.

martijn db's picture

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

Attachments: