DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

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

Data Exchange and Application FrameworkWed, 07/17/2024 - 04:575 replies

Browse this forum
QuestionAuthor

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.

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Author

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?

03Commenter-1

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, Commenter-1.

04Author

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?

05Commenter-1

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

Best regards, Commenter-1.