<div dir="ltr">Hello VTK<div><br></div><div>This super simple program does not give me the same result with VTK 7.1 (OpenGL2 backend) than it did with VTK 6.3 (old OpenGL backend)<br><br>//----------------------------------------------------------------------------------------------------------------</div><div><div>#include "vtkIdList.h"</div><div>#include "vtkPNGWriter.h"</div><div>#include "vtkPolyData.h"</div><div>#include "vtkPolyDataMapper.h"</div><div>#include "vtkProperty.h"</div><div>#include "vtkRenderWindow.h"</div><div>#include "vtkRenderWindowInteractor.h"</div><div>#include "vtkRenderer.h"</div><div>#include "vtkWindowToImageFilter.h"</div><div><br></div><div>int main( int argc, char *argv[] ){</div><div><br></div><div>    vtkSmartPointer<vtkPoints> l_vertex = vtkSmartPointer<vtkPoints>::New();</div><div>    l_vertex->SetNumberOfPoints( 1 );</div><div><br></div><div>    vtkSmartPointer<vtkIdList> l_pix_cell = vtkSmartPointer<vtkIdList>::New();</div><div>    l_pix_cell->InsertNextId( 0 );</div><div><br></div><div>    vtkSmartPointer<vtkPolyData> l_polydata = vtkSmartPointer<vtkPolyData>::New();</div><div>    l_polydata->Allocate( 1 );</div><div>    l_polydata->SetPoints( l_vertex );</div><div>    l_polydata->InsertNextCell( VTK_VERTEX, l_pix_cell );</div><div><br></div><div>    vtkSmartPointer<vtkPolyDataMapper> l_mapper = vtkSmartPointer<vtkPolyDataMapper>::New();</div><div>    l_mapper->SetInputData( l_polydata );</div><div><br></div><div>    vtkSmartPointer<vtkActor> l_actor = vtkSmartPointer<vtkActor>::New();</div><div>    l_actor->SetMapper( l_mapper );</div><div>    l_actor->GetProperty()->SetPointSize( 20 );</div><div><br></div><div>    vtkSmartPointer<vtkRenderer> l_renderer = vtkSmartPointer<vtkRenderer>::New();</div><div>    l_renderer->AddActor( l_actor );</div><div><br></div><div>    vtkSmartPointer<vtkRenderWindow> l_render_window = vtkSmartPointer<vtkRenderWindow>::New();</div><div>    l_render_window->AddRenderer( l_renderer );</div><div>    l_render_window->Render();</div><div><br></div><div>    vtkSmartPointer<vtkWindowToImageFilter> l_window_to_image = vtkSmartPointer<vtkWindowToImageFilter>::New();</div><div>    l_window_to_image->SetInput( l_render_window );</div><div><br></div><div>    vtkSmartPointer<vtkPNGWriter> l_writer = vtkSmartPointer<vtkPNGWriter>::New();</div><div>    l_writer->SetFileName( "simple-vertex.png" );</div><div>    l_writer->SetInputConnection( l_window_to_image->GetOutputPort() );</div><div>    l_writer->Write();</div><div>}</div></div><div>//----------------------------------------------------------------------------------------------------------------</div><div><br></div><div>The VTK 6.3 vertex was a nice round while the VTK 7.1 is a square, see the attached screenshot ...<br><br>Is there some additional parameter/option that need to be turned on somewhere to restore that functionality ?<br><br>Thanks<br>Simon</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div></div>