<div dir="ltr"><div><div><div>Hi Richard,<br><br></div>The difference is the information the file format supports. The VRML format supports including color/textures, lighting information and most of the information about the scene. So it is an exporter given the vtkRenderWindow where that information exists and it exports the entire scene to the file. The STL file format only stores geometry, so it is a writer and should be given a single dataset as its input. If you want to export the whole scene to STL, your best path is probably to use vtkAppendPolyData to group all the data into a single dataset and connect that to the writer's input (be warned this will not get matrix transforms that are applied to the actors).<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 17, 2017 at 3:00 AM, Richard Anderson via vtk-developers <span dir="ltr"><<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10px"><div dir="ltr" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21686"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21664">Hello, </span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21665"><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21666"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21667">I can export vtkRenderWindow to VMRL file. Is there any way to export it to</span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21668"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21669">STL file? </span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21670"><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21671"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21672">I did not find vtkSTLExporter. There is only vtkSTLWriter. But it does not</span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21673"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21674">accept vtkRenderWindow. </span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21675"><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21676"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21677">Thanks,</span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21678"><span style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21679">Richard</span><br style="font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:13px" id="m_8638469741074378822yui_3_16_0_ym19_1_1502946154058_21680"></div></div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br></div>