1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030520: VIS - IVtkTools_ShapePicker::GetPickPosition() returns incorrect point

vmoveto and ivtkmoveto commands now print topmost picked 3D point.
This commit is contained in:
kgv
2019-02-26 08:17:19 +03:00
committed by apn
parent 3bb61eb0fe
commit 1e756cb979
6 changed files with 33 additions and 1 deletions

View File

@@ -193,6 +193,10 @@ void IVtkTools_ShapePicker::doPickImpl (double* thePos,
{
myOccPickerAlgo->Pick (thePos[0], thePos[1]);
}
PickPosition[0] = myOccPickerAlgo->TopPickedPoint().X();
PickPosition[1] = myOccPickerAlgo->TopPickedPoint().Y();
PickPosition[2] = myOccPickerAlgo->TopPickedPoint().Z();
}
//============================================================================