
Fri, 09/11/2015 - 23:36
Forums:
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.
Tue, 09/15/2015 - 13:12
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
Tue, 09/15/2015 - 14:02
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
Tue, 12/08/2015 - 17:13
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
Wed, 12/09/2015 - 17:51
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