[vtkusers] A set of spheres within one actor?
Allan James
ar.james at qut.edu.au
Mon Sep 14 18:48:37 EDT 2009
Hi Piotr,
You can also try using vtkSphereSource along with a vtkGlyph3D to produce a single actor with many spheres. This allows you to place a sphere glyph at each point in the input dataset. This will result in much higher performance than using a single actor for each individual sphere.
Cheers,
Allan James
High Performance Computing & Research Support
Queensland University of Technology
(07) 3138 9264
ar.james at qut.edu.au
http://www.qut.edu.au/its/hpc
><(((º> ._.·´¯`·.. >++(((º> ._.·´¯`·.. >++(((º>
-----Original Message-----
Message: 11
Date: Mon, 14 Sep 2009 17:21:38 +0200
From: putanowr at l5.pk.edu.pl (Roman Putanowicz)
Subject: Re: [vtkusers] A set of spheres within one actor?
To: vtkusers at vtk.org
Message-ID: <20090914152138.GA22567 at jinx.l5.pk.edu.pl>
Content-Type: text/plain; charset="us-ascii"
Hi Piotr,
>
> My question is how to create a set of spheres within 1 actor?
If I have understood you correctly all you need is to use the
class vtkAssembly. Please mind that there are some performance
concerns related to the rendering of collections of assemblies (see
class doc) but that may be not an issue in your case.
In the attachment there is an ad-hoc script illustrating the
use of vtkAssembly.
I hope that this will be helpful.
Regards,
Roman
--
Roman Putanowicz < putanowr at l5.pk.edu.pl >
Institute for Computational Civil Engng (L-5)
Dept. of Civil Engng, Cracow Univ. of Technology
www.l5.pk.edu.pl, tel. +48 12 628 2569, fax 2034
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spheres.py
Type: text/x-python
Size: 1334 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090914/28c33181/attachment-0001.py>
------------------------------
More information about the vtkusers
mailing list