[vtkusers] Drawing a curve

Rong Xu xurong1981 at gmail.com
Tue May 22 07:33:43 EDT 2012


Dear Hal Canary :

I see. That's very useful!

Thank you very much!

2012/5/22 Hal Canary <hal at cs.unc.edu>

> On 05/21/2012 11:27 PM, Rong Xu wrote:
>
>> I have known the coordinates of 15 points on one curve on 2D space, then
>> how can I draw such a curve and estimate the equation of this curve?
>> Also based on this curve, I want to create a solid tube by using this
>> curve as the axes of the solid tube, but I am not sure whether
>> vtkTubeFilter can be used for this purpose ?
>>
>
>
> 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.
>
> You can use that line as an input to a vtkTubeFilter.
>
> Check out this example:
>
> http://www.vtk.org/Wiki/VTK/**Examples/Cxx/**VisualizationAlgorithms/**
> TubesWithVaryingRadiusAndColor**s<http://www.vtk.org/Wiki/VTK/Examples/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors>
>
> --
> Hal Canary
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_**FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>



-- 

---------------------
Best Regards!

===============================================
Rong Xu,  Ph.D Student
Ohya Lab
Graduate School of Global Information and Telecommunication
Studies (GITS), Waseda University
1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (¨“169-8050)

Tel:          +81-80-4208-1207
E-mail:     xurong1981 at gmail.com
               xurong at fuji.waseda.jp
===============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120522/197ab72c/attachment.htm>


More information about the vtkusers mailing list