<div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_1_1431173603378_86726"><span id="yui_3_16_0_1_1431173603378_89833">Hi Bill,</span></div><div id="yui_3_16_0_1_1431173603378_89211"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_86730" dir="ltr"><span id="yui_3_16_0_1_1431173603378_86729">I got a little better result using the code shown below. In this case, it went through the loop 4 times, which is the correct number of actors in my renderer. One of them had a null mapper, which was correct. Two of them contained only lines and one contained facets.</span></div><div id="yui_3_16_0_1_1431173603378_91723" dir="ltr"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_90469" dir="ltr"><span id="yui_3_16_0_1_1431173603378_90468">Outside the loop the Update() and Write() did not fail. However, most of the time I did not get a file. One time I did get a file and it looked reasonable. I imported this file using the code shown below the export method. When importing, the count was only one. The one imported actor contained facets and it rendered correctly.</span></div><div id="yui_3_16_0_1_1431173603378_94201" dir="ltr"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_94832" dir="ltr"><span id="yui_3_16_0_1_1431173603378_94831">This is an improvement, but there still seems to be a problem because the writer succeeds unpredictably writing the same data.</span></div><div id="yui_3_16_0_1_1431173603378_94202" dir="ltr"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_94833" dir="ltr"><span id="yui_3_16_0_1_1431173603378_94836">Any suggestions?</span></div><div id="yui_3_16_0_1_1431173603378_94205" dir="ltr"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_94203" dir="ltr"><span>Thanks,</span></div><div id="yui_3_16_0_1_1431173603378_94204" dir="ltr"><span>Kent</span></div><div id="yui_3_16_0_1_1431173603378_86728"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_86727"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_86101"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_86100"><span id="yui_3_16_0_1_1431173603378_86099"> public void exportGraphicFile(String filename) {<br> vtkXMLPolyDataWriter writer = new vtkXMLPolyDataWriter();<br> writer.SetFileName(filename);<br> writer.SetDataModeToAscii();</span></div><div id="yui_3_16_0_1_1431173603378_90464" dir="ltr"><span id="yui_3_16_0_1_1431173603378_86097"> vtkActorCollection actors = renderer.GetActors();<br> actors.InitTraversal();<br> for(int a = 0; a<actors.GetNumberOfItems(); ++a) {<br> vtkActor actor = actors.GetNextActor();<br> if(actor != null) {<br> vtkPolyDataMapper mapper = (vtkPolyDataMapper) actor.GetMapper();<br> if(mapper != null) {<br> vtkPolyData poly = mapper.GetInput();<br> <br> writer.AddInputDataObject(poly); <br> }<br> }<br> }<br> writer.Update();<br> writer.Write(); <br> }</span></div><div id="yui_3_16_0_1_1431173603378_90467" dir="ltr"><span></span><br></div><div id="yui_3_16_0_1_1431173603378_90465" dir="ltr"><span id="yui_3_16_0_1_1431173603378_90466"> public void importGraphicFile(String filename) {<br> //read all the data from the file<br> vtkXMLPolyDataReader reader = new vtkXMLPolyDataReader();<br> reader.SetFileName(filename);<br> reader.Update();<br> <br> int count = reader.GetNumberOfOutputPorts();<br> for(int i=0; i<count; i++) {<br> //Create a mapper and actor<br> vtkPolyData poly = reader.GetOutput(i);<br> vtkPolyDataMapper mapper = new vtkPolyDataMapper();<br> mapper.SetInputData(poly);<br> elementFaceActor.SetMapper(mapper);<br> }<br> updateView();<br>}<br></span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Saturday, May 9, 2015 1:05 PM, Kent Myers <<a href="/user/SendEmail.jtp?type=node&node=5731864&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv0481992760"><div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"><div id="yiv0481992760yui_3_16_0_1_1431173603378_64316"><span>Hi Bill,</span></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63174"><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63184"><span id="yiv0481992760yui_3_16_0_1_1431173603378_63684">The results of the print are at the end of this message. It looks to me like the polydata is ok. </span></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_65601"><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_64318"><span id="yiv0481992760yui_3_16_0_1_1431173603378_64317">Below is what my code looks like now. Is it possible there is something wrong with the Write method as called from Java?</span></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_71317"><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_71319"><span id="yiv0481992760yui_3_16_0_1_1431173603378_71318">By the way, your code that iterates through the actors in the renderer made me wonder if there would be a way to export multiple actors to the same VTP file. The vtkXMLPolyDataWriter class doesn't have a Close() method, so it seems that the file will be closed immediately after the first write. If you can give many any feedback on this question that would be great. </span></div><div><span></span><br clear="none"></div><div><span>For now the main issue is just to be able to call the write method without crashing.</span></div><div><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_74486"><span id="yiv0481992760yui_3_16_0_1_1431173603378_74485">Thanks,</span></div><div><span>Kent</span></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_65602"><span></span><br clear="none"></div><span id="yiv0481992760yui_3_16_0_1_1431173603378_64958"></span><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_67523"><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">public</font></font></b><font size="2"> </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">void</font></font></b><font id="yiv0481992760yui_3_16_0_1_1431173603378_67522" size="2"> exportGraphicFile(String </font><font id="yiv0481992760yui_3_16_0_1_1431173603378_67525" color="#6a3e3e" size="2"><font id="yiv0481992760yui_3_16_0_1_1431173603378_67524" color="#6a3e3e" size="2">filename</font></font><font size="2">) {</font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_65603"><font size="2">
</font></div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_65604"><font size="2"> </font><font id="yiv0481992760yui_3_16_0_1_1431173603378_67256" color="#3f7f5f" size="2"><font id="yiv0481992760yui_3_16_0_1_1431173603378_67255" color="#3f7f5f" size="2">//Write the file</font></font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_67521"><font color="#3f7f5f" size="2"><font color="#3f7f5f" size="2">
</font></font><font size="2"></font></div><div align="LEFT"><font size="2"> vtkXMLPolyDataWriter </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">writer</font></font><font size="2"> = </font><b><font color="#7f0055" size="2"><font color="#7f0055" size="2">new</font></font></b><font size="2"> vtkXMLPolyDataWriter();</font></div><div><font size="2">
</font></div><div align="LEFT"><font size="2"> </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">writer</font></font><font size="2">.SetDataModeToAscii();;</font></div><font id="yiv0481992760yui_3_16_0_1_1431173603378_64957" size="2"></font><div id="yiv0481992760yui_3_16_0_1_1431173603378_67520"><br clear="none"></div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_66242"><font size="2"> </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">writer</font></font><font size="2">.SetFileName(</font><font id="yiv0481992760yui_3_16_0_1_1431173603378_66251" color="#6a3e3e" size="2"><font id="yiv0481992760yui_3_16_0_1_1431173603378_66250" color="#6a3e3e" size="2">filename</font></font><font id="yiv0481992760yui_3_16_0_1_1431173603378_67257" size="2">);</font></div><font id="yiv0481992760yui_3_16_0_1_1431173603378_66240" size="2"></font><div id="yiv0481992760yui_3_16_0_1_1431173603378_66241"><br clear="none"></div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_66238"><font size="2"> vtkActor </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">testActor</font></font><font size="2"> = </font><font id="yiv0481992760yui_3_16_0_1_1431173603378_66248" color="#0000c0" size="2"><font id="yiv0481992760yui_3_16_0_1_1431173603378_66247" color="#0000c0" size="2">elementFaceActor</font></font><font size="2">;</font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_66237"><font size="2">
</font></div><div align="LEFT"><font size="2"> vtkPolyDataMapper </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">testMapper</font></font><font size="2"> = (vtkPolyDataMapper) </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">testActor</font></font><font size="2">.GetMapper();</font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_66246"><font size="2">
</font></div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_66245"><font size="2"> vtkPolyData </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">polyData</font></font><font size="2"> = </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">testMapper</font></font><font size="2">.GetInput();</font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_67258"><font size="2">
</font></div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_67259"><font size="2"> String </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">result</font></font><font size="2"> = </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">polyData</font></font><font size="2">.Print();</font></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_67519"><font size="2">
</font></div><div align="LEFT"><font size="2"> System.</font><b><i><font color="#0000c0" size="2"><font color="#0000c0" size="2">out</font></font></i></b><font size="2">.print(</font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">result</font></font><font size="2">);</font></div><font size="2"></font><div><br clear="none"></div><div align="LEFT"><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">writer</font></font><font size="2">.SetInputData(</font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">polyData</font></font><font size="2">);</font></div><font size="2"></font><div><br clear="none"></div><font id="yiv0481992760yui_3_16_0_1_1431173603378_65598" color="#3f7f5f" size="2"><font color="#3f7f5f" size="2"></font></font><div align="LEFT">// writer.Update();</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_65597"><br clear="none"></div><font size="2"></font><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_65600"><font size="2"> </font><font color="#6a3e3e" size="2"><font color="#6a3e3e" size="2">writer</font></font><font id="yiv0481992760yui_3_16_0_1_1431173603378_65599" size="2">.Write();</font></div><font size="2"></font><div>
</div><div align="LEFT"> }</div><div dir="ltr"><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63183"><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63182" dir="ltr"><span id="yiv0481992760yui_3_16_0_1_1431173603378_65595">OUTPUT FROM PRINT:</span></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63176"><span></span><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63181"><span></span><br clear="none"></div><span id="yiv0481992760yui_3_16_0_1_1431173603378_63161"><font id="yiv0481992760yui_3_16_0_1_1431173603378_63160" size="2"></font></span><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63177">vtkPolyData (00000000659D2ED0)</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_64963">
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_64962"> Debug: Off</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_64961">
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_74487"> Modified Time: 130</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63173">
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_64960"> Reference Count: 7</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_64959">
</div><div align="LEFT"> Registered Events: (none)</div><div>
</div><div align="LEFT"> Information: 00000000659CBF10</div><div>
</div><div align="LEFT"> Data Released: False</div><div>
</div><div align="LEFT"> Global Release Data: Off</div><div>
</div><div align="LEFT"> UpdateTime: 813</div><div>
</div><div align="LEFT"> Field Data:</div><div>
</div><div align="LEFT"> Debug: Off</div><div>
</div><div align="LEFT"> Modified Time: 107</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63172">
</div><div align="LEFT"> Reference Count: 1</div><div>
</div><div align="LEFT"> Registered Events: (none)</div><div>
</div><div align="LEFT"> Number Of Arrays: 0</div><div>
</div><div align="LEFT"> Number Of Components: 0</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63171"> Number Of Tuples: 0</div><div>
</div><div align="LEFT"> Number Of Points: 192</div><div>
</div><div align="LEFT"> Number Of Cells: 540</div><div>
</div><div align="LEFT"> Cell Data:</div><div>
</div><div align="LEFT"> Debug: Off</div><div>
</div><div align="LEFT"> Modified Time: 110</div><div>
</div><div align="LEFT"> Reference Count: 1</div><div>
</div><div align="LEFT"> Registered Events: (none)</div><div>
</div><div align="LEFT"> Number Of Arrays: 0</div><div>
</div><div align="LEFT"> Number Of Components: 0</div><div>
</div><div align="LEFT"> Number Of Tuples: 0</div><div>
</div><div align="LEFT"> Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63170"> Interpolate Flags: ( 1 1 1 1 1 0 0 1 )</div><div>
</div><div align="LEFT"> Pass Through Flags: ( 1 1 1 1 1 1 1 1 )</div><div>
</div><div align="LEFT"> Scalars: (none)</div><div>
</div><div align="LEFT"> Vectors: (none)</div><div>
</div><div align="LEFT"> Normals: (none)</div><div>
</div><div align="LEFT"> TCoords: (none)</div><div>
</div><div align="LEFT"> Tensors: (none)</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_74488"> GlobalIds: (none)</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63169"> PedigreeIds: (none)</div><div>
</div><div align="LEFT"> EdgeFlag: (none)</div><div>
</div><div align="LEFT"> Point Data:</div><div>
</div><div align="LEFT"> Debug: Off</div><div>
</div><div align="LEFT"> Modified Time: 109</div><div>
</div><div align="LEFT"> Reference Count: 1</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63168">
</div><div align="LEFT"> Registered Events: (none)</div><div>
</div><div align="LEFT"> Number Of Arrays: 0</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_74489">
</div><div align="LEFT"> Number Of Components: 0</div><div>
</div><div align="LEFT"> Number Of Tuples: 0</div><div>
</div><div align="LEFT"> Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63167">
</div><div align="LEFT"> Interpolate Flags: ( 1 1 1 1 1 0 0 1 )</div><div>
</div><div align="LEFT"> Pass Through Flags: ( 1 1 1 1 1 1 1 1 )</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_74490">
</div><div align="LEFT"> Scalars: (none)</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63166">
</div><div align="LEFT"> Vectors: (none)</div><div>
</div><div align="LEFT"> Normals: (none)</div><div>
</div><div align="LEFT"> TCoords: (none)</div><div>
</div><div align="LEFT"> Tensors: (none)</div><div>
</div><div align="LEFT"> GlobalIds: (none)</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63165"> PedigreeIds: (none)</div><div>
</div><div align="LEFT"> EdgeFlag: (none)</div><div>
</div><div align="LEFT"> Bounds: </div><div>
</div><div align="LEFT"> Xmin,Xmax: (0, 1)</div><div>
</div><div align="LEFT"> Ymin,Ymax: (0, 1)</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63164">
</div><div align="LEFT"> Zmin,Zmax: (0, 2)</div><div>
</div><div align="LEFT"> Compute Time: 822</div><div>
</div><div align="LEFT"> Number Of Points: 192</div><div>
</div><div align="LEFT"> Point Coordinates: 00000000659D3800</div><div>
</div><div align="LEFT"> Locator: 0000000000000000</div><div id="yiv0481992760yui_3_16_0_1_1431173603378_63163">
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63162"> Number Of Vertices: 0</div><div>
</div><div align="LEFT"> Number Of Lines: 0</div><div>
</div><div align="LEFT"> Number Of Polygons: 540</div><div>
</div><div align="LEFT"> Number Of Triangle Strips: 0</div><div>
</div><div align="LEFT" id="yiv0481992760yui_3_16_0_1_1431173603378_63159"> Number Of Pieces: 1</div><div>
</div><div align="LEFT"> Piece: 0</div><div>
</div><div align="LEFT"> Ghost Level: 0</div><div>
</div><div align="LEFT"></div><div><br clear="none"></div><div id="yiv0481992760yui_3_16_0_1_1431173603378_74491" dir="ltr"><br clear="none"></div> <br clear="none"><div class="yiv0481992760qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv0481992760yqt4098084775" id="yiv0481992760yqt64548"><div class="yiv0481992760yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Saturday, May 9, 2015 12:27 PM, Bill Lorensen [via VTK] <<a href="/user/SendEmail.jtp?type=node&node=5731864&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div class="yiv0481992760y_msg_container"><div id="yiv0481992760"><div>
SetInput(polydata) is not in vtk6.x. It should be SetInputData. Not
<br clear="none">sure why you are crashing. Try printing the polydata. In C++:
<br clear="none"><br clear="none">polydata->Print(std::cout);
<br clear="none"><br clear="none"><br clear="none"><br clear="none">On Sat, May 9, 2015 at 3:21 PM, kent myers via vtkusers
<br clear="none"><<a href="" rel="nofollow" shape="rect" target="_top" link="external">[hidden email]</a>> wrote:
<div class="yiv0481992760shrinkable-quote"><div class='shrinkable-quote'><br clear="none">> Hi Bill,
<br clear="none">>
<br clear="none">> I edited my post shortly after I wrote it because I was able to get the
<br clear="none">> vtkPolyData object from my actor.
<br clear="none">>
<br clear="none">> However I could not find the SetInput() method for the writer, so I tried
<br clear="none">> SetInputData. This crashes the Java virtual machine.
<br clear="none">>
<br clear="none">> I will try to understand your C++ code sample, but Java is very different,
<br clear="none">> and it seems that not all C++ methods are exposed to Java.
<br clear="none">>
<br clear="none">> Thanks for the help.
<br clear="none">> Kent
<br clear="none">>
<br clear="none">>
<br clear="none">>
<br clear="none">> On Saturday, May 9, 2015 12:07 PM, Bill Lorensen [via VTK] <[hidden email]>
<br clear="none">> wrote:
<br clear="none">>
<br clear="none">>
<br clear="none">> Here is what I do in C++:
<br clear="none">> vtkSmartPointer<vtkActorCollection> actors =
<br clear="none">> vtkSmartPointer<vtkActorCollection>::New();
<br clear="none">> actors = renderer->GetActors();
<br clear="none">> actors->InitTraversal();
<br clear="none">> for (vtkIdType a = 0; a < actors->GetNumberOfItems(); ++a)
<br clear="none">> {
<br clear="none">> vtkActor * actor = actors->GetNextActor();
<br clear="none">> vtkPolyData *pd =
<br clear="none">> vtkPolyData::SafeDownCast(actor->GetMapper()->GetInput());
<br clear="none">> vtkSmartPointer<vtkCleanPolyData> clean =
<br clear="none">> vtkSmartPointer<vtkCleanPolyData>::New();
<br clear="none">> clean->SetInputData(pd);
<br clear="none">> vtkSmartPointer<vtkPolyDataNormals> normals =
<br clear="none">> vtkSmartPointer<vtkPolyDataNormals>::New();
<br clear="none">> normals->SetInputConnection(clean->GetOutputPort());
<br clear="none">> normals->Update();
<br clear="none">> vtkPolyDataMapper *mapper =
<br clear="none">> vtkPolyDataMapper::SafeDownCast(actor->GetMapper());
<br clear="none">> mapper->SetInputData(normals->GetOutput());
<br clear="none">> }
<br clear="none">>
<br clear="none">>
<br clear="none">> On Sat, May 9, 2015 at 2:48 PM, kent myers via vtkusers
<br clear="none">> <[hidden email]> wrote:
<br clear="none">>
<br clear="none">>> I am trying to export a vtkPolyData object to a vtp file using
<br clear="none">>> vtkXMLPolyDataWriter. The online VTK documentation says to use the
<br clear="none">>> writer.SetInput() method that takes a vtkPolyData object.
<br clear="none">>>
<br clear="none">>> I am having some problems with this strategy:
<br clear="none">>> 1. I can get the vtkMapper object from my vtkActor, but the vtkMapper
<br clear="none">>> object
<br clear="none">>> has no GetInput() method to retrieve a vtkPolyData object (or any other
<br clear="none">>> method)
<br clear="none">>> 2. vtkXMLPolyDataWriter has no SetInput() method (or any other method) to
<br clear="none">>> pass the vtkPolyData object even if I could get the vtkPolyData object.
<br clear="none">>>
<br clear="none">>> Has anyone successfully exported vtkPolyData from a Java application? If
<br clear="none">>> so,
<br clear="none">>> how?
<br clear="none">>>
<br clear="none">>>
<br clear="none">>>
<br clear="none">>>
<br clear="none">>>
<br clear="none">>> --
<br clear="none">>> View this message in context:
<br clear="none">>> <a href="http://vtk.1045678.n5.nabble.com/Get-vtkPolyData-from-vtkMapper-in-vtkActor-using-Java-API-tp5731859.html" target="_blank" rel="nofollow" shape="rect" link="external">http://vtk.1045678.n5.nabble.com/Get-vtkPolyData-from-vtkMapper-in-vtkActor-using-Java-API-tp5731859.html</a><br clear="none">>> Sent from the VTK - Users mailing list archive at Nabble.com.
<br clear="none">>> _______________________________________________
<br clear="none">>> Powered by www.kitware.com
<br clear="none">>>
<br clear="none">>> Visit other Kitware open-source projects at
<br clear="none">>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" shape="rect" link="external">http://www.kitware.com/opensource/opensource.html</a><br clear="none">>>
<br clear="none">>> Please keep messages on-topic and check the VTK FAQ at:
<br clear="none">>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" shape="rect" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">>>
<br clear="none">>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://markmail.org/search/?q=vtkusers</a><br clear="none">>>
<br clear="none">>> Follow this link to subscribe/unsubscribe:
<br clear="none">>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">>
<br clear="none">>
<br clear="none">> --
<br clear="none">> Unpaid intern in BillsBasement at noware dot com
<br clear="none">>
<br clear="none">> _______________________________________________
<br clear="none">> Powered by www.kitware.com
<br clear="none">>
<br clear="none">> Visit other Kitware open-source projects at
<br clear="none">> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" shape="rect" link="external">http://www.kitware.com/opensource/opensource.html</a><br clear="none">>
<br clear="none">> Please keep messages on-topic and check the VTK FAQ at:
<br clear="none">> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" shape="rect" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">>
<br clear="none">> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://markmail.org/search/?q=vtkusers</a><br clear="none">>
<br clear="none">> Follow this link to subscribe/unsubscribe:
<br clear="none">> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">>
<br clear="none">>
<br clear="none">>
<br clear="none">> ________________________________
<br clear="none">> If you reply to this email, your message will be added to the discussion
<br clear="none">> below:
<br clear="none">> <a href="http://vtk.1045678.n5.nabble.com/Get-vtkPolyData-from-vtkMapper-in-vtkActor-using-Java-API-tp5731859p5731860.html" target="_blank" rel="nofollow" shape="rect" link="external">http://vtk.1045678.n5.nabble.com/Get-vtkPolyData-from-vtkMapper-in-vtkActor-using-Java-API-tp5731859p5731860.html</a><br clear="none">> To unsubscribe from Get vtkPolyData from vtkMapper in vtkActor using Java
<br clear="none">> API, click here.
<br clear="none">> NAML
<br clear="none">>
<br clear="none">>
<br clear="none">>
<br clear="none">> ________________________________
<br clear="none">> View this message in context: Re: Get vtkPolyData from vtkMapper in vtkActor
<br clear="none">> using Java API
<br clear="none">>
<br clear="none">> Sent from the VTK - Users mailing list archive at Nabble.com.
<br clear="none">>
<br clear="none">> _______________________________________________
<br clear="none">> Powered by www.kitware.com
<br clear="none">>
<br clear="none">> Visit other Kitware open-source projects at
<br clear="none">> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" shape="rect" link="external">http://www.kitware.com/opensource/opensource.html</a><br clear="none">>
<br clear="none">> Please keep messages on-topic and check the VTK FAQ at:
<br clear="none">> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" shape="rect" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">>
<br clear="none">> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://markmail.org/search/?q=vtkusers</a><br clear="none">>
<br clear="none">> Follow this link to subscribe/unsubscribe:
<br clear="none">> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">>
</div></div><br clear="none"><br clear="none">--
<br clear="none">Unpaid intern in BillsBasement at noware dot com
<br clear="none">_______________________________________________
<br clear="none">Powered by www.kitware.com
<br clear="none"><br clear="none">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" shape="rect" link="external">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" shape="rect" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://markmail.org/search/?q=vtkusers</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:
<br clear="none"><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" shape="rect" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none">
<br clear="none">
<hr size="1" color="#cccccc" noshade="">
<div style="font: 12px/normal tahoma, geneva, helvetica, arial, sans-serif; color: rgb(68, 68, 68); font-size-adjust: none; font-stretch: normal;">
<div style="font-weight: bold;">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://vtk.1045678.n5.nabble.com/Write-vtkPolyData-to-vtp-file-using-Java-API-tp5731859p5731862.html" target="_blank" rel="nofollow" shape="rect" link="external">http://vtk.1045678.n5.nabble.com/Write-vtkPolyData-to-vtp-file-using-Java-API-tp5731859p5731862.html</a>
</div>
<div style="font: 11px/1.5em tahoma, geneva, helvetica, arial, sans-serif; color: rgb(102, 102, 102); margin-top: 0.4em; font-size-adjust: none; font-stretch: normal;">
To unsubscribe from Write vtkPolyData to vtp file using Java API, <a href="" target="_blank" rel="nofollow" shape="rect" link="external">click here</a>.<div class="yiv0481992760yqt5073604706" id="yiv0481992760yqtfd77151"><br clear="none">
<a style="font: 9px/normal serif; font-size-adjust: none; font-stretch: normal;" href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_blank" rel="nofollow" shape="rect" link="external">NAML</a>
</div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br><br></div> </div> </div> </div></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Write-vtkPolyData-to-vtp-file-using-Java-API-tp5731859p5731864.html">Re: Get vtkPolyData from vtkMapper in vtkActor using Java API</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>