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