[vtkusers] VTK C#: vtkAffineWidget "PlaceWidget" wants a IntPtr instead of the bounds???

nickxtsui nickxtsui at gmail.com
Thu Dec 5 16:03:09 EST 2013


You can try this function to convert double[] to IntPtr:

public IntPtr DoubleArrayToIntPtr(double[] d)
        {            
            IntPtr p = Marshal.AllocCoTaskMem(sizeof(double) * d.Length);
            Marshal.Copy(d, 0, p, d.Length);
            return p;
        }



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-C-vtkAffineWidget-PlaceWidget-wants-a-IntPtr-instead-of-the-bounds-tp5724820p5724858.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list