[vtk-developers] Streaming data from vtkMatrix4x4 and vtkMatrix3x3

David Gobbi david.gobbi at gmail.com
Thu Sep 8 13:59:53 EDT 2016


Hi Bob,

I use a DeepCopy to stream in both directions:

vtkNew<vtkMatrix4x4> matrix;
double elements[16];
// stream from matrix to POD pointer
vtkMatrix4x4::DeepCopy(elements, matrix);
// stream from POD pointer to matrix
matrix->DeepCopy(elements);

 - David

On Thu, Sep 8, 2016 at 11:46 AM, Bob Obara <bob.obara at kitware.com> wrote:

> Hi David,
>
> I’ve been meaning to ask you about the depreciation of [] operator in both
> classes and and the comment not to use the public Element data member in
> the 4x4 class).  How are you suppose to be able to stream the data out of
> the matrix with these interfaces removed?  Obviously you can you the
> DeepCopy methods to “stream” data into them.
>
> Thanks in advance for your time and help!
>
> Bob
>
> Robert M. O'Bara, MEng.
> Assistant Director of Scientific Computing
>
> Kitware Inc.
> 28 Corporate Drive
> Suite 101
> Clifton Park, NY 12065
>
> Phone: (518) 881- 4931
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160908/55c90e3d/attachment.html>


More information about the vtk-developers mailing list