[vtkusers] Vector Drawing

Jean-Baptiste Estival jb.estival at shaktiware.fr
Wed Dec 14 14:11:15 EST 2005


Thanks,

I will try that tomorrow

David Cole a écrit :

> Please look specifically at the ProbeWithPointWidget.tcl example in 
> VTK/Examples/GUI/Tcl. After running the script, press the "i" key to 
> begin interaction. In the example, "point" is a vtkPolyData which is 
> passed as input to a vtkProbeFilter, which is then passed to 
> SetInputConnection on the vtkGlyph3D.
>
> For a single vector vtkPolyData, you should be able simply to 
> construct one and then add a single point to it. (I would analyze the 
> output of the vtkProbeFilter to see what else might be present if that 
> simple suggestion doesn't produce your expected results.)
>
> Please keep further replies "on list" so that anybody else who has 
> time to chime in is able to...
>
>
> Thanks,
> David Cole
>
>
> Jean-Baptiste Estival wrote:
>
>> thanks for the answer,
>>
>> but I don't know which "SetInput" do I need to pass to the Glyph3D. 
>> It would be a vtkDataSet like vtkPolyData, but I don't know how to 
>> specify a single vector in a vtkDataSet. Can you help me ?
>>
>> thanks again.
>>
>> David Cole a écrit :
>>
>>> See the "related examples" page for vtkGlyph3D in the documentation:
>>> http://www.vtk.org/doc/nightly/html/c2_vtk_e_2.html#c2_vtk_e_vtkGlyph3D
>>>
>>> Browse to these with the table of contents for related pages at 
>>> http://www.vtk.org/doc/nightly/html/pages.html. Every class that is 
>>> used in an example should be listed in these pages.
>>>
>>> There will also be a link to the examples on the class page for 
>>> vtkGlyph3D.
>>>
>>>
>>> HTH,
>>> David
>>>
>>>
>>>
>>> Jean-Baptiste Estival wrote:
>>>
>>>> Hi all,
>>>>
>>>> I just need to draw an oriented vector in my scene. I read about 
>>>> using Glyph3D and Glyph2D, but I need a little piece of code :)
>>>> Thanks
>>>>
>>>>
>>>> _______________________________________________
>>>> This is the private VTK discussion list. Please keep messages 
>>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>
>>




More information about the vtkusers mailing list