return *this;
}
+ TPythonDump& TPythonDump::operator<< (const Handle(TColStd_HSequenceOfTransient)& theObjects)
+ {
+ Standard_Integer aLength = theObjects->Length();
+ if ( aLength > 1 ) {
+ myStream << "[";
+ }
+ for ( Standard_Integer i = 1; i <= aLength; i++ ) {
+ *this << Handle(GEOM_Object)::DownCast(theObjects->Value(i));
+ if ( i < aLength ) myStream << ", ";
+ }
+ if ( aLength > 1 ) {
+ myStream << "]";
+ }
+ return *this;
+ }
+
TPythonDump& TPythonDump::operator<< (const GEOM_BaseObject* theObject)
{
if ( !theObject ) {
Standard_EXPORT TPythonDump& operator<< (const TCollection_AsciiString theArg);
Standard_EXPORT TPythonDump& operator<< (const TopAbs_ShapeEnum theArg);
Standard_EXPORT TPythonDump& operator<< (const Handle(GEOM_BaseObject)& theObject);
+ Standard_EXPORT TPythonDump& operator<< (const Handle(TColStd_HSequenceOfTransient)& theObjects);
Standard_EXPORT TPythonDump& operator<< (const GEOM_BaseObject* theObject);
};
if (theFormatName != "IGES_UNIT") {
GEOM::TPythonDump pd (aFunction);
if (theFormatName == "BREP")
- pd << anImported << " = geompy.ImportBREP(\"" << theFileName.ToCString() << "\")";
+ pd << aSeq << " = geompy.ImportBREP(\"" << theFileName.ToCString() << "\")";
else if (theFormatName == "IGES")
- pd << anImported << " = geompy.ImportIGES(\"" << theFileName.ToCString() << "\")";
+ pd << aSeq << " = geompy.ImportIGES(\"" << theFileName.ToCString() << "\")";
else if (theFormatName == "IGES_SCALE")
- pd << anImported << " = geompy.ImportIGES(\"" << theFileName.ToCString() << "\", True)";
+ pd << aSeq << " = geompy.ImportIGES(\"" << theFileName.ToCString() << "\", True)";
else if (theFormatName == "STEP")
- pd << anImported << " = geompy.ImportSTEP(\"" << theFileName.ToCString() << "\")";
+ pd << aSeq << " = geompy.ImportSTEP(\"" << theFileName.ToCString() << "\")";
else if (theFormatName == "STEP_SCALE")
- pd << anImported << " = geompy.ImportSTEP(\"" << theFileName.ToCString() << "\", True)";
+ pd << aSeq << " = geompy.ImportSTEP(\"" << theFileName.ToCString() << "\", True)";
else {
- pd << anImported << " = geompy.ImportFile(\""
+ pd << aSeq << " = geompy.ImportFile(\""
<< theFileName.ToCString() << "\", \"" << theFormatName.ToCString() << "\")";
}
}