[vtkusers] PLEASE HELP: creating vtkImage programmatically

Richard.Bridge at tessella.com Richard.Bridge at tessella.com
Thu Mar 27 11:04:05 EST 2003


Hi,

I am [still] having problems with creating a surface/ carpet plot 
correctly in java with vtk4.2. 

Is there an example of, or can anyone tell me how to:

1. programatically create a vtkImage  (or similar data container) to 
contain x y and z values from an array (x.length == y.length ==z.length). 
I can only find examples of doing this from a file.

2. use the vtkWarpScalar filter to create a carpet plot distorting the X-Y 
surface by the Z-Values.

I am sure this must be fairly easy,but whichever way I try to construct 
the data I get an error from the vtkWarpScalar Filter saying there are no 
Scalars to warp by.

The only way I have been able to get an output is by using the 
vtkSurfaceReconstructionFIlter with a contourFilter  and a programatically 
created polyData but this appears to "spread" the edges of my dataset and 
requires preprocessing of the data to scale the Z values.

Please help, I am totally stuck on this and its the last bit I need to 
finish my app.

Richard

This message is confidential and may be privileged. It is intended for the 
addressee(s) only. Access to this message by anyone else is unauthorized 
and strictly prohibited. If you have received this message in error, 
please inform the sender immediately.

TESSELLA   Richard.Bridge at tessella.com
__/__/__/  Tessella Support Services plc
__/__/__/  3 Vineyard Chambers, ABINGDON, OX14 3PX, England
__/__/__/  Tel: (44)(0)1235-555511  Fax: (44)(0)1235-553301
           www.tessella.com
           Registered in England No. 1466429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030327/a3c54685/attachment.htm>


More information about the vtkusers mailing list