[vtkusers] IntPtr for ActiViz.Net

Jochen K. jochen.kling at email.de
Sat Jun 23 10:43:48 EDT 2012


Hi Jerry,

the multiplication is correct.

Your definition of a point is wrong.

Your matrix is a 4x4 matrix. If you want to multiply ths matrix by a vector,
the vector has to be 4x1.

replace 
   double[] ZOOT = new double[] { 100, 100, 100 };


with 

   double[] ZOOT = new double[] { 100, 100, 100, 1 }; 


and everything works fine.


(What happened in your case is that your vector was automatically expanded
to [100, 100, 100, 0] and then the result is always your vector.)


with best regards

Jochen

--
View this message in context: http://vtk.1045678.n5.nabble.com/IntPtr-for-ActiViz-Net-tp4759068p5714172.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120623/d2aea7df/attachment.htm>


More information about the vtkusers mailing list