BRepBuilderAPI_Transform will cause the program to crash when applied to a TopoShape from an Obj file (OCCT 7.7.0)

Hi

I used RWObj_CafReader to read an Obj file and obtained a TopoShape.

Since I want to scale the shape, I used BRepBuilderAPI_Transform.

BRepBuilderAPI_Transform(aTopoShape, scalingTransform, true, true);

However, executing this causes the program to crash.

Do I need any additional settings? or is this an issue with version 7.7?

The Obj file can be downloaded from the attachment.

Dmitrii Pasukhin's picture

Hello, 7.7 have a problem with transformation of mesh. Could you please check 7.8 or latter branch?
Best regards, Dmitrii

Mason Chen's picture

Hi
I have already tried to read this Obj file using OCCT 7.8.1. Similarly, after scaling the TopoShape using BRepBuilderAPI_Transform, the program still crashes. Could development team test this Obj file?

Dmitrii Pasukhin's picture

Hello, the issue with transformation is fixed in latest IR.

You have no share which type of transformation you applied. But common crash was fixed in issue: https://tracker.dev.opencascade.org/view.php?id=33781

Best regards, Dmitrii.

Mason Chen's picture

Hi
I create a scalingTransform, like following

gp_Trsf scaleTransform;
scaleTransform.SetScale(gp_Pnt(), 100);
BRepBuilderAPI_Transform shapeBuilder(aTopoShape, scaleTransform, true, true);
TopoDS_Shape scaledShape = shapeBuilder.Shape();

I use try and catch but did not get any error response.
Is there any incorrect operation that caused this issue?

Dmitrii Pasukhin's picture

No, everything is correct with your code. The issue was inside transformer. It was a bug. Now it fixed (latest master).

Best regards, Dmitrii.