View Issue Details

IDProjectCategoryView StatusLast Update
0032324Open CASCADEOCCT:Modeling Algorithmspublic2023-08-01 15:08
ReporterdbvAssigned Tomsv 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Target VersionUnscheduled 
Summary0032324: Modeling Algorithms - Improve BOPAlgo_Options::DumpErrors() output
DescriptionThe BOPAlgo_Options::DumpErrors method is currently printing error codes to output.
In order to get human-readable errors, you have to perform the following manipulations:
const auto& fails = bop.GetReport()->GetAlerts(Message_Fail);
for (Message_ListOfAlert::Iterator it(fails); it.More(); it.Next())
{
  Message_Msg msg(it.Value()->GetMessageKey());
  const auto text = msg.Get();
}

which is not a very convenient way.
Steps To ReproduceBOPAlgo_BOP bop;
bop.AddArgument(object);
bop.AddTool(tool);
bop.SetOperation(operation);
bop.Perform();
std::stringstream errors;
if (bop.HasErrors())
{
  bop.DumpErrors(errors);
}
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-04-23 15:45 dbv New Issue
2021-04-23 15:45 dbv Assigned To => msv
2021-04-23 15:46 dbv Description Updated
2021-04-23 15:48 emv Description Updated
2021-04-23 16:18 kgv Severity minor => feature
2021-04-23 16:18 kgv Summary Improve BOPAlgo_Options::DumpErrors output => Modeling Algorithms - Improve BOPAlgo_Options::DumpErrors() output
2021-08-29 19:24 msv Target Version 7.6.0 => 7.7.0
2022-10-24 10:41 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:08 dpasukhi Target Version 7.8.0 => Unscheduled