<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Hi<br><br>I have used vtkPolyData to make a plot of a point cloud but having a<br>poor eye sight I can hardly see the cloud. Is there any way of telling
<br>vtk to use larger points (cells).<br><br></blockquote><br>Kamran,<br><br>You can set the point size property in the vtkActor that represents your point cloud. For example, say you have Java code that follows this outline:
<br><br>vtkPolyData yourData;<br>vtkPolyDataMapper mapper = new vtkPolyDataMapper();<br>mapper.SetInput(yourData);<br><br>vtkActor actor = new vtkActor();<br>actor.SetMapper(mapper);<br><br>You then get the properties from the actor and call the SetPointSize() method like this:
<br><br>// Now set the point size<br>vtkProperty property = actor.GetProperty();<br>float desiredPointSize = 5.0;<br>property.SetPointSize(desiredPointSize);<br><br>I think you'll also need to set the representation of the poly data to points, but you may not need to do this explicitly:
<br><br>property.SetRepresentationToPoints();<br><br>Hope this helps,<br>Cory<br><br><br>-- <br>Cory Quammen<br>University of North Carolina at Chapel Hill<br><a href="http://www.cs.unc.edu/~cquammen">http://www.cs.unc.edu/~cquammen
</a>