Thanks for the help, I've got that working perfectly. :D
One last question, I know by default in the legacy format the vector fields
were of the format (i j k) (i j k) (i j k) etc... is it possible in the new
xml format to output all the i components, then the j components, then the k
components? This is how my data is structured in memory and would make it a
lot easier.
Thanks
David
--------------------------------------------------
From: "Thorsten Hater" <[email protected]>
Sent: Wednesday, April 01, 2009 2:27 PM
To: "David Mulholland" <[email protected]>
Cc: <[email protected]>
Subject: Re: [Paraview] VTK XML Binary Output
Exactly, sorry for the typo.
thorsten
Olesen, Mark schrieb:
I just tried that and it is now giving me a segmentation fault... I am
using the following line: file.write(reinterpret_cast<const
char*>(size), 4);
The segfault isn't surprising. If you obtain the address of the variable
first, I suspect you'll be much happier:
int size;
file.write(reinterpret_cast<const char*>(&size), sizeof(size));
/mark
This e-mail message and any attachments may contain legally privileged,
confidential or proprietary Information, or information otherwise
protected by law of EMCON Technologies, its affiliates, or third parties.
This notice serves as marking of its "Confidential" status as defined in
any confidentiality agreements concerning the sender and recipient. If
you are not the intended recipient(s), or the employee or agent
responsible for delivery of this message to the intended recipient(s),
you are hereby notified that any dissemination, distribution or copying
of this e-mail message is strictly prohibited. If you have received this
message in error, please immediately notify the sender and delete this
e-mail message from your computer.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview