}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
+ TCollection_AsciiString anEntry, aDescr("import math\n\t");
TDF_Tool::Entry(aRevolution->GetEntry(), anEntry);
aDescr += anEntry;
aDescr += " = geompy.MakeRevolution(";
aDescr += (anEntry+", ");
TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theAngle)+")");
+ aDescr += (TCollection_AsciiString(theAngle/PI)+"*math.pi)");
aFunction->SetDescription(aDescr);