<html><div style='background-color:'><DIV>
<P>vtkTubefilter is actually how I am doing this right now.&nbsp; If this is an inefficient way I should change because I am looking for the most efficient way to do this.&nbsp; Any suggestions on how to do this efficiently?&nbsp; Could you also breifly explain why this is inefficient?</P>
<P>Thanks</P>
<P>Alex Lear</P>
<P>&nbsp;<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "David Pont" <DAVID_PONT@HOTMAIL.COM>
<DIV></DIV>&gt;Reply-To: david.pont@forestresearch.co.nz 
<DIV></DIV>&gt;To: vtkusers@public.kitware.com 
<DIV></DIV>&gt;Subject: Re: [vtkusers] Rookie 3d advice/opinion 
<DIV></DIV>&gt;Date: Mon, 04 Feb 2002 17:30:24 +1300 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I have handled this sort of thing using vtkTubeFilter and it works 
<DIV></DIV>&gt;very 
<DIV></DIV>&gt;well. In my case I represented my data as vtkPolyData, of type 
<DIV></DIV>&gt;polyline, 
<DIV></DIV>&gt;with diameters as the scalar values. So the only work left to do is 
<DIV></DIV>&gt;to 
<DIV></DIV>&gt;figure out how to create a set of polylines from your set of points. 
<DIV></DIV>&gt;In the 
<DIV></DIV>&gt;most simple approach you could just connect each pair of consecutive 
<DIV></DIV>&gt;points 
<DIV></DIV>&gt;with a single line. This is inefficient but should be very easy to 
<DIV></DIV>&gt;do. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; good luck 
<DIV></DIV>&gt; Dave Pont 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;&gt;From: anast.jm@pg.com 
<DIV></DIV>&gt;&gt;To: vtkusers@public.kitware.com 
<DIV></DIV>&gt;&gt;Subject: Re: [vtkusers] Rookie 3d advice/opinion 
<DIV></DIV>&gt;&gt;Date: Thu, 31 Jan 2002 13:54:03 -0500 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;Alex, since you have a diameter at each point perhaps you could 
<DIV></DIV>&gt;&gt;plot a 
<DIV></DIV>&gt;&gt;sphere 
<DIV></DIV>&gt;&gt;glyph at each point, the size of the glyph determined by the 
<DIV></DIV>&gt;&gt;diameter. This 
<DIV></DIV>&gt;&gt;would kind of "splat" your tree in 3D if the points are close 
<DIV></DIV>&gt;&gt;enought 
<DIV></DIV>&gt;&gt;together. 
<DIV></DIV>&gt;&gt;If you know the normal of the diameter at each point, I image you 
<DIV></DIV>&gt;&gt;could 
<DIV></DIV>&gt;&gt;generate 
<DIV></DIV>&gt;&gt;the branch diameter circumference points and surface render those 
<DIV></DIV>&gt;&gt;points 
<DIV></DIV>&gt;&gt;using 
<DIV></DIV>&gt;&gt;vtkSurfaceReconstructionFilter. Also, I seem to remembered seeing a 
<DIV></DIV>&gt;&gt;nifty 
<DIV></DIV>&gt;&gt;example in the vtk book where a streamtube was used and the 
<DIV></DIV>&gt;&gt;diameter of the 
<DIV></DIV>&gt;&gt;tube 
<DIV></DIV>&gt;&gt;was varied by some other scalar (diameter in this case), perhaps 
<DIV></DIV>&gt;&gt;theres a 
<DIV></DIV>&gt;&gt;way to 
<DIV></DIV>&gt;&gt;do the viz using streamtubes??? ...john 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; Internet Mail Message 
<DIV></DIV>&gt;&gt; Received from host: public.kitware.com 
<DIV></DIV>&gt;&gt; [208.136.18.25] 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;From: "Alex Lear" <ALEX_LEAR@HOTMAIL.COM>@public.kitware.com on 
<DIV></DIV>&gt;&gt;01/30/2002 
<DIV></DIV>&gt;&gt;01:48 
<DIV></DIV>&gt;&gt;PM MST 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; "Alex Lear" <ALEX_LEAR@HOTMAIL.COM>To: 
<DIV></DIV>&gt;&gt;vtkusers@public.kitware.com 
<DIV></DIV>&gt;&gt; @public.kitware.com Cc: (bcc: 
<DIV></DIV>&gt;&gt;John 
<DIV></DIV>&gt;&gt;Anast-JM/PGI) 
<DIV></DIV>&gt;&gt; Subject: 
<DIV></DIV>&gt;&gt;[vtkusers] 
<DIV></DIV>&gt;&gt;Rookie 3d advice/opinion 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; Sent by: 
<DIV></DIV>&gt;&gt; vtkusers-admin@public.kitware.com 
<DIV></DIV>&gt;&gt; 01/30/2002 03:48 PM 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;I am new to vtk and not aware of eveything that is possible so I 
<DIV></DIV>&gt;&gt;thought I 
<DIV></DIV>&gt;&gt;would 
<DIV></DIV>&gt;&gt;ask for a little help. 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;I have data that represents a tree branch type structure.&nbsp; Each 
<DIV></DIV>&gt;&gt;data point 
<DIV></DIV>&gt;&gt;represents the position (x,y,z) and the diameter of the branch for 
<DIV></DIV>&gt;&gt;that 
<DIV></DIV>&gt;&gt;small 
<DIV></DIV>&gt;&gt;section.&nbsp; There is roughly a thousand data points that completely 
<DIV></DIV>&gt;&gt;describes 
<DIV></DIV>&gt;&gt;the 
<DIV></DIV>&gt;&gt;whole tree structure.&nbsp; There is also data that describes which 
<DIV></DIV>&gt;&gt;points are 
<DIV></DIV>&gt;&gt;branching points where two limbs branch off.&nbsp; I am trying to draw 
<DIV></DIV>&gt;&gt;this as a 
<DIV></DIV>&gt;&gt;3d 
<DIV></DIV>&gt;&gt;rendering but I am not sure what is the best way to do it.&nbsp; Since 
<DIV></DIV>&gt;&gt;it is 
<DIV></DIV>&gt;&gt;just 
<DIV></DIV>&gt;&gt;individual data points, I&nbsp;am not sure&nbsp;what to use to create a 3d 
<DIV></DIV>&gt;&gt;volume 
<DIV></DIV>&gt;&gt;that 
<DIV></DIV>&gt;&gt;shows each individual sections diameter.&nbsp; Any input is GREATLY 
<DIV></DIV>&gt;&gt;appreciated. 
<DIV></DIV>&gt;&gt;Once again, I am a rookie so basic information could be just what I 
<DIV></DIV>&gt;&gt;need. 
<DIV></DIV>&gt;&gt;Thanks in advance!! 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;Alex 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;alex_lear@hotmail.com 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;Join the world's largest e-mail service with MSN Hotmail. Click 
<DIV></DIV>&gt;&gt;Here 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt; 
<DIV></DIV>&gt;&gt;_______________________________________________ 
<DIV></DIV>&gt;&gt;This is the private VTK discussion list. 
<DIV></DIV>&gt;&gt;Please keep messages on-topic. Check the FAQ at: 
<DIV></DIV>&gt;&gt;<HTTP: vtkfaq cgi-bin public.kitware.com> 
<DIV></DIV>&gt;&gt;Follow this link to subscribe/unsubscribe: 
<DIV></DIV>&gt;&gt;http://public.kitware.com/mailman/listinfo/vtkusers 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_________________________________________________________________ 
<DIV></DIV>&gt;Get your FREE download of MSN Explorer at 
<DIV></DIV>&gt;http://explorer.msn.com/intl.asp. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;This is the private VTK discussion list. 
<DIV></DIV>&gt;Please keep messages on-topic. Check the FAQ at: 
<DIV></DIV>&gt;<HTTP: vtkfaq cgi-bin public.kitware.com> 
<DIV></DIV>&gt;Follow this link to subscribe/unsubscribe: 
<DIV></DIV>&gt;http://public.kitware.com/mailman/listinfo/vtkusers 
<DIV></DIV></div><br clear=all><hr>Join the world’s largest e-mail service with MSN Hotmail. <a href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click Here</a><br></html>