anArray->SetValue(1, anIndices.FindIndex(V));
aResult = GetEngine()->AddSubShape(theShape, anArray);
- // The GetPoint() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-
- // Make a Python command
- GEOM::TPythonDump(aFunction, /*append=*/true)
- << aResult << " = geompy.GetVertexNearPoint("
- << theShape << ", " << thePoint << ")";
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();\r
+\r
+ // Make a Python command\r
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetVertexNearPoint("\r
+ << theShape << ", " << thePoint << ")";\r
SetErrorCode(OK);
return aResult;