mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 17:50:35 +05:00
Mantis issue 0022237: Study dump produces a Python code containing syntax errors
This commit is contained in:
parent
4a8ba2e369
commit
5476768d0e
@ -634,13 +634,11 @@ Handle(GEOM_Object) GEOMImpl_IBlocksOperations::GetVertexNearPoint
|
|||||||
anArray->SetValue(1, anIndices.FindIndex(V));
|
anArray->SetValue(1, anIndices.FindIndex(V));
|
||||||
aResult = GetEngine()->AddSubShape(theShape, anArray);
|
aResult = GetEngine()->AddSubShape(theShape, anArray);
|
||||||
|
|
||||||
// The GetPoint() doesn't change object so no new function is required.
|
Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
|
||||||
Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
|
|
||||||
|
|
||||||
// Make a Python command
|
// Make a Python command
|
||||||
GEOM::TPythonDump(aFunction, /*append=*/true)
|
GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetVertexNearPoint("
|
||||||
<< aResult << " = geompy.GetVertexNearPoint("
|
<< theShape << ", " << thePoint << ")";
|
||||||
<< theShape << ", " << thePoint << ")";
|
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
return aResult;
|
return aResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user