[vtkusers] rescaling glyphs.??

Rakesh Patil rakeshthp at in.com
Tue Feb 9 09:13:19 EST 2010


 hello sir,Now suppose, i have to show glyphs atfollowing positions:78.23564 8.28372578.32127 8.327361078.34723 8.4286450...80.235749.372561800then, for each point i need to calculate the difference and get the dot product with projection direction??is the result of these dot products the scale factor??Coz in that code i didnt find and depth parameter.. only position is there.. Am i correct??Thanks Original message From:David Gobbi< david.gobbi at gmail.com >Date: 09 Feb 10 19:05:11Subject:Re: rescaling glyphs.??To: Rakesh Patil Let camera position be p1, which you can get from camera>GetPosition().Let object position be p2, i.e. the position of a glyph.The vector "v" is the p2  p1:v[0] = p2[0]  p1[0];v[1] = p2[1]  p1[1];v[2] = p2[2]  p1[2];That's all there is to it.On Tue, Feb 9, 2010 at 6:24 AM, Rakesh Patilwrote:> Hello sir,>> Thanks a lot for you guidance. Please pardon me if am going wrong at any> point.> I'm am still not clear with this point what you said>> "The depth is 
 the dot product of the camera's directionofprojection with> the vector from the camera's position to the object's position.">> what exactly is a vector from the camera's position to object's position??>> Thanks 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100209/2fd12977/attachment.htm>


More information about the vtkusers mailing list