[vtkusers] draw real texturen a torus
LingXiao Zhao
lingxiao.zhao at gmail.com
Fri Dec 17 04:34:12 EST 2004
Hi Moti:
I don't know what exactly your requirement for the 3D torus surface
is. However, you can create the vtkPolyData object of such a torus
using vtkSuperquadric or vtkSuperquadricSource. If you want to create
the torus surface using marching-cubes. The better option is
vtkSuperquadric, then you can use vtkSampleFunction to sample this
surface and use vtkMarchingCubes to create a closed torus surface
mesh. Be aware of that, you have to use vtkSuperquadric::ToroidalOn()
and the quality can be tuned by your sampling resolution
(vtkSampleFunction::SetSampleDimensions).
While if you would like to use vtkSuperquadricSource only, such a
surface is actually composed by several patches. It will have creases,
which are not very tractable.
Good luck to your work.
Lingxiao
On Thu, 16 Dec 2004 23:26:32 +0200, Moti Freiman <freiman at cs.huji.ac.il> wrote:
> Hello!
> I need to create 3D torus and draw some real texture (given as bmp image
> or something like this in 2D).
> do someone has an idea how can i do it using vtk?
> Thank you!
> --
>
> Moti Freiman, Graduate Student.
> Medical Image Processing and Computer-Assisted Surgery Laboratory.
> School of Computer Science and Engineering.
> The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
> Phone: +(972)-2-658-5371 (laboratory)
> E-mail: freiman at cs.huji.ac.il
> WWW site: http://www.cs.huji.ac.il/~freiman
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.4 - Release Date: 15/12/2004
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.4 - Release Date: 15/12/2004
>
> _______________________________________________
> 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