[vtkusers] help displaying a set of points

Michael Rice marice at knology.net
Wed Feb 21 20:34:26 EST 2007


You probably need to set the Actor properties to display as points:

actor->GetPropery()->SetRepresentationToPoints()

If you've assigned scalars, then you need to turn those on too:

mapper->ScalarVisibilityOn()

Michael

On Feb 21, 2007, at 2:17 PM, wind wrote:

> Hello,
>
> I have a dataset that consists of XYZ point coordinates and one  
> scalar at each point. I want to display the points as individual  
> points, not a surface, not a wireframe, nothing. The points are not  
> related to each other, so I don't want to do anything to connect  
> them explicitly. I've tried just about every combination of  
> vtkUnstructuredGrid, vtkDataSetMapper and what not and I still end  
> up with a blank screen. I know the data is there and read in  
> correctly. I have the vtkPoints object and the vtkFloatArray for  
> scalars.
>
> Thanks,
>
> -- Gala
>
> Gala Wind
> (301) 614-6221
> wind at climate.gsfc.nasa.gov
> Code 613.2, Climate and Radiation
> SSAI, Inc.
> NASA/GSFC
> Greenbelt, MD 20771
>
> /*--------------------------------------------------------------------
>   -- There's always a way, you just have to find it.
>             ( B. Hambly "Children of the Jedi" )
> ---------------------------------------------------------------------- 
> */
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ 
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list