[vtkusers] Why does the OBJ (WaveFront) Exporter only take vtkRenderWindow as input?

Ken Martin ken.martin at kitware.com
Mon Jun 25 11:12:05 EDT 2018


I believe it is because OBJ files often go with MTL files and we need the
actor/properties to write out the materials. Exporters in VTK are designed
to write our a scene which can include positions, textures, material
properties, etc.  I think there is a vtkOBJWriter class that may be more in
line with what you are suggesting.

On Tue, Jun 19, 2018 at 4:26 PM vtk user <vtk_user at gmx.de> wrote:

> Hello vtk users,
>
> I was asking myself why the vtkOBJExporter has the methods
> SetInput(vtkRenderWindow *renWin) and SetRenderWindow(vtkRenderWindow
> *renWin), but no simple SetInputData(vtkPolyData *poly). As far as I
> checked, WaveFront also only stores geometries (like STLs) and no contexts,
> please correct me if I am wrong. So why the detour?
>
> Thanks alot!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180625/6969c98f/attachment.html>


More information about the vtkusers mailing list