DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0025512

BRepAlgoAPI_Section crash.

CommunityOCCT:Modeling Algorithmsnew5 public notes

Search issues

Description

Hello!
I trying to split the shape using a plane gp_Pln. When the plane passes through the edge of the shape, i'm catch an exception "NotDone" in BRepAlgoAPI_Section. I'm attached code and model, wich causes an exception.
Help me solve this problem.
Thank!

Steps to reproduce

Build a small example from archive Attachment 2 (ZIP).
Run this example with modelForExample.stp in command line parameter.

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 1
A Standard_Failure with the text "NotDone" can be handled. Unless there any sign of data corruption, an exception (thrown purposely) does not justify the severity "crash"
02Commenter 1
after importing your step file. model003 fails the bopcheck "SelfIntersection"
If i understand your step handling correctly, at the end of the for loop
TopoDS_Shape "shape" is set to the last shape of the file ("model003").

03Author
Thank you for your answer, Commenter 1. Exception may be was thrown because .step file incorrect. I wrote another example where BRepAlgoAPI_Section working correctly (without exceptions) but when i try split shape with BRepFeat_SplitShape i get an unexpected result. I attached this example: Attachment 1 (ZIP) (cmake project). There a cutting plane gp_Pln passes via Vertex. If i move the cutting plane the above or below this Vertex then i get the correct result. Can you comment on this behaviour a split-mechanism?
04Commenter 1
I'm sorry I haven't used BRepFeat_SplitShape, yet.
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]