mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
Placed a check if any function is added in GetFreeBoundaries operation
This commit is contained in:
parent
fa5a40f774
commit
3a675cc5c0
@ -719,34 +719,37 @@ bool GEOMImpl_IHealingOperations::GetFreeBoundary (Handle(GEOM_Object) theObject
|
|||||||
theOpen->Append(anObj);
|
theOpen->Append(anObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Make a Python command
|
if(!aFunction.IsNull()) {
|
||||||
GEOM::TPythonDump pd (aFunction);
|
|
||||||
|
|
||||||
Standard_Integer i, aLen = theClosed->Length();
|
//Make a Python command
|
||||||
if (aLen > 0) {
|
GEOM::TPythonDump pd (aFunction);
|
||||||
pd << "(isDone, [";
|
|
||||||
for (i = 1; i <= aLen; i++) {
|
Standard_Integer i, aLen = theClosed->Length();
|
||||||
Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theClosed->Value(i));
|
if (aLen > 0) {
|
||||||
pd << anObj_i << ((i < aLen) ? ", " : "");
|
pd << "(isDone, [";
|
||||||
|
for (i = 1; i <= aLen; i++) {
|
||||||
|
Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theClosed->Value(i));
|
||||||
|
pd << anObj_i << ((i < aLen) ? ", " : "");
|
||||||
|
}
|
||||||
|
pd << "], ";
|
||||||
|
} else {
|
||||||
|
pd << "(isDone, empty_list, ";
|
||||||
}
|
}
|
||||||
pd << "], ";
|
|
||||||
} else {
|
|
||||||
pd << "(isDone, empty_list, ";
|
|
||||||
}
|
|
||||||
|
|
||||||
aLen = theOpen->Length();
|
aLen = theOpen->Length();
|
||||||
if (aLen > 0) {
|
if (aLen > 0) {
|
||||||
pd << "[";
|
pd << "[";
|
||||||
for (i = 1; i <= aLen; i++) {
|
for (i = 1; i <= aLen; i++) {
|
||||||
Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theOpen->Value(i));
|
Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theOpen->Value(i));
|
||||||
pd << anObj_i << ((i < aLen) ? ", " : "");
|
pd << anObj_i << ((i < aLen) ? ", " : "");
|
||||||
|
}
|
||||||
|
pd << "]";
|
||||||
|
} else {
|
||||||
|
pd << "empty_list";
|
||||||
}
|
}
|
||||||
pd << "]";
|
|
||||||
} else {
|
|
||||||
pd << "empty_list";
|
|
||||||
}
|
|
||||||
|
|
||||||
pd << ") = geompy.GetFreeBoundary(" << theObject << ")";
|
pd << ") = geompy.GetFreeBoundary(" << theObject << ")";
|
||||||
|
}
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user