<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1516743586045_2587">Hi everyone,</div><div id="yui_3_16_0_ym19_1_1516743586045_2587"><br></div><div id="yui_3_16_0_ym19_1_1516743586045_2587" dir="ltr">I noticed that if I reset the camera after turning on vtkImplicitPlaneWidget2, nothing is visible, but if I reset the camera before, everything looks fine.  Am I not supposed to reset the camera after turning on the widget, or is there a bug?  I'm using VTK 8.0.1 and Python 3.6.3.</div><div id="yui_3_16_0_ym19_1_1516743586045_2587" dir="ltr">Here is the broken version:</div><div id="yui_3_16_0_ym19_1_1516743586045_2587" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10048">import vtk</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10049"><br id="yui_3_16_0_ym19_1_1516743586045_10050"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10051">cone = vtk.vtkConeSource()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10052">mapper = vtk.vtkPolyDataMapper()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10053">actor = vtk.vtkActor()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10054">renderer = vtk.vtkRenderer()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10055">window = vtk.vtkRenderWindow()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10056">interactor = vtk.vtkRenderWindowInteractor()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10057"><br id="yui_3_16_0_ym19_1_1516743586045_10058"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10059">mapper.SetInputConnection(cone.GetOutputPort())</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10060">actor.SetMapper(mapper)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10061">renderer.AddActor(actor)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10062">window.AddRenderer(renderer)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10063">interactor.SetRenderWindow(window)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10064"><br id="yui_3_16_0_ym19_1_1516743586045_10065"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10066">widget = vtk.vtkImplicitPlaneWidget2()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10067">widget.CreateDefaultRepresentation()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10068">rep = widget.GetImplicitPlaneRepresentation()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10069">widget.SetInteractor(interactor)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10070">rep.SetWidgetBounds(cone.GetOutput().GetBounds())</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10071">widget.On()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10072">renderer.ResetCamera()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10073"><br id="yui_3_16_0_ym19_1_1516743586045_10074"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_10075">interactor.Start()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9583"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9583">Working version for comparison (notice only the renderer.ResetCamera() line moved):</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9583"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9944">import vtk</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9945"><br id="yui_3_16_0_ym19_1_1516743586045_9946"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9947">cone = vtk.vtkConeSource()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9948">mapper = vtk.vtkPolyDataMapper()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9949">actor = vtk.vtkActor()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9950">renderer = vtk.vtkRenderer()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9951">window = vtk.vtkRenderWindow()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9952">interactor = vtk.vtkRenderWindowInteractor()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9953"><br id="yui_3_16_0_ym19_1_1516743586045_9954"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9955">mapper.SetInputConnection(cone.GetOutputPort())</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9956">actor.SetMapper(mapper)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9957">renderer.AddActor(actor)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9958">window.AddRenderer(renderer)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9959">interactor.SetRenderWindow(window)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9960">renderer.ResetCamera()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9961"><br id="yui_3_16_0_ym19_1_1516743586045_9962"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9963">widget = vtk.vtkImplicitPlaneWidget2()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9964">widget.CreateDefaultRepresentation()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9965">rep = widget.GetImplicitPlaneRepresentation()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9966">widget.SetInteractor(interactor)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9967">rep.SetWidgetBounds(cone.GetOutput().GetBounds())</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9968">widget.On()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9969"><br id="yui_3_16_0_ym19_1_1516743586045_9970"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971">interactor.Start()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971">I tried printing the bounds of all props, and one of them (I think the sphere in vtkImplicitPlaneRepresentation) has bounds (0.0, 0.0, 0.0, 0.0, -1e+299, 1e+299), which may have caused the issue.  Also, I tried using vtkBoxWidget2 for comparison, and this widget didn't have any issue.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971">Thanks,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971">James</div><div dir="ltr" id="yui_3_16_0_ym19_1_1516743586045_9971"><br></div></div></body></html>