[vtkusers] Specifying the radius of a Polygon-source in pixel coordinates ?

Oliver Kania ptw.freiburg at googlemail.com
Thu Jun 19 03:33:58 EDT 2008


Hello all,
One can specify the radius of a vtkRegularPolygonSource
in world coordinates. However, this can make the markers
look non-uniform on the per-pixel level if one uses a glyph3D.
I guess this happens when world values are transformed
into actual pixel values.

I cannot use a Glyph2D or a PolyDataMapper2D in my case
Here is some code:

m_markersource = vtkRegularPolygonSource::New();
m_markersource->SetNumberOfSides(4);
m_markersource->SetGeneratePolygon(0);
m_markersource->SetRadius(radius-in-world-coordinates)

m_markerglyphs = vtkGlyph3D::New();
m_markerglyphs->SetSource(m_markersource->GetOutput());

Best regards,
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080619/1f42872b/attachment.htm>


More information about the vtkusers mailing list