[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    [vtk-developers] Writing a single dataset to VRML
From:       Shawn Waldon <swaldon () cs ! unc ! edu>
Date:       2013-07-16 18:25:38
Message-ID: CAKqg6a7oMdPic_P6HY6x+t5tHqCmCixXEuPkVOf4zP1AdtUjeg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi VTK developers,

Recently for a project I was working on I needed a way to export a single
dataset from vtk to an external modeling software like Blender with the
color data from vtk.  In order to use a well supported format that has
support for per-vertex color (the data was colored by point data), I
decided to user VRML.  I didn't want to create a separate renderwindow just
to export the data, so looking back and forth between the output of
vtkVRMLExporter and the code from vtkDelimitedTextWriter, I wrote a
subclass of vtkWriter that will export an input dataset (currently
polydata, could be extended) to VRML with by-point coloring based on an
array and a vtkColorTransferFunction.

So now my question:  is there any interest in me submitting this filter as
an addition to VTK?  Is this something that no one else would use or would
be against some VTK design rule like 'writers should be unaware of color'?

-- 
Shawn Waldon
Graduate Research Assistant
Department of Computer Science
University of North Carolina at Chapel Hill
swaldon@cs.unc.edu

[Attachment #5 (text/html)]

<div dir="ltr">Hi VTK developers,<div><br></div><div>Recently for a project I was \
working on I needed a way to export a single dataset from vtk to an external modeling \
software like Blender with the color data from vtk.  In order to use a well supported \
format that has support for per-vertex color (the data was colored by point data), I \
decided to user VRML.  I didn&#39;t want to create a separate renderwindow just to \
export the data, so looking back and forth between the output of vtkVRMLExporter and \
the code from vtkDelimitedTextWriter, I wrote a subclass of vtkWriter that will \
export an input dataset (currently polydata, could be extended) to VRML with by-point \
coloring based on an array and a vtkColorTransferFunction.</div>


<div><br></div><div>So now my question:  is there any interest in me submitting this \
filter as an addition to VTK?  Is this something that no one else would use or would \
be against some VTK design rule like &#39;writers should be unaware of \
color&#39;?</div>

<div>
<div><br></div>-- <br><div dir="ltr">Shawn Waldon<div>Graduate Research \
Assistant</div><div>Department of Computer Science</div><div>University of North \
Carolina at Chapel Hill</div><div><a href="mailto:swaldon@cs.unc.edu" \
target="_blank">swaldon@cs.unc.edu</a></div>


</div>
</div></div>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic