mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -899,6 +899,10 @@ static Standard_Integer VtkMoveTo(Draw_Interpretor& theDI,
|
||||
|
||||
Standard_Integer anY = GetInteractor()->GetRenderWindow()->GetSize()[1] - atoi (theArgs[2]) - 1;
|
||||
GetInteractor()->MoveTo (atoi (theArgs[1]), anY);
|
||||
|
||||
gp_XYZ aPickPnt;
|
||||
GetInteractor()->Selector()->GetPickPosition (aPickPnt.ChangeData());
|
||||
theDI << aPickPnt.X() << " " << aPickPnt.Y() << " " << aPickPnt.Z();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -58,6 +58,7 @@ public:
|
||||
virtual void Enable();
|
||||
virtual void Start() { }
|
||||
|
||||
const PSelector& Selector() const { return mySelector; }
|
||||
void SetShapePicker (const PSelector& theSelector);
|
||||
void SetPipelines (const Handle(ShapePipelineMap)& thePipelines);
|
||||
void SetOCCWindow (const Handle(Aspect_Window)& theWindow);
|
||||
|
Reference in New Issue
Block a user