[vtkusers] Inputting Test Data

Rainbow, Michael MRainbow at shrinenet.org
Tue May 27 14:59:09 EDT 2003


Hello,
	If I have an 2D array of doubles representing 3D coordinates:
xyzValues[3,20]  and I want to put the 3D coordinates of each of these 20
points into a vtkDataSet, how would I do it?  Here is the code I'm trying to
implement:

 vtkSphereSource *sphere = vtkSphereSource::New(); 

vtkGlyph3D *glyph = vtkGlyph3D::New();
   glyph->SetInput(need to get my array in here as vtkDataSet); //
vtkImageData - data array
   glyph->SetSource(sphere->GetOutput());
   glyph->SetScaleFactor(1);
    
vtkPolyDataMapper *Mapper = vtkPolyDataMapper::New();
   Mapper->SetInput(glyph->GetOutput());
    
vtkActor *Actor = vtkActor::New();
   Actor->SetMapper(Mapper);

Thank you, and please disregard the privacy message attached to this email.
	
Mike Rainbow

CONFIDENTIALITY NOTICE:  This e-mail communication and any attachments may
contain confidential and privileged information for the use of the
designated recipients.  If you are not the intended recipient, (or
authorized to receive for the recipient) you are hereby notified that you
have received this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its contents is prohibited.
If you have received this communication in error, please destroy all copies
of this communication and any attachments and contact the sender by reply
e-mail or telephone (813) 281-0300.



More information about the vtkusers mailing list