Dear Hal Canary :<br><br>I see. That's very useful!<br><br>Thank you very much!<br><br><div class="gmail_quote">2012/5/22 Hal Canary <span dir="ltr"><<a href="mailto:hal@cs.unc.edu" target="_blank">hal@cs.unc.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/21/2012 11:27 PM, Rong Xu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have known the coordinates of 15 points on one curve on 2D space, then<br>
how can I draw such a curve and estimate the equation of this curve?<br>
Also based on this curve, I want to create a solid tube by using this<br>
curve as the axes of the solid tube, but I am not sure whether<br>
vtkTubeFilter can be used for this purpose ?<br>
</blockquote>
<br>
<br></div>
You'll want to create a vtkPolyData object. Use SetPoints() to add the 15 points to the PolyData. Then use SetLines() to add a vtkCellArray that represents the 14 line segments.<br>
<br>
You can use that line as an input to a vtkTubeFilter.<br>
<br>
Check out this example:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors" target="_blank">http://www.vtk.org/Wiki/VTK/<u></u>Examples/Cxx/<u></u>VisualizationAlgorithms/<u></u>TubesWithVaryingRadiusAndColor<u></u>s</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Hal Canary<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><br> ---------------------<br>Best Regards!<br><br>===============================================<br>Rong Xu, Ph.D Student<br>Ohya Lab<br>Graduate School of Global Information
and Telecommunication<br>Studies (GITS), Waseda University<br>1-6-1 Nishi Waseda, Shinjuku-ku,
Tokyo, Japan (¨“169-8050)<br><br>Tel: +81-80-4208-1207<br>E-mail: <a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a><br> <a href="mailto:xurong@fuji.waseda.jp" target="_blank">xurong@fuji.waseda.jp</a><br>
===============================================<br><br>