[vtkusers] display arrows on a surface mesh
Jérôme
jerome.velut at gmail.com
Tue Dec 8 03:36:02 EST 2009
Hi,
a vtkArrowSource produces a vtkPolyData. So you can do any manipulation on
it. If you translate the arrow by 0.5 on x, then the origin at the glyphed
point will not be the arrow base, but the middle of the trunk (ending point
is at (1,0,0) whereas base trunk is at (0,0,0)).
However, this tip depends on your application. If this is just a
visualisation problem, is as surface opactiy of 0.5 not sufficient?
HTH,
Jerome
2009/12/7 Zhangyuanchao <woshizhangyc at yahoo.cn>
> Hi, there,
>
> I would like to display arrows on a closed surface mesh. Given that the the
> arrows may point inside and outside the surface, I can see the arrows
> pointing outside the surface using vtkGlyph3D and vtkArrowSource. However,
> the arrows pointing inside is not visable. How can I pull out the arrows
> pointing inside?
>
> Is there any function by which I can chang the role between the start
> point and end point of an arrow?
> or How can I manage to solve the problem? Is there any other way?
>
> Thanks a lot!
>
> yuanchao
>
> ------------------------------
> 好玩贺卡等你发,邮箱贺卡全新上线!<http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091208/0ad98998/attachment.htm>
More information about the vtkusers
mailing list