[vtkusers] About drawing a cube
Rong Xu
xurong1981 at gmail.com
Wed Apr 18 20:28:17 EDT 2012
2012/4/19 David Doria <daviddoria at gmail.com>
> Thank you very much for your codes !
>>
>> I have successfully realize to set the parameters of vtkCubeSource by 8
>> vertices based on your codes. But I encounter another problem, it seems the
>> order of 8 vertices should be arranged correctly, otherwise, the visualized
>> cube is not correct. About the order of vertices, do you have an easy idea
>> to set ? Otherwise, I need to check the coordinates of 8 vertices every
>> time and re-order them.
>>
>> Greatly appreciate your help!
>>
>
> I would suggest coloring the vertices of the cube:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints
>
> This will allow you to see the ordering that is produced by the
> CubeSource. You will then have to rearrange your points to match this
> ordering, but this must only be done once - once you know the mapping
> nothing new needs to be done each time.
>
>
I see. Thank you very much for your helpful advice!
> David
>
--
---------------------
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/20120419/3e3015de/attachment.htm>
More information about the vtkusers
mailing list