mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-15 21:03:07 +05:00
22237: Study dump produces a Python code containing syntax errors - merged from V6_7_BR
This commit is contained in:
parent
320d3b31cb
commit
d2a432d2d6
@ -635,13 +635,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) << aResult << " = geompy.GetVertexNearPoint("
|
||||||
GEOM::TPythonDump(aFunction, /*append=*/true)
|
<< theShape << ", " << thePoint << ")";
|
||||||
<< aResult << " = geompy.GetVertexNearPoint("
|
|
||||||
<< theShape << ", " << thePoint << ")";
|
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
return aResult;
|
return aResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user