1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023748: Bad monitoring of intermediate results in offset commands

This commit is contained in:
nbv
2013-05-16 11:46:21 +04:00
parent ac29d56ac7
commit ab87e6fc2e
184 changed files with 2714 additions and 2170 deletions

View File

@@ -801,16 +801,33 @@ void BRepOffset_MakeOffset::MakeThickSolid()
Glue.Add (exp.Current());
}
Standard_Boolean YaResult = 0;
if (!myOffsetShape.IsNull()) {
for (exp.Init(myOffsetShape,TopAbs_FACE);exp.More(); exp.Next()) {
YaResult = 1;
Glue.Add (exp.Current().Reversed());
if (!myOffsetShape.IsNull())
{
for (exp.Init(myOffsetShape,TopAbs_FACE);exp.More(); exp.Next())
{
YaResult = 1;
Glue.Add (exp.Current().Reversed());
}
#ifdef DEB
if(YaResult == 0)
{
cout << "OffsetShape does not contain a FACES." << endl;
}
#endif
}
}
if (YaResult == 0) {
#ifdef DEB
else
{
cout << "OffsetShape is null!" << endl;
}
#endif
if (YaResult == 0)
{
myDone = Standard_False;
return;
}
}
myOffsetShape = Glue.Shells();
for (exp.Init(myOffsetShape,TopAbs_SHELL); exp.More(); exp.Next()) {
B.Add(Res,exp.Current());

File diff suppressed because it is too large Load Diff