Hi all,<div> I have a requirement to draw different sized cubes in a vtk render window. I done this by using vtkCubeSource and works well. Code snippet is given below.</div><div><div><div>for(int i=0; i<numberOfPoints; i++)</div>
<div>{</div></div><div> vtkCubeSource* cube = vtkCubeSource::New();</div><div> vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();</div><div> vtkActor* cubeActor = vtkActor::New();</div></div><div> cube->SetCenter(xPoint,yPoint,zHeight);</div>
<div> cube->SetXLength(m_CubeDimension);</div><div> cube->SetYLength(m_CubeDimension);<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div> cube->SetZLength(m_Height);</div><div> mapper->SetInputConnection(cube->GetOutputPort());</div>
<div> cubeActor->SetMapper(mapper);</div><div> m_Renderer->AddActor(cubeActor);</div><div> cubeActor->Delete();<span class="Apple-tab-span" style="white-space:pre">                </span></div><div> mapper->Delete();</div>
<div> cube->Delete();<span class="Apple-tab-span" style="white-space:pre">        </span></div><div>}</div><div><div><br></div></div><div>What my question is: When the renderer is rotated or moved, the edges of cubes are getting blurred which is very annoying. Is there any method to avoid this issue.</div>
<div>I have tried using LineSmoothingOn, PolygonSmoothingOn,PointSmoothingOn of renderwindow, but not use.By turning LineSmoothingOn, lines drawing are smoothened, but when cubes or circles are drawn, the edges are not smoothened.</div>
<div>Also tried using vtkSmoothPolyDataFilter on the cube source, but not working.</div><div><br></div><div>Thanks in advance.</div><div>Hari</div><div><br></div>