<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Hi,</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">&nbsp;&nbsp; I have tried the following .vtk data file with the foloowing tcl code. I tried to generate glyphs at each point. But my screen in blank without any output. I have placed the code here. Please help me clarify what's going wrong, is it something with code (tcl file) or&nbsp;the data file?</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">/******************************************/</SPAN></div><SPAN style="RIGHT: auto"><SPAN style="RIGHT: auto" lang=EN>
<div>package require vtk</div>
<div>package require vtkinteraction</div>
<div> </div>
<div># Create arc plots</div>
<div style="RIGHT: auto"># get the interactor ui</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">vtkCamera camera<VAR id=yui-ie-cursor></VAR></div>
<div># read the bore</div>
<div style="RIGHT: auto">v</div>
<div style="RIGHT: auto">tkPolyDataReader bore</div>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">bore SetFileName "bore.vtk"</div></BLOCKQUOTE>
<div>vtkMaskPoints ptMask</div>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">ptMask SetInputConnection [bore GetOutputPort]</div></BLOCKQUOTE>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">ptMask SetOnRatio 1</div>
<div>ptMask RandomModeOff</div>
<div>ptMask SetMaximumNumberOfPoints 10</div>
<div style="RIGHT: auto">ptMask GenerateVerticesOn</div>
<div style="RIGHT: auto">ptMask SingleVertexPerCellOn</div></BLOCKQUOTE>
<div>vtkArrowSource arrow</div>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">arrow SetTipResolution 6 </div>
<div>arrow SetTipRadius 0.25 </div>
<div>arrow SetTipLength 0.5</div>
<div>arrow SetShaftResolution 6 </div>
<div style="RIGHT: auto">arrow SetShaftRadius 0.125</div></BLOCKQUOTE>
<div>vtkGlyph3D glyph</div>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">glyph SetInput [ptMask GetOutput] </div>
<div>glyph SetSource [arrow GetOutput] </div>
<div>glyph SetVectorModeToUseVector </div>
<div>glyph SetColorModeToColorByScalar</div>
<div>glyph SetScaleModeToDataScalingOff </div>
<div style="RIGHT: auto">glyph OrientOn </div>
<div style="RIGHT: auto">glyph SetScaleFactor 0.5</div></BLOCKQUOTE>
<div>vtkPolyDataMapper mapBore</div>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">mapBore SetInputConnection [glyph GetOutputPort]</div>
<div style="RIGHT: auto">mapBore ScalarVisibilityOff</div></BLOCKQUOTE>
<div>vtkActor boreActor</div>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">boreActor SetMapper mapBore</div>
<div style="RIGHT: auto">[boreActor GetProperty] SetColor 0 0 0</div></BLOCKQUOTE>
<div># create the arc plots</div>
<div>#</div>
<div># Create graphics objects</div>
<div># Create the rendering window renderer and interactive renderer</div>
<div>vtkRenderer ren1</div>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">ren1 SetActiveCamera camera</div></BLOCKQUOTE>
<div>vtkRenderWindow renWin</div>
<BLOCKQUOTE style="RIGHT: auto; MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">renWin AddRenderer ren1</div></BLOCKQUOTE>
<div>vtkRenderWindowInteractor iren</div>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<div style="RIGHT: auto">iren SetRenderWindow renWin</div></BLOCKQUOTE>
<div># Add the actors to the renderer set the background and size</div>
<div>ren1 AddActor boreActor</div>
<div>ren1 SetBackground 1 1 1</div>
<div>renWin SetSize 235 500</div>
<div>camera SetClippingRange 14144 32817</div>
<div>camera SetFocalPoint -1023 680 5812</div>
<div>camera SetPosition 15551 -2426 19820</div>
<div>camera SetViewUp -0.651889 -0.07576 0.754521</div>
<div>camera SetViewAngle 20</div>
<div>renWin Render</div>
<div># render the image</div>
<div>#</div>
<div>iren AddObserver UserEvent {wm deiconify .vtkInteract}</div>
<div>iren Initialize</div>
<div># prevent the tk window from showing up then start the event loop</div>
<div>wm withdraw .</div></SPAN></SPAN>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">/******************************************/</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN>&nbsp;</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Thanks,</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Hayden</SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr readonly="true" contenteditable="false"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Hal Canary &lt;hal@cs.unc.edu&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Hayden Smith &lt;s_hayden_28@yahoo.com&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, April 26, 2013 6:54 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [vtkusers] Can a VTK file consists of Points only<BR></FONT></DIV>
<DIV class=y_msg_container><BR>Try this:<BR><BR>/**************************************************/<BR># vtk DataFile Version 3.0<BR>track data of XX well<BR>ASCII<BR>DATASET POLYDATA<BR>POINTS 10 float<BR>0.00 0.00 0.00<BR>0.00 0.00 1400.00<BR>0.00 0.48 1466.00<BR>0.50 2.34 1600.00<BR>2.68 4.17 1800.00<BR>5.53 4.68 2000.00<BR>9.15 4.36 2200.00<BR>12.02 1.95 2400.00<BR>8.68 -0.86 2599.96<BR>-1.14 4.81 2799.95<BR>VERTICES 10 20<BR>1 0<BR>1 1<BR>1 2<BR>1 3<BR>1 4<BR>1 5<BR>1 6<BR>1 7<BR>1 8<BR>1 9<BR>/**************************************************/<BR><BR><BR>On 04/26/2013 12:12 AM, Hayden Smith wrote:<BR>&gt; Hello,<BR>&gt;&nbsp; &nbsp; Thank you very much for the reply. Could you tell me what is the<BR>&gt; problem with the following vtk file, why it shows error reading cell data?<BR>&gt; /**************************************************/<BR>&gt; # vtk DataFile Version 1.0<BR>&gt; track data of XX well<BR>&gt; ASCII<BR>&gt; DATASET
 POLYDATA<BR>&gt; POINTS 10 float<BR>&gt; 0.00 0.00 0.00<BR>&gt; 0.00 0.00 1400.00<BR>&gt; 0.00 0.48 1466.00<BR>&gt; 0.50 2.34 1600.00<BR>&gt; 2.68 4.17 1800.00<BR>&gt; 5.53 4.68 2000.00<BR>&gt; 9.15 4.36 2200.00<BR>&gt; 12.02 1.95 2400.00<BR>&gt; 8.68 -0.86 2599.96<BR>&gt; -1.14 4.81 2799.95<BR>&gt; VERTICES 10 10<BR>&gt; 0&nbsp; 0.00 0.00 0.00<BR>&gt; 1&nbsp; 0.00 0.00 1400.00<BR>&gt; 2&nbsp; 0.00 0.48 1466.00<BR>&gt; 3&nbsp; 0.50 2.34 1600.00<BR>&gt; 4&nbsp; 2.68 4.17 1800.00<BR>&gt; 5&nbsp; 5.53 4.68 2000.00<BR>&gt; 6&nbsp; 9.15 4.36 2200.00<BR>&gt; 7&nbsp; 12.02 1.95 2400.00<BR>&gt; 8&nbsp; 8.68 -0.86 2599.96<BR>&gt; 9&nbsp; -1.14 4.81 2799.95<BR>&gt;  <BR>&gt; CELLS 10 10<BR>&gt; 1&nbsp; 0.00 0.00 0.00<BR>&gt; 1&nbsp; 0.00 0.00 1400.00<BR>&gt; 1&nbsp; 0.00 0.48 1466.00<BR>&gt; 1&nbsp; 0.50 2.34 1600.00<BR>&gt; 1&nbsp; 2.68 4.17 1800.00<BR>&gt; 1&nbsp; 5.53 4.68 2000.00<BR>&gt; 1&nbsp; 9.15 4.36 2200.00<BR>&gt; 1&nbsp; 12.02 1.95 2400.00<BR>&gt;
 1&nbsp; 8.68 -0.86 2599.96<BR>&gt; 1&nbsp; &nbsp; -1.14 4.81 2799.95<BR>&gt; CELL_TYPES 10<BR>&gt; /***************************************************/<BR>&gt; Thanks,<BR>&gt; Hayden<BR><BR><BR><BR></DIV></DIV></DIV></div></body></html>