<html><body bgcolor="#FFFFFF"><div></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: small; color: rgb(0, 35, 163); font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif; ">Good morning everyone!<br>I work with a VTK wrapping Java. <br>I try to display the bounding box around a dataSet.<br>I use a vtkOutlineFilter but I obtain just a box without the dataSet. Moreover, the box dimension is different from the dataSet's bounds.<br><br>This is a sample of my code:<br><br>vtkOutlineFilter boundingBox = new vtkOutlineFilter();<br>boundingBox.SetInput(myDataSet.getVtkDataSet());<br>boundingBox.Update();<br><br>vtkDataSet dataSet = boundingBox.GetOutput();<br><br><br>After this I display this new dataSet with this:<br><br>vtkMapper mapper = new vtkDataSetMapper();<br>((vtkDataSetMapper) mapper).SetInput(dataSet);<br><br>vtkActor actor = new vtkActor();<br>actor.GetProperty().EdgeVisibilityOn();<br>actor.SetMapper(mapper);<br><br>vtkPanel panel = new vtkPanel();<br>vtkRenderer renderer = panel.GetRenderer();<br>renderer.AddActor(actor);<br><br><br>Does anyone have any idea why I don't get a beautiful box around my dataSet?<br><br>Thanks.<br><br>Romain</span><br></div></body></html>