Wed, 07/17/2024 - 04:57
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.
Wed, 07/17/2024 - 09:28
Hello, 7.7 have a problem with transformation of mesh. Could you please check 7.8 or latter branch?
Best regards, Dmitrii
Tue, 08/06/2024 - 07:53
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?
Tue, 08/06/2024 - 10:14
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.
Wed, 08/07/2024 - 04:41
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?
Wed, 08/07/2024 - 10:44
No, everything is correct with your code. The issue was inside transformer. It was a bug. Now it fixed (latest master).
Best regards, Dmitrii.