DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

BRepOffsetAPI_MakeOffset perform function crash

Modeling Data and AlgorithmsFri, 09/11/2015 - 23:364 replies

Browse this forum
QuestionAuthor

Hi
I am sorry for my english

Now, I interesting offset.
I using BRepOffsetAPI_MakeOffset class.

Some case perform function crashed. But dont throw exception.

This pseudo code

BRepOffsetAPI_MakeOffset offset(...);

offset.AdWire(wire);

try {
offset.Perform(offsetVal);
}
catch(Standard_Failure) //Every exception was caught.
{
...
}

for example
I have a circle, radius 10.
Offset value 20. but offset direction inside of circle. This case I want to catch exception.
it is not

Thanks.

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

Dear Suleyman,
Exception is raised in case if the algorithm is not initialized.
In other cases exception may be caught inside the algorithm with
following set of the operation status to NotDone.
Small hint: simply check result of offset operation, like below
offset.Perform(offsetVal);
if(!offset.IsDone()){ ...}

Best regards
FSR

02Author

Thanks for your reply

You said "check result of ofsett operation".
But I dont check. Because its crashed in Perform Function and I dont check(isdone)

Another advice, solve?

Best regards

03Commenter-2

Hello :)

same problem here. BRepOffsetAPI_MakeOffset::Perform(...) crashes with AccessViolation! This Exception can't be catched.

BTW: Is there any Error-Reporting provided by the Offset Algorithm?

Greetings

Alechseij

04Commenter-1

Dear Suleyman,

I suggest you to register the issue in OCCT Mantis BugTracker which is available via the Collaborative portal - http://dev.opencascade.org/index.php?q=home/get_involved.

Best regards

FSR