View Issue Details

IDProjectCategoryView StatusLast Update
0025512CommunityOCCT:Modeling Algorithmspublic2016-09-07 14:47
ReporterAlexander Trots Assigned ToAlexander Trots  
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformWindowsOSWindows 7 SP1 
Product Version6.7.1 
Summary0025512: BRepAlgoAPI_Section crash.
DescriptionHello!
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 ReproduceBuild a small example from archive SectionCrash.zip.
Run this example with modelForExample.stp in command line parameter.
TagsNo tags attached.
Test case number

Attached Files

  • SectionCrash.zip (7,577 bytes)
  • example3.zip (3,816 bytes)

Activities

Alexander Trots

2014-11-23 23:51

reporter  

SectionCrash.zip (7,577 bytes)

shoogen

2014-11-24 10:01

reporter   ~0034628

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"

shoogen

2014-11-24 10:10

reporter   ~0034629

Last edited: 2014-11-24 10:17

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").

Alexander Trots

2014-11-26 00:37

reporter  

example3.zip (3,816 bytes)

Alexander Trots

2014-11-26 01:02

reporter   ~0034685

Thank you for your answer, shoogen. 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: example3.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?

shoogen

2014-11-26 02:15

reporter   ~0034686

I'm sorry I haven't used BRepFeat_SplitShape, yet.

git

2016-09-07 14:47

administrator   ~0057565

Branch CR25512 has been deleted by inv.

SHA-1: 53adb21a62eceec64a8637dafe1bce2b2dc42c10

Issue History

Date Modified Username Field Change
2014-11-23 23:51 Alexander Trots New Issue
2014-11-23 23:51 Alexander Trots Assigned To => msv
2014-11-23 23:51 Alexander Trots File Added: SectionCrash.zip
2014-11-24 10:01 shoogen Note Added: 0034628
2014-11-24 10:10 shoogen Note Added: 0034629
2014-11-24 10:16 shoogen Note Edited: 0034629
2014-11-24 10:17 shoogen Note Edited: 0034629
2014-11-24 12:12 Alexander Trots Assigned To msv => Alexander Trots
2014-11-26 00:37 Alexander Trots File Added: example3.zip
2014-11-26 01:02 Alexander Trots Note Added: 0034685
2014-11-26 02:15 shoogen Note Added: 0034686
2016-09-07 14:47 git Note Added: 0057565