MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031041Community[OCCT] OCCT:Modeling Algorithmspublic2019-10-07 11:452019-10-16 18:54
Reporterdenix56 
Assigned Todenix56 
PrioritynormalSeveritycrash 
StatusfeedbackResolutionopen 
PlatformMSVC 2017 x64OSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0031041: Crash in BRepOffsetAPI_MakePipeShell
DescriptionThe following code causes access to null shape and as a result - crash. I think it was caused by 0029204: BRepOffsetAPI_MakePipeShell produces invalid result and raises exception in Draw

double tol = 6.2377018066812730e-07;

sweep.SetTransitionMode(BRepBuilderAPI_TransitionMode::BRepBuilderAPI_RightCorner);
sweep.Add(profile, location, Standard_False, Standard_False);
sweep.SetTolerance(tol, tol);
sweep.Build();


The fix is to add in BRepFill_TrimShellCorner::ChooseSection check if firstedge and lastedge is null.
TagsNo tags attached.
Test case number
Attached Files? file icon profile.brep (1,069 bytes) 2019-10-07 11:45
? file icon location.brep (228 bytes) 2019-10-07 11:45
? file icon spine.brep (796 bytes) 2019-10-15 15:06

- Relationships

-  Notes
(0088105)
msv (developer)
2019-10-14 14:46
edited on: 2019-10-14 14:47

It seems the test case is incomplete. What are the parameters passed to the constructor of the algorithm? Where is the spine contour?

I would expect to reproduce the bug using the following draw script:

mksweep sp
addsweep pr loc
buildsweep r -C

The shape sp is missing in your input data.

(0088137)
denix56 (reporter)
2019-10-15 15:10

Sorry, forgot about it. I`ve uploaded the missing file

Here is the full code
BRepOffsetAPI_MakePipeShell sweep(spine);
sweep.SetTransitionMode(BRepBuilderAPI_TransitionMode::BRepBuilderAPI_RightCorner);
sweep.Add(profile, location, Standard_False, Standard_False);
sweep.SetTolerance(tol, tol);
sweep.Build();
(0088185)
denix56 (reporter)
2019-10-16 16:45

Reminder sent to: msv

(0088194)
msv (developer)
2019-10-16 18:54

I'll look at it soon. Just too much urgent work currently.

- Issue History
Date Modified Username Field Change
2019-10-07 11:45 denix56 New Issue
2019-10-07 11:45 denix56 Assigned To => msv
2019-10-07 11:45 denix56 File Added: profile.brep
2019-10-07 11:45 denix56 File Added: location.brep
2019-10-14 14:46 msv Note Added: 0088105
2019-10-14 14:46 msv Assigned To msv => denix56
2019-10-14 14:46 msv Status new => feedback
2019-10-14 14:47 msv Note Edited: 0088105 View Revisions
2019-10-15 15:06 denix56 File Added: spine.brep
2019-10-15 15:10 denix56 Note Added: 0088137
2019-10-16 16:45 denix56 Note Added: 0088185
2019-10-16 18:54 msv Note Added: 0088194


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker