[Paraview] Adding 2-d text labels in 3-d space...
Karl Battams
karlbattams at gmail.com
Thu Feb 17 14:23:47 EST 2011
Hi,
I'm batch processing vtk files containing a model of ours, adding
sources/objects based on x,y,z coords, and then rendering/saving the field
of view (fov) as pngs. I want some 2-d text labels (i.e. sm.sources.text() )
to "follow" the added objects as they move through my fov. (A good analogy
would be labeling planets in a solar system simulation as they orbit the
sun.) I was hoping to avoid having to do the whole set of geometry
calculations to translate camera(x,y,z) and object(x,y,z) into an fov(x,y)
for text positioning. If I use 3D text then I can use the object(x,y,z) but
then I'll need to get the text orientation correct so that it's in the plane
of the fov again...
Is there an easier way to add labels like this? Am I overlooking something
obvious?
Many thanks!
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110217/b97d9b1c/attachment.htm>
More information about the ParaView
mailing list