From: eap Date: Thu, 17 Mar 2005 08:31:09 +0000 (+0000) Subject: Dump Python. Express rotation angle as factor*PI X-Git-Tag: T_22_03_05~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=414efde4575171128fad794849aa07a1f22f6f6f;p=modules%2Fgeom.git Dump Python. Express rotation angle as factor*PI --- diff --git a/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx b/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx index f6d6b26e2..dc8ff1bab 100644 --- a/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_I3DPrimOperations.cxx @@ -898,7 +898,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeRevolutionAxisAngle (Handle( } //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("; @@ -906,7 +906,7 @@ Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeRevolutionAxisAngle (Handle( aDescr += (anEntry+", "); TDF_Tool::Entry(theAxis->GetEntry(), anEntry); aDescr += (anEntry+", "); - aDescr += (TCollection_AsciiString(theAngle)+")"); + aDescr += (TCollection_AsciiString(theAngle/PI)+"*math.pi)"); aFunction->SetDescription(aDescr);